diff options
author | Erik Prabowo Kamal <erik@darapsa.co.id> | 2019-08-29 14:32:39 +0800 |
---|---|---|
committer | Erik Prabowo Kamal <erik@darapsa.co.id> | 2019-08-29 14:32:39 +0800 |
commit | 938ea55a0a272b6fd1e35ee383c1f444cdbebf05 (patch) | |
tree | 15c6ddcedb13a625d5afe78dea6f7600ecc445f5 | |
parent | 74c8d91d4ac60f2f07e0e75dd67ff1d4c4cceeff (diff) |
Renamed NetworkWorker to just Worker
-rw-r--r-- | kelakon.pro | 4 | ||||
-rw-r--r-- | main.cxx | 4 | ||||
-rw-r--r-- | networkworker.cxx | 13 | ||||
-rw-r--r-- | networkworker.hxx | 14 | ||||
-rw-r--r-- | worker.cxx | 13 | ||||
-rw-r--r-- | worker.hxx | 14 |
6 files changed, 31 insertions, 31 deletions
diff --git a/kelakon.pro b/kelakon.pro index 388027c..34a2948 100644 --- a/kelakon.pro +++ b/kelakon.pro @@ -5,11 +5,11 @@ QT += \ debug: DEFINES += DEBUG HEADERS += \ - networkworker.hxx \ + worker.hxx \ user.hxx SOURCES += \ - networkworker.cxx \ + worker.cxx \ user.cxx \ main.cxx @@ -2,7 +2,7 @@ #include <QQmlApplicationEngine> #include <QThread> #include "user.hxx" -#include "networkworker.hxx" +#include "worker.hxx" int main(int argc, char* argv[]) { @@ -10,7 +10,7 @@ int main(int argc, char* argv[]) QGuiApplication app(argc, argv); QQmlApplicationEngine engine; - NetworkWorker worker{}; + Worker worker{}; QThread thread; worker.moveToThread(&thread); diff --git a/networkworker.cxx b/networkworker.cxx deleted file mode 100644 index 3487d4c..0000000 --- a/networkworker.cxx +++ /dev/null @@ -1,13 +0,0 @@ -#include "rtclient.h" -#include "networkworker.hxx" - -NetworkWorker::NetworkWorker(QObject* parent) : - QObject{parent} -{ - rtclient_init(); -} - -NetworkWorker::~NetworkWorker() -{ - rtclient_cleanup(); -} diff --git a/networkworker.hxx b/networkworker.hxx deleted file mode 100644 index 05124d5..0000000 --- a/networkworker.hxx +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef NETWORKWORKER_HXX -#define NETWORKWORKER_HXX - -#include <QObject> - -class NetworkWorker : public QObject -{ - Q_OBJECT - public: - explicit NetworkWorker(QObject* parent = nullptr); - virtual ~NetworkWorker(); -}; - -#endif // NETWORKWORKER_HXX diff --git a/worker.cxx b/worker.cxx new file mode 100644 index 0000000..8c915f8 --- /dev/null +++ b/worker.cxx @@ -0,0 +1,13 @@ +#include "rtclient.h" +#include "worker.hxx" + +Worker::Worker(QObject* parent) : + QObject{parent} +{ + rtclient_init(); +} + +Worker::~Worker() +{ + rtclient_cleanup(); +} diff --git a/worker.hxx b/worker.hxx new file mode 100644 index 0000000..cdb2811 --- /dev/null +++ b/worker.hxx @@ -0,0 +1,14 @@ +#ifndef WORKER_HXX +#define WORKER_HXX + +#include <QObject> + +class Worker : public QObject +{ + Q_OBJECT + public: + explicit Worker(QObject* parent = nullptr); + virtual ~Worker(); +}; + +#endif // WORKER_HXX |