| 22 | #include "maiaXmlRpcClient.h" |
| 23 | |
| 24 | class SyncXmlRpc : public QObject { |
| 25 | Q_OBJECT |
| 26 | public: |
| 27 | SyncXmlRpc(const QUrl& endPoint); |
| 28 | |
| 29 | bool request(const QString& method, const QVariantList& args); |
| 30 | QVariant getResponse() const; |
| 31 | QVariant getError() const; |
| 32 | |
| 33 | private slots: |
| 34 | |
| 35 | void whenResponse(QVariant& response); |
| 36 | |
| 37 | void whenFault(int err, const QString& msg); |
| 38 | |
| 39 | private: |
| 40 | bool result; |
| 41 | int error; |
| 42 | QString message; |
| 43 | QVariant resp; |
| 44 | QEventLoop loop; |
| 45 | MaiaXmlRpcClient rpc; |
| 46 | }; |
| 47 | |
| 48 | #endif |
nothing calls this directly
no outgoing calls
no test coverage detected