2011-10-14 15:22:24 +00:00
|
|
|
#include "CommandFactory.h"
|
2012-03-21 22:50:55 +00:00
|
|
|
#include "NullCommand.h"
|
2011-10-14 15:22:24 +00:00
|
|
|
#include "Visit.h"
|
|
|
|
#include "Find.h"
|
|
|
|
#include "Command.h"
|
|
|
|
#include "Reset.h"
|
|
|
|
#include "Node.h"
|
|
|
|
#include "Url.h"
|
|
|
|
#include "Source.h"
|
|
|
|
#include "Evaluate.h"
|
|
|
|
#include "Execute.h"
|
|
|
|
#include "FrameFocus.h"
|
|
|
|
#include "Header.h"
|
|
|
|
#include "Render.h"
|
|
|
|
#include "Body.h"
|
|
|
|
#include "Status.h"
|
|
|
|
#include "Headers.h"
|
|
|
|
#include "SetCookie.h"
|
|
|
|
#include "ClearCookies.h"
|
|
|
|
#include "GetCookies.h"
|
2011-10-14 21:13:06 +00:00
|
|
|
#include "SetProxy.h"
|
2011-10-31 17:53:57 +00:00
|
|
|
#include "ConsoleMessages.h"
|
2011-11-16 02:11:37 +00:00
|
|
|
#include "RequestedUrl.h"
|
2012-02-05 16:43:48 +00:00
|
|
|
#include "CurrentUrl.h"
|
2012-03-29 16:59:43 +00:00
|
|
|
#include "ResizeWindow.h"
|
2012-05-04 17:56:21 +00:00
|
|
|
#include "IgnoreSslErrors.h"
|
2012-03-30 01:38:34 +00:00
|
|
|
#include "SetSkipImageLoading.h"
|
2012-03-26 22:41:33 +00:00
|
|
|
#include "WindowFocus.h"
|
2012-03-27 22:49:57 +00:00
|
|
|
#include "GetWindowHandles.h"
|
|
|
|
#include "GetWindowHandle.h"
|
2011-10-14 15:22:24 +00:00
|
|
|
|
|
|
|
CommandFactory::CommandFactory(WebPage *page, QObject *parent) : QObject(parent) {
|
|
|
|
m_page = page;
|
|
|
|
}
|
|
|
|
|
2012-03-16 23:58:58 +00:00
|
|
|
Command *CommandFactory::createCommand(const char *name, QStringList &arguments) {
|
2011-10-14 15:22:24 +00:00
|
|
|
#include "find_command.h"
|
2012-03-21 22:50:55 +00:00
|
|
|
arguments.clear();
|
|
|
|
arguments.append(QString(name));
|
|
|
|
return new NullCommand(m_page, arguments);
|
2011-10-14 15:22:24 +00:00
|
|
|
}
|
2012-03-26 22:41:33 +00:00
|
|
|
|
|
|
|
void CommandFactory::changeWindow(WebPage *newPage) {
|
|
|
|
m_page = newPage;
|
|
|
|
}
|