-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.cpp
More file actions
31 lines (27 loc) · 806 Bytes
/
main.cpp
File metadata and controls
31 lines (27 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "pqengine.h"
#include "pqenginecore.h"
int main(int argc, char *argv[])
{
// NOTE: change the pmd5-key if need
//QString pmd5 = "be71c3787982c632f238b1192b5b6259;0x0";
PQEngineCore *pqenginecore = new PQEngineCore;
PQExtensionList pqExtensions;
pqExtensions << pqenginecore;
PQEngine engine(pqExtensions);
PQEngineInitConf cfg;
cfg.appName = "HelloWorld";
cfg.appVersion = "1.0";
cfg.orgName = "phpqt";
cfg.orgDomain = "phpqt.ru";
cfg.hashKey = "0x0";
cfg.pmd5 = "0x0;0x0";
cfg.checkName = false;
cfg.debugSocketName = "PQEngine Debug Server";
#ifdef PQDEBUG
engine.init(argc, argv, "pqengine-debug", cfg);
#else
engine.init(argc, argv, "pqengine", cfg);
#endif
// NOTE: change path
return engine.exec("main.php");
}