Mercurial > hg > syntilista
comparison src/main.h @ 301:2facccc60523
Remove optionality of QtHttp.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 15 May 2023 14:04:33 +0300 |
parents | 0f345852b3ed |
children |
comparison
equal
deleted
inserted
replaced
300:3cca82bced54 | 301:2facccc60523 |
---|---|
15 #include <QtSql> | 15 #include <QtSql> |
16 #include <QSqlQueryModel> | 16 #include <QSqlQueryModel> |
17 #include <QPainter> | 17 #include <QPainter> |
18 #include <QPrinter> | 18 #include <QPrinter> |
19 #include <QProgressDialog> | 19 #include <QProgressDialog> |
20 #ifdef USE_QTHTTP | 20 #include <QNetworkAccessManager> |
21 # include <QNetworkAccessManager> | 21 #include <QNetworkRequest> |
22 # include <QNetworkRequest> | 22 #include <QNetworkReply> |
23 # include <QNetworkReply> | 23 #include <QHttpMultiPart> |
24 # include <QHttpMultiPart> | |
25 #endif | |
26 | 24 |
27 | 25 |
28 // | 26 // |
29 // Global application defines | 27 // Global application defines |
30 // | 28 // |
225 | 223 |
226 void updateSortOrder(int index, Qt::SortOrder order); | 224 void updateSortOrder(int index, Qt::SortOrder order); |
227 | 225 |
228 void printDocument(QPrinter *printer); | 226 void printDocument(QPrinter *printer); |
229 | 227 |
230 #ifdef USE_QTHTTP | |
231 void httpBackupProgress(qint64 bytesSent, qint64 bytesTotal); | 228 void httpBackupProgress(qint64 bytesSent, qint64 bytesTotal); |
232 void httpBackupFinished(); | 229 void httpBackupFinished(); |
233 void httpBackupError(QNetworkReply::NetworkError code); | 230 void httpBackupError(QNetworkReply::NetworkError code); |
234 #endif | |
235 | 231 |
236 | 232 |
237 private: | 233 private: |
238 Ui::SyntilistaMainWindow *ui; | 234 Ui::SyntilistaMainWindow *ui; |
239 | 235 |
240 QProgressDialog *backupDialog; | 236 QProgressDialog *backupDialog; |
241 #ifdef USE_QTHTTP | |
242 QNetworkReply *httpBackupReply; | 237 QNetworkReply *httpBackupReply; |
243 #endif | |
244 | 238 |
245 SLTransactionSQLModel *model_Latest; | 239 SLTransactionSQLModel *model_Latest; |
246 SLPersonInfo currPerson; | 240 SLPersonInfo currPerson; |
247 | 241 |
248 int peopleSortIndex; | 242 int peopleSortIndex; |