Skip to content

Instantly share code, notes, and snippets.

@suciptoid
Created February 9, 2015 01:26
Show Gist options
  • Save suciptoid/3668a1611bcb1c99e894 to your computer and use it in GitHub Desktop.
Save suciptoid/3668a1611bcb1c99e894 to your computer and use it in GitHub Desktop.
Header
#ifndef HTTPTHREAD_H
#define HTTPTHREAD_H
#include <QThread>
#include <QTcpSocket>
class FortuneThread : public QThread
{_
Q_OBJECT
public:
HttpThread(int socketDescriptor, const QString &httpthread, QObject *parent);
void run();
signals:
void error(QTcpSocket::SocketError socketError);
private:
int socketDescriptor;
QString text;
};
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment