src/partDownloader.h

changeset 865
6d68840fcb26
parent 855
e16f1587ef44
child 867
557cb07dbe57
equal deleted inserted replaced
864:34033bc2ffb6 865:6d68840fcb26
84 void sourceChanged (int i); 84 void sourceChanged (int i);
85 }; 85 };
86 86
87 // ============================================================================= 87 // =============================================================================
88 // 88 //
89 enum PartDownloadRequestState
90 {
91 DLRQ_Requesting,
92 DLRQ_Downloading,
93 DLRQ_Finished,
94 DLRQ_Failed,
95 };
96
97 class PartDownloadRequest : public QObject 89 class PartDownloadRequest : public QObject
98 { 90 {
99 public: 91 public:
92 enum class State
93 {
94 Requesting,
95 Downloading,
96 Finished,
97 Failed,
98 };
99
100 Q_OBJECT 100 Q_OBJECT
101 PROPERTY (public, int, tableRow, setTableRow, STOCK_WRITE) 101 PROPERTY (public, int, tableRow, setTableRow, STOCK_WRITE)
102 PROPERTY (private, PartDownloadRequestState, state, setState, STOCK_WRITE) 102 PROPERTY (private, State, state, setState, STOCK_WRITE)
103 PROPERTY (private, PartDownloader*, prompt, setPrompt, STOCK_WRITE) 103 PROPERTY (private, PartDownloader*, prompt, setPrompt, STOCK_WRITE)
104 PROPERTY (private, QString, url, setURL, STOCK_WRITE) 104 PROPERTY (private, QString, url, setURL, STOCK_WRITE)
105 PROPERTY (private, QString, destinaton, setDestination, STOCK_WRITE) 105 PROPERTY (private, QString, destinaton, setDestination, STOCK_WRITE)
106 PROPERTY (private, QString, filePath, setFilePath, STOCK_WRITE) 106 PROPERTY (private, QString, filePath, setFilePath, STOCK_WRITE)
107 PROPERTY (private, QNetworkAccessManager*, networkManager, setNetworkManager, STOCK_WRITE) 107 PROPERTY (private, QNetworkAccessManager*, networkManager, setNetworkManager, STOCK_WRITE)

mercurial