Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 12 lines (9 sloc) 0.315 kb
81ad8fd @halogenandtoast Implement source and body. Evaluate javascript should return nil when em...
halogenandtoast authored
1 #include "Body.h"
2 #include "WebPage.h"
f80125e @mhoran Pass the WebPageManager to each command
mhoran authored
3 #include "WebPageManager.h"
81ad8fd @halogenandtoast Implement source and body. Evaluate javascript should return nil when em...
halogenandtoast authored
4
95732ad @jferris Split Command into more abstract Command and concrete SocketCommand
jferris authored
5 Body::Body(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
81ad8fd @halogenandtoast Implement source and body. Evaluate javascript should return nil when em...
halogenandtoast authored
6 }
7
85dcc72 @jferris Pass command arguments to the constructor
jferris authored
8 void Body::start() {
81ad8fd @halogenandtoast Implement source and body. Evaluate javascript should return nil when em...
halogenandtoast authored
9 QString result = page()->currentFrame()->toHtml();
10 emit finished(new Response(true, result));
11 }
Something went wrong with that request. Please try again.