| 1 | /***************************************************************************** |
| 2 | ** Copyright (C) 2005 by Iulian M |
| 3 | ** [email protected] |
| 4 | ** |
| 5 | ** modifications by Piotr KrzemiĆski |
| 6 | ** Copyright (C) 2008-2017 |
| 7 | ** |
| 8 | ** This program is free software; you can redistribute it and/or modify |
| 9 | ** it under the terms of the GNU General Public License as published by |
| 10 | ** the Free Software Foundation; either version 2 of the License, or |
| 11 | ** (at your option) any later version. |
| 12 | ** |
| 13 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
| 14 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
| 15 | ** |
| 16 | *****************************************************************************/ |
| 17 | |
| 18 | #ifndef SYNCHTTP_H |
| 19 | #define SYNCHTTP_Hcxx . . $ `libqnapi/src/utils/synchttp.h:19:9`! |
| 20 | |
| 21 | #include <QEventLoop> |
| 22 | #include <QNetworkAccessManager> |
| 23 | #include <QNetworkReply> |
| 24 | #include <QNetworkRequest> |
| 25 | #include <QObject> |
| 26 | |
| 27 | class SyncHTTPcxx . . $ SyncHTTP# : public QObjectcxx . . $ QObject# { |
| 28 | Q_OBJECTcxx . . $ QMetaObject#Call# |
| 29 | public: |
| 30 | SyncHTTPcxx . . $ SyncHTTP#SyncHTTP(49f6e7a06ebc5aa8).(); |
| 31 | |
| 32 | QNetworkReplycxx . . $ QNetworkReply#* syncGetcxx . . $ SyncHTTP#syncGet(d12587da35e4fcd1).(const QNetworkRequestcxx . . $ QNetworkRequest#& req); |
| 33 | QNetworkReplycxx . . $ QNetworkReply#* syncPostcxx . . $ SyncHTTP#syncPost(7ed39bc32e459c39).(const QNetworkRequestcxx . . $ QNetworkRequest#& req, const QByteArraycxx . . $ QByteArray#& data); |
| 34 | |
| 35 | private: |
| 36 | QEventLoopcxx . . $ QEventLoop# loopcxx . . $ SyncHTTP#loop.; |
| 37 | QNetworkAccessManagercxx . . $ QNetworkAccessManager# managercxx . . $ SyncHTTP#manager.; |
| 38 | }; |
| 39 | |
| 40 | #endif |