diff options
Diffstat (limited to 'resource/main.cpp')
-rw-r--r-- | resource/main.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/resource/main.cpp b/resource/main.cpp deleted file mode 100644 index 91c0a9a..0000000 --- a/resource/main.cpp +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | |||
2 | #include <QApplication> | ||
3 | |||
4 | #include "common/console.h" | ||
5 | #include "listener.h" | ||
6 | |||
7 | int main(int argc, char *argv[]) | ||
8 | { | ||
9 | QApplication app(argc, argv); | ||
10 | |||
11 | new Console(QString("Resource: %1").arg(argv[1])); | ||
12 | if (argc < 2) { | ||
13 | Console::main()->log("Not enough args"); | ||
14 | return app.exec(); | ||
15 | } | ||
16 | |||
17 | Listener *listener = new Listener(argv[1]); | ||
18 | |||
19 | QObject::connect(&app, &QCoreApplication::aboutToQuit, | ||
20 | listener, &Listener::closeAllConnections); | ||
21 | QObject::connect(listener, &Listener::noClients, | ||
22 | &app, &QCoreApplication::quit); | ||
23 | |||
24 | return app.exec(); | ||
25 | } \ No newline at end of file | ||