NetworkController.h
37 lines
| 726 B
| text/x-c
|
CLexer
r339 | #ifndef SCIQLOP_NETWORKCONTROLLER_H | |||
#define SCIQLOP_NETWORKCONTROLLER_H | ||||
#include <QLoggingCategory> | ||||
#include <QObject> | ||||
#include <Common/spimpl.h> | ||||
Q_DECLARE_LOGGING_CATEGORY(LOG_NetworkController) | ||||
r386 | class QNetworkReply; | |||
r339 | /** | |||
* @brief The NetworkController class aims to handle all network connection of SciQlop. | ||||
*/ | ||||
class NetworkController : public QObject { | ||||
Q_OBJECT | ||||
public: | ||||
explicit NetworkController(QObject *parent = 0); | ||||
r386 | void execute(QNetworkReply *reply); | |||
r339 | ||||
void initialize(); | ||||
void finalize(); | ||||
r386 | signals: | |||
replyToRead(); | ||||
r339 | private: | |||
void waitForFinish(); | ||||
class NetworkControllerPrivate; | ||||
spimpl::unique_impl_ptr<NetworkControllerPrivate> impl; | ||||
}; | ||||
#endif // SCIQLOP_NETWORKCONTROLLER_H | ||||