summaryrefslogtreecommitdiffstats
path: root/client/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/main.cpp')
-rw-r--r--client/main.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/client/main.cpp b/client/main.cpp
new file mode 100644
index 0000000..2fbb8fe
--- /dev/null
+++ b/client/main.cpp
@@ -0,0 +1,19 @@
1
2#include <QApplication>
3
4#include "common/console.h"
5#include "resourceaccess.h"
6
7int main(int argc, char *argv[])
8{
9 QApplication app(argc, argv);
10
11 new Console("Toy Client");
12 ResourceAccess *resAccess = new ResourceAccess("toyResource");
13
14 QObject::connect(&app, &QCoreApplication::aboutToQuit,
15 resAccess, &ResourceAccess::close);
16
17 resAccess->open();
18 return app.exec();
19} \ No newline at end of file