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