Skip to content
This repository
Newer
Older
100644 13 lines (11 sloc) 0.416 kb
62b49914 » joefiorini
2011-10-31 Add ability to query for console messages & errors
1 #include "ConsoleMessages.h"
2 #include "WebPage.h"
f80125e6 » mhoran
2012-04-04 Pass the WebPageManager to each command
3 #include "WebPageManager.h"
ec257f7f » mhoran
2012-12-29 Serialize console messsages using JsonSerializer
4 #include "JsonSerializer.h"
62b49914 » joefiorini
2011-10-31 Add ability to query for console messages & errors
5
95732ad7 » jferris
2012-07-08 Split Command into more abstract Command and concrete SocketCommand
6 ConsoleMessages::ConsoleMessages(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
62b49914 » joefiorini
2011-10-31 Add ability to query for console messages & errors
7 }
8
85dcc729 » jferris
2012-03-16 Pass command arguments to the constructor
9 void ConsoleMessages::start() {
ec257f7f » mhoran
2012-12-29 Serialize console messsages using JsonSerializer
10 JsonSerializer serializer;
e1838037 » mhoran
2012-12-30 JsonSerializer returns QByteArray
11 QByteArray json = serializer.serialize(page()->consoleMessages());
ec257f7f » mhoran
2012-12-29 Serialize console messsages using JsonSerializer
12 emitFinished(true, json);
62b49914 » joefiorini
2011-10-31 Add ability to query for console messages & errors
13 }
14
Something went wrong with that request. Please try again.