From ed20c3082d4fd5e90703e4d6c37093dcecb5cfd1 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Thu, 20 Nov 2014 16:28:31 +0100 Subject: sketch in the client/resource model --- client/main.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 client/main.cpp (limited to 'client/main.cpp') 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 @@ + +#include + +#include "common/console.h" +#include "resourceaccess.h" + +int main(int argc, char *argv[]) +{ + QApplication app(argc, argv); + + new Console("Toy Client"); + ResourceAccess *resAccess = new ResourceAccess("toyResource"); + + QObject::connect(&app, &QCoreApplication::aboutToQuit, + resAccess, &ResourceAccess::close); + + resAccess->open(); + return app.exec(); +} \ No newline at end of file -- cgit v1.2.3