Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (30 sloc) 816 Bytes
#include <QObject>
#include <QStringList>
class QTcpSocket;
class WebPage;
class Command;
class Response;
class CommandParser;
class CommandFactory;
class PageLoadingCommand;
class Connection : public QObject {
Connection(QTcpSocket *socket, WebPage *page, QObject *parent = 0);
public slots:
void commandReady(Command *command);
void finishCommand(Response *response);
void pendingLoadFinished(bool success);
void startCommand();
void writeResponse(Response *response);
void writePageLoadFailure();
QTcpSocket *m_socket;
Command *m_queuedCommand;
WebPage *m_page;
CommandParser *m_commandParser;
CommandFactory *m_commandFactory;
PageLoadingCommand *m_runningCommand;
bool m_pageSuccess;
bool m_commandWaiting;
Something went wrong with that request. Please try again.