##// END OF EJS Templates
Implementation of progression
Implementation of progression

File last commit:

r606:7ea0025fca62 feature/SynchroIm...
r606:7ea0025fca62 feature/SynchroIm...
Show More
NetworkController.h
49 lines | 1.3 KiB | text/x-c | CLexer
Intialization of network controller
r313 #ifndef SCIQLOP_NETWORKCONTROLLER_H
#define SCIQLOP_NETWORKCONTROLLER_H
Alexandre Leroux
Exports core module as a shared library...
r425 #include "CoreGlobal.h"
Intialization of network controller
r313 #include <QLoggingCategory>
#include <QObject>
Implement the network controller to permit the execution of a request...
r359 #include <QUuid>
Intialization of network controller
r313
#include <Common/spimpl.h>
Implement the network controller to permit the execution of a request...
r359 #include <functional>
Intialization of network controller
r313
Q_DECLARE_LOGGING_CATEGORY(LOG_NetworkController)
Add execute skelleton Network
r356 class QNetworkReply;
Implement the network controller to permit the execution of a request...
r359 class QNetworkRequest;
Add execute skelleton Network
r356
Intialization of network controller
r313 /**
* @brief The NetworkController class aims to handle all network connection of SciQlop.
*/
Alexandre Leroux
Exports core module as a shared library...
r425 class SCIQLOP_CORE_EXPORT NetworkController : public QObject {
Intialization of network controller
r313 Q_OBJECT
public:
explicit NetworkController(QObject *parent = 0);
void initialize();
void finalize();
Implement the network controller to permit the execution of a request...
r359 public slots:
Add implementation of progress bar on variable inspector connected to...
r369 /// Execute request and call callback when the reply is finished. Identifier is attached to the
/// callback
Implement the network controller to permit the execution of a request...
r359 void onProcessRequested(const QNetworkRequest &request, QUuid identifier,
std::function<void(QNetworkReply *, QUuid)> callback);
Add implementation of progress bar on variable inspector connected to...
r369 /// Cancel the request of identifier
Implement the network controller to permit the execution of a request...
r359 void onReplyCanceled(QUuid identifier);
Add execute skelleton Network
r356 signals:
Implement the network controller to permit the execution of a request...
r359 void replyFinished(QNetworkReply *reply, QUuid identifier);
Implementation of progression
r606 void replyDownloadProgress(QUuid identifier, const QNetworkRequest &networkRequest,
double progress);
Add execute skelleton Network
r356
Intialization of network controller
r313 private:
void waitForFinish();
class NetworkControllerPrivate;
spimpl::unique_impl_ptr<NetworkControllerPrivate> impl;
};
#endif // SCIQLOP_NETWORKCONTROLLER_H