27 #include <QJsonDocument>
30 #include <QCoreApplication>
32 #include "authenticate.h"
39 Q_PROPERTY(QStringList arguments READ arguments)
46 bool loadModule(
const QString &
name, QObject* module);
48 QStringList arguments() {
return mArguments;}
49 void setArguments(
const QStringList & args) { mArguments = args; }
50 void setArguments(
int len,
char **args);
54 void assertIsTrue(
bool isTrue,
const QString &msg=
"");
56 void loadScript(QString str);
58 bool loadModule(QString path);
60 void writeProgram(QString program);
62 void log(QJSValue str);
64 QObject* createTimer();
65 QObject* createQObject();
67 QObject* createCoreApplication();
69 int run(QCoreApplication *app);
78 QStringList configsToLoad;
79 QStringList mArguments;
80 std::map<std::string, std::string> configuration;
83 #endif // Bluemonkey_H