summaryrefslogtreecommitdiffstats
path: root/logic/net/NetWorker.h
diff options
context:
space:
mode:
Diffstat (limited to 'logic/net/NetWorker.h')
-rw-r--r--logic/net/NetWorker.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/logic/net/NetWorker.h b/logic/net/NetWorker.h
index 98374e3b..cf7e72e1 100644
--- a/logic/net/NetWorker.h
+++ b/logic/net/NetWorker.h
@@ -9,12 +9,23 @@
'OOOOOY _.'
'""""''
*/
-
#pragma once
+
#include <QNetworkAccessManager>
-class NetWorker : public QNetworkAccessManager
+#include <QUrl>
+
+class NetWorker : public QObject
{
Q_OBJECT
public:
- static NetWorker &spawn();
+ // for high level access to the sevices (preferred)
+ static NetWorker &worker();
+ // for low-level access to the network manager object
+ static QNetworkAccessManager &qnam();
+public:
+
+private:
+ explicit NetWorker ( QObject* parent = 0 );
+ class Private;
+ Private * d;
}; \ No newline at end of file