summaryrefslogtreecommitdiffstats
path: root/client/main.cpp
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2014-11-20 16:28:31 +0100
committerAaron Seigo <aseigo@kde.org>2014-11-20 16:28:31 +0100
commited20c3082d4fd5e90703e4d6c37093dcecb5cfd1 (patch)
treec4ad96fde99c38ee66c0ba7d0f8231bc5326b3d6 /client/main.cpp
downloadsink-ed20c3082d4fd5e90703e4d6c37093dcecb5cfd1.tar.gz
sink-ed20c3082d4fd5e90703e4d6c37093dcecb5cfd1.zip
sketch in the client/resource model
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