2011-10-31 13:53:57 -04:00
|
|
|
#include "ConsoleMessages.h"
|
|
|
|
#include "WebPage.h"
|
2012-04-04 18:18:17 -04:00
|
|
|
#include "WebPageManager.h"
|
2012-12-29 20:48:15 -05:00
|
|
|
#include "JsonSerializer.h"
|
2011-10-31 13:53:57 -04:00
|
|
|
|
2012-07-08 15:04:30 -04:00
|
|
|
ConsoleMessages::ConsoleMessages(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
|
2011-10-31 13:53:57 -04:00
|
|
|
}
|
|
|
|
|
2012-03-16 19:58:58 -04:00
|
|
|
void ConsoleMessages::start() {
|
2012-12-29 20:48:15 -05:00
|
|
|
JsonSerializer serializer;
|
2012-12-30 17:47:16 -05:00
|
|
|
QByteArray json = serializer.serialize(page()->consoleMessages());
|
2013-02-11 18:31:41 -05:00
|
|
|
finish(true, json);
|
2011-10-31 13:53:57 -04:00
|
|
|
}
|
|
|
|
|