Permalink
Browse files

PageLoadingCommand implements the Command interface

  • Loading branch information...
1 parent 95732ad commit 9202683c22ff7668c20f3eb130ea3e534219d77f @jferris jferris committed Jul 8, 2012
Showing with 4 additions and 7 deletions.
  1. +1 −1 src/PageLoadingCommand.cpp
  2. +3 −6 src/PageLoadingCommand.h
@@ -3,7 +3,7 @@
#include "WebPage.h"
#include "WebPageManager.h"
-PageLoadingCommand::PageLoadingCommand(Command *command, WebPageManager *manager, QObject *parent) : QObject(parent) {
+PageLoadingCommand::PageLoadingCommand(Command *command, WebPageManager *manager, QObject *parent) : Command(parent) {
m_manager = manager;
m_command = command;
m_pageLoadingFromCommand = false;
View
@@ -1,7 +1,7 @@
#include <QObject>
#include <QStringList>
+#include "Command.h"
-class Command;
class Response;
class WebPageManager;
@@ -15,21 +15,18 @@ class WebPageManager;
* If a pending page load fails, the command's response will be discarded and a
* failure response will be emitted instead.
*/
-class PageLoadingCommand : public QObject {
+class PageLoadingCommand : public Command {
Q_OBJECT
public:
PageLoadingCommand(Command *command, WebPageManager *page, QObject *parent = 0);
- void start();
+ virtual void start();
public slots:
void pageLoadingFromCommand();
void pendingLoadFinished(bool success);
void commandFinished(Response *response);
- signals:
- void finished(Response *response);
-
private:
WebPageManager *m_manager;
Command *m_command;

0 comments on commit 9202683

Please sign in to comment.