Advertisement
Guest User

Untitled

a guest
Jul 4th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 153.65 KB | None | 0 0
  1. // This file is generated by KDAB's kdwsdl2cpp from sdk.wsdl.
  2. // All changes you do to this file will be lost.
  3. /*
  4. You may use and relicense this generated file without restriction.
  5. */
  6.  
  7. #include "wsdl_iridium.h"
  8.  
  9. #include "KDSoapNamespaceManager.h"
  10. #include <QSharedPointer>
  11. #include "KDSoapMessage.h"
  12. #include "KDSoapValue.h"
  13. #include "KDSoapPendingCallWatcher.h"
  14.  
  15. class XS__Sdk_configuration_getSettings_response_t::PrivateDPtr : public QSharedData
  16. {
  17. public:
  18. PrivateDPtr();
  19.  
  20. public:
  21. int mError;
  22. QString mErrorMessage;
  23. QList< XS__Sdk_configuration_t > mConfigurations;
  24. bool mConfigurations_nil;
  25. };
  26.  
  27. XS__Sdk_configuration_getSettings_response_t::PrivateDPtr::PrivateDPtr()
  28. : mError(0), mConfigurations_nil(true)
  29. {
  30. }
  31.  
  32.  
  33. void XS__Sdk_configuration_getSettings_response_t::setError( int _error )
  34. {
  35. d_ptr->mError = _error;
  36. }
  37.  
  38. int XS__Sdk_configuration_getSettings_response_t::error() const
  39. {
  40. return d_ptr->mError;
  41. }
  42.  
  43. void XS__Sdk_configuration_getSettings_response_t::setErrorMessage( const QString& _errorMessage )
  44. {
  45. d_ptr->mErrorMessage = _errorMessage;
  46. }
  47.  
  48. QString XS__Sdk_configuration_getSettings_response_t::errorMessage() const
  49. {
  50. return d_ptr->mErrorMessage;
  51. }
  52.  
  53. void XS__Sdk_configuration_getSettings_response_t::setConfigurations( const QList< XS__Sdk_configuration_t >& _configurations )
  54. {
  55. d_ptr->mConfigurations_nil = false;
  56. d_ptr->mConfigurations = _configurations;
  57. }
  58.  
  59. QList< XS__Sdk_configuration_t > XS__Sdk_configuration_getSettings_response_t::configurations() const
  60. {
  61. return d_ptr->mConfigurations;
  62. }
  63.  
  64. KDSoapValue XS__Sdk_configuration_getSettings_response_t::serialize( const QString& valueName ) const
  65. {
  66. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_configuration_getSettings_response_t"));
  67. KDSoapValueList& args = mainValue.childValues();
  68. KDSoapValue _valueError(QString::fromLatin1("error"), QVariant::fromValue(d_ptr->mError), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("int"));
  69. _valueError.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  70. args.append(_valueError);
  71. KDSoapValue _valueErrorMessage(QString::fromLatin1("errorMessage"), QVariant::fromValue(d_ptr->mErrorMessage), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  72. _valueErrorMessage.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  73. args.append(_valueErrorMessage);
  74. for (int i = 0; i < d_ptr->mConfigurations.count(); ++i) {
  75. KDSoapValue _valueConfigurations(d_ptr->mConfigurations.at(i).serialize(QString::fromLatin1("configurations")));
  76. _valueConfigurations.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  77. args.append(_valueConfigurations);
  78. }
  79. return mainValue;
  80. }
  81.  
  82. void XS__Sdk_configuration_getSettings_response_t::deserialize( const KDSoapValue& mainValue )
  83. {
  84. const KDSoapValueList& args = mainValue.childValues();
  85. for (int argNr = 0; argNr < args.count(); ++argNr) {
  86. const KDSoapValue& val = args.at(argNr);
  87. const QString _name = val.name();
  88. if (_name == QLatin1String("error")) {
  89. d_ptr->mError = val.value().value<int>();
  90. }
  91. else if (_name == QLatin1String("errorMessage")) {
  92. d_ptr->mErrorMessage = val.value().value<QString>();
  93. }
  94. else if (_name == QLatin1String("configurations")) {
  95. XS__Sdk_configuration_t mConfigurationsTemp;
  96. mConfigurationsTemp.deserialize(val);
  97. d_ptr->mConfigurations.append(mConfigurationsTemp);
  98. d_ptr->mConfigurations_nil = false;
  99. }
  100. }
  101. }
  102.  
  103. XS__Sdk_configuration_getSettings_response_t::XS__Sdk_configuration_getSettings_response_t()
  104. : d_ptr(new PrivateDPtr)
  105. {
  106. }
  107.  
  108. XS__Sdk_configuration_getSettings_response_t::~XS__Sdk_configuration_getSettings_response_t()
  109. {
  110. }
  111.  
  112. XS__Sdk_configuration_getSettings_response_t::XS__Sdk_configuration_getSettings_response_t( const XS__Sdk_configuration_getSettings_response_t& other )
  113. : d_ptr( other.d_ptr )
  114. {
  115. }
  116.  
  117. XS__Sdk_configuration_getSettings_response_t& XS__Sdk_configuration_getSettings_response_t::operator=( const XS__Sdk_configuration_getSettings_response_t& other )
  118. {
  119. if ( this == &other )
  120. return *this;
  121.  
  122. d_ptr = other.d_ptr;
  123.  
  124. return *this;
  125. }
  126.  
  127.  
  128. class XS__Sdk_configuration_requestList_t::PrivateDPtr : public QSharedData
  129. {
  130. public:
  131. QList< XS__Sdk_configuration_tagRequest_t > mRequestList;
  132. };
  133.  
  134. void XS__Sdk_configuration_requestList_t::setRequestList( const QList< XS__Sdk_configuration_tagRequest_t >& _requestList )
  135. {
  136. d_ptr->mRequestList = _requestList;
  137. }
  138.  
  139. QList< XS__Sdk_configuration_tagRequest_t > XS__Sdk_configuration_requestList_t::requestList() const
  140. {
  141. return d_ptr->mRequestList;
  142. }
  143.  
  144. KDSoapValue XS__Sdk_configuration_requestList_t::serialize( const QString& valueName ) const
  145. {
  146. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_configuration_requestList_t"));
  147. KDSoapValueList& args = mainValue.childValues();
  148. for (int i = 0; i < d_ptr->mRequestList.count(); ++i) {
  149. KDSoapValue _valueRequestList(d_ptr->mRequestList.at(i).serialize(QString::fromLatin1("requestList")));
  150. _valueRequestList.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  151. args.append(_valueRequestList);
  152. }
  153. return mainValue;
  154. }
  155.  
  156. void XS__Sdk_configuration_requestList_t::deserialize( const KDSoapValue& mainValue )
  157. {
  158. const KDSoapValueList& args = mainValue.childValues();
  159. for (int argNr = 0; argNr < args.count(); ++argNr) {
  160. const KDSoapValue& val = args.at(argNr);
  161. const QString _name = val.name();
  162. if (_name == QLatin1String("requestList")) {
  163. XS__Sdk_configuration_tagRequest_t mRequestListTemp;
  164. mRequestListTemp.deserialize(val);
  165. d_ptr->mRequestList.append(mRequestListTemp);
  166. }
  167. }
  168. }
  169.  
  170. XS__Sdk_configuration_requestList_t::XS__Sdk_configuration_requestList_t()
  171. : d_ptr(new PrivateDPtr)
  172. {
  173. }
  174.  
  175. XS__Sdk_configuration_requestList_t::~XS__Sdk_configuration_requestList_t()
  176. {
  177. }
  178.  
  179. XS__Sdk_configuration_requestList_t::XS__Sdk_configuration_requestList_t( const XS__Sdk_configuration_requestList_t& other )
  180. : d_ptr( other.d_ptr )
  181. {
  182. }
  183.  
  184. XS__Sdk_configuration_requestList_t& XS__Sdk_configuration_requestList_t::operator=( const XS__Sdk_configuration_requestList_t& other )
  185. {
  186. if ( this == &other )
  187. return *this;
  188.  
  189. d_ptr = other.d_ptr;
  190.  
  191. return *this;
  192. }
  193.  
  194.  
  195. class XS__Sdk_configuration_setRequst_list_t::PrivateDPtr : public QSharedData
  196. {
  197. public:
  198. PrivateDPtr();
  199.  
  200. public:
  201. QList< XS__Sdk_configuration_setRequst_t > mSetRequests;
  202. bool mSetRequests_nil;
  203. };
  204.  
  205. XS__Sdk_configuration_setRequst_list_t::PrivateDPtr::PrivateDPtr()
  206. : mSetRequests_nil(true)
  207. {
  208. }
  209.  
  210.  
  211. void XS__Sdk_configuration_setRequst_list_t::setSetRequests( const QList< XS__Sdk_configuration_setRequst_t >& _setRequests )
  212. {
  213. d_ptr->mSetRequests_nil = false;
  214. d_ptr->mSetRequests = _setRequests;
  215. }
  216.  
  217. QList< XS__Sdk_configuration_setRequst_t > XS__Sdk_configuration_setRequst_list_t::setRequests() const
  218. {
  219. return d_ptr->mSetRequests;
  220. }
  221.  
  222. KDSoapValue XS__Sdk_configuration_setRequst_list_t::serialize( const QString& valueName ) const
  223. {
  224. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_configuration_setRequst_list_t"));
  225. KDSoapValueList& args = mainValue.childValues();
  226. for (int i = 0; i < d_ptr->mSetRequests.count(); ++i) {
  227. KDSoapValue _valueSetRequests(d_ptr->mSetRequests.at(i).serialize(QString::fromLatin1("setRequests")));
  228. _valueSetRequests.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  229. args.append(_valueSetRequests);
  230. }
  231. return mainValue;
  232. }
  233.  
  234. void XS__Sdk_configuration_setRequst_list_t::deserialize( const KDSoapValue& mainValue )
  235. {
  236. const KDSoapValueList& args = mainValue.childValues();
  237. for (int argNr = 0; argNr < args.count(); ++argNr) {
  238. const KDSoapValue& val = args.at(argNr);
  239. const QString _name = val.name();
  240. if (_name == QLatin1String("setRequests")) {
  241. XS__Sdk_configuration_setRequst_t mSetRequestsTemp;
  242. mSetRequestsTemp.deserialize(val);
  243. d_ptr->mSetRequests.append(mSetRequestsTemp);
  244. d_ptr->mSetRequests_nil = false;
  245. }
  246. }
  247. }
  248.  
  249. XS__Sdk_configuration_setRequst_list_t::XS__Sdk_configuration_setRequst_list_t()
  250. : d_ptr(new PrivateDPtr)
  251. {
  252. }
  253.  
  254. XS__Sdk_configuration_setRequst_list_t::~XS__Sdk_configuration_setRequst_list_t()
  255. {
  256. }
  257.  
  258. XS__Sdk_configuration_setRequst_list_t::XS__Sdk_configuration_setRequst_list_t( const XS__Sdk_configuration_setRequst_list_t& other )
  259. : d_ptr( other.d_ptr )
  260. {
  261. }
  262.  
  263. XS__Sdk_configuration_setRequst_list_t& XS__Sdk_configuration_setRequst_list_t::operator=( const XS__Sdk_configuration_setRequst_list_t& other )
  264. {
  265. if ( this == &other )
  266. return *this;
  267.  
  268. d_ptr = other.d_ptr;
  269.  
  270. return *this;
  271. }
  272.  
  273.  
  274. class XS__Sdk_configuration_setRequst_t::PrivateDPtr : public QSharedData
  275. {
  276. public:
  277. QString mTag;
  278. QString mValue;
  279. };
  280.  
  281. void XS__Sdk_configuration_setRequst_t::setTag( const QString& _tag )
  282. {
  283. d_ptr->mTag = _tag;
  284. }
  285.  
  286. QString XS__Sdk_configuration_setRequst_t::tag() const
  287. {
  288. return d_ptr->mTag;
  289. }
  290.  
  291. void XS__Sdk_configuration_setRequst_t::setValue( const QString& _value )
  292. {
  293. d_ptr->mValue = _value;
  294. }
  295.  
  296. QString XS__Sdk_configuration_setRequst_t::value() const
  297. {
  298. return d_ptr->mValue;
  299. }
  300.  
  301. KDSoapValue XS__Sdk_configuration_setRequst_t::serialize( const QString& valueName ) const
  302. {
  303. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_configuration_setRequst_t"));
  304. KDSoapValueList& args = mainValue.childValues();
  305. KDSoapValue _valueTag(QString::fromLatin1("tag"), QVariant::fromValue(d_ptr->mTag), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  306. _valueTag.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  307. args.append(_valueTag);
  308. KDSoapValue _valueValue(QString::fromLatin1("value"), QVariant::fromValue(d_ptr->mValue), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  309. _valueValue.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  310. args.append(_valueValue);
  311. return mainValue;
  312. }
  313.  
  314. void XS__Sdk_configuration_setRequst_t::deserialize( const KDSoapValue& mainValue )
  315. {
  316. const KDSoapValueList& args = mainValue.childValues();
  317. for (int argNr = 0; argNr < args.count(); ++argNr) {
  318. const KDSoapValue& val = args.at(argNr);
  319. const QString _name = val.name();
  320. if (_name == QLatin1String("tag")) {
  321. d_ptr->mTag = val.value().value<QString>();
  322. }
  323. else if (_name == QLatin1String("value")) {
  324. d_ptr->mValue = val.value().value<QString>();
  325. }
  326. }
  327. }
  328.  
  329. XS__Sdk_configuration_setRequst_t::XS__Sdk_configuration_setRequst_t()
  330. : d_ptr(new PrivateDPtr)
  331. {
  332. }
  333.  
  334. XS__Sdk_configuration_setRequst_t::~XS__Sdk_configuration_setRequst_t()
  335. {
  336. }
  337.  
  338. XS__Sdk_configuration_setRequst_t::XS__Sdk_configuration_setRequst_t( const XS__Sdk_configuration_setRequst_t& other )
  339. : d_ptr( other.d_ptr )
  340. {
  341. }
  342.  
  343. XS__Sdk_configuration_setRequst_t& XS__Sdk_configuration_setRequst_t::operator=( const XS__Sdk_configuration_setRequst_t& other )
  344. {
  345. if ( this == &other )
  346. return *this;
  347.  
  348. d_ptr = other.d_ptr;
  349.  
  350. return *this;
  351. }
  352.  
  353.  
  354. class XS__Sdk_configuration_setSettings_response_t::PrivateDPtr : public QSharedData
  355. {
  356. public:
  357. PrivateDPtr();
  358.  
  359. public:
  360. int mError;
  361. QString mErrorMessage;
  362. QList< XS__Sdk_configuration_set_Result_t > mSetResults;
  363. bool mSetResults_nil;
  364. };
  365.  
  366. XS__Sdk_configuration_setSettings_response_t::PrivateDPtr::PrivateDPtr()
  367. : mError(0), mSetResults_nil(true)
  368. {
  369. }
  370.  
  371.  
  372. void XS__Sdk_configuration_setSettings_response_t::setError( int _error )
  373. {
  374. d_ptr->mError = _error;
  375. }
  376.  
  377. int XS__Sdk_configuration_setSettings_response_t::error() const
  378. {
  379. return d_ptr->mError;
  380. }
  381.  
  382. void XS__Sdk_configuration_setSettings_response_t::setErrorMessage( const QString& _errorMessage )
  383. {
  384. d_ptr->mErrorMessage = _errorMessage;
  385. }
  386.  
  387. QString XS__Sdk_configuration_setSettings_response_t::errorMessage() const
  388. {
  389. return d_ptr->mErrorMessage;
  390. }
  391.  
  392. void XS__Sdk_configuration_setSettings_response_t::setSetResults( const QList< XS__Sdk_configuration_set_Result_t >& _setResults )
  393. {
  394. d_ptr->mSetResults_nil = false;
  395. d_ptr->mSetResults = _setResults;
  396. }
  397.  
  398. QList< XS__Sdk_configuration_set_Result_t > XS__Sdk_configuration_setSettings_response_t::setResults() const
  399. {
  400. return d_ptr->mSetResults;
  401. }
  402.  
  403. KDSoapValue XS__Sdk_configuration_setSettings_response_t::serialize( const QString& valueName ) const
  404. {
  405. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_configuration_setSettings_response_t"));
  406. KDSoapValueList& args = mainValue.childValues();
  407. KDSoapValue _valueError(QString::fromLatin1("error"), QVariant::fromValue(d_ptr->mError), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("int"));
  408. _valueError.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  409. args.append(_valueError);
  410. KDSoapValue _valueErrorMessage(QString::fromLatin1("errorMessage"), QVariant::fromValue(d_ptr->mErrorMessage), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  411. _valueErrorMessage.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  412. args.append(_valueErrorMessage);
  413. for (int i = 0; i < d_ptr->mSetResults.count(); ++i) {
  414. KDSoapValue _valueSetResults(d_ptr->mSetResults.at(i).serialize(QString::fromLatin1("setResults")));
  415. _valueSetResults.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  416. args.append(_valueSetResults);
  417. }
  418. return mainValue;
  419. }
  420.  
  421. void XS__Sdk_configuration_setSettings_response_t::deserialize( const KDSoapValue& mainValue )
  422. {
  423. const KDSoapValueList& args = mainValue.childValues();
  424. for (int argNr = 0; argNr < args.count(); ++argNr) {
  425. const KDSoapValue& val = args.at(argNr);
  426. const QString _name = val.name();
  427. if (_name == QLatin1String("error")) {
  428. d_ptr->mError = val.value().value<int>();
  429. }
  430. else if (_name == QLatin1String("errorMessage")) {
  431. d_ptr->mErrorMessage = val.value().value<QString>();
  432. }
  433. else if (_name == QLatin1String("setResults")) {
  434. XS__Sdk_configuration_set_Result_t mSetResultsTemp;
  435. mSetResultsTemp.deserialize(val);
  436. d_ptr->mSetResults.append(mSetResultsTemp);
  437. d_ptr->mSetResults_nil = false;
  438. }
  439. }
  440. }
  441.  
  442. XS__Sdk_configuration_setSettings_response_t::XS__Sdk_configuration_setSettings_response_t()
  443. : d_ptr(new PrivateDPtr)
  444. {
  445. }
  446.  
  447. XS__Sdk_configuration_setSettings_response_t::~XS__Sdk_configuration_setSettings_response_t()
  448. {
  449. }
  450.  
  451. XS__Sdk_configuration_setSettings_response_t::XS__Sdk_configuration_setSettings_response_t( const XS__Sdk_configuration_setSettings_response_t& other )
  452. : d_ptr( other.d_ptr )
  453. {
  454. }
  455.  
  456. XS__Sdk_configuration_setSettings_response_t& XS__Sdk_configuration_setSettings_response_t::operator=( const XS__Sdk_configuration_setSettings_response_t& other )
  457. {
  458. if ( this == &other )
  459. return *this;
  460.  
  461. d_ptr = other.d_ptr;
  462.  
  463. return *this;
  464. }
  465.  
  466.  
  467. class XS__Sdk_configuration_set_Result_t::PrivateDPtr : public QSharedData
  468. {
  469. public:
  470. PrivateDPtr();
  471.  
  472. public:
  473. QString mTag;
  474. int mError;
  475. QString mMessage;
  476. };
  477.  
  478. XS__Sdk_configuration_set_Result_t::PrivateDPtr::PrivateDPtr()
  479. : mError(0)
  480. {
  481. }
  482.  
  483.  
  484. void XS__Sdk_configuration_set_Result_t::setTag( const QString& _tag )
  485. {
  486. d_ptr->mTag = _tag;
  487. }
  488.  
  489. QString XS__Sdk_configuration_set_Result_t::tag() const
  490. {
  491. return d_ptr->mTag;
  492. }
  493.  
  494. void XS__Sdk_configuration_set_Result_t::setError( int _error )
  495. {
  496. d_ptr->mError = _error;
  497. }
  498.  
  499. int XS__Sdk_configuration_set_Result_t::error() const
  500. {
  501. return d_ptr->mError;
  502. }
  503.  
  504. void XS__Sdk_configuration_set_Result_t::setMessage( const QString& _message )
  505. {
  506. d_ptr->mMessage = _message;
  507. }
  508.  
  509. QString XS__Sdk_configuration_set_Result_t::message() const
  510. {
  511. return d_ptr->mMessage;
  512. }
  513.  
  514. KDSoapValue XS__Sdk_configuration_set_Result_t::serialize( const QString& valueName ) const
  515. {
  516. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_configuration_set_Result_t"));
  517. KDSoapValueList& args = mainValue.childValues();
  518. KDSoapValue _valueTag(QString::fromLatin1("tag"), QVariant::fromValue(d_ptr->mTag), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  519. _valueTag.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  520. args.append(_valueTag);
  521. KDSoapValue _valueError(QString::fromLatin1("error"), QVariant::fromValue(d_ptr->mError), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("int"));
  522. _valueError.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  523. args.append(_valueError);
  524. KDSoapValue _valueMessage(QString::fromLatin1("message"), QVariant::fromValue(d_ptr->mMessage), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  525. _valueMessage.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  526. args.append(_valueMessage);
  527. return mainValue;
  528. }
  529.  
  530. void XS__Sdk_configuration_set_Result_t::deserialize( const KDSoapValue& mainValue )
  531. {
  532. const KDSoapValueList& args = mainValue.childValues();
  533. for (int argNr = 0; argNr < args.count(); ++argNr) {
  534. const KDSoapValue& val = args.at(argNr);
  535. const QString _name = val.name();
  536. if (_name == QLatin1String("tag")) {
  537. d_ptr->mTag = val.value().value<QString>();
  538. }
  539. else if (_name == QLatin1String("error")) {
  540. d_ptr->mError = val.value().value<int>();
  541. }
  542. else if (_name == QLatin1String("message")) {
  543. d_ptr->mMessage = val.value().value<QString>();
  544. }
  545. }
  546. }
  547.  
  548. XS__Sdk_configuration_set_Result_t::XS__Sdk_configuration_set_Result_t()
  549. : d_ptr(new PrivateDPtr)
  550. {
  551. }
  552.  
  553. XS__Sdk_configuration_set_Result_t::~XS__Sdk_configuration_set_Result_t()
  554. {
  555. }
  556.  
  557. XS__Sdk_configuration_set_Result_t::XS__Sdk_configuration_set_Result_t( const XS__Sdk_configuration_set_Result_t& other )
  558. : d_ptr( other.d_ptr )
  559. {
  560. }
  561.  
  562. XS__Sdk_configuration_set_Result_t& XS__Sdk_configuration_set_Result_t::operator=( const XS__Sdk_configuration_set_Result_t& other )
  563. {
  564. if ( this == &other )
  565. return *this;
  566.  
  567. d_ptr = other.d_ptr;
  568.  
  569. return *this;
  570. }
  571.  
  572.  
  573. class XS__Sdk_configuration_t::PrivateDPtr : public QSharedData
  574. {
  575. public:
  576. QString mTag;
  577. QString mFriendlyName;
  578. QString mDataType;
  579. QString mValue;
  580. QString mMinValue;
  581. QString mMaxValue;
  582. };
  583.  
  584. void XS__Sdk_configuration_t::setTag( const QString& _tag )
  585. {
  586. d_ptr->mTag = _tag;
  587. }
  588.  
  589. QString XS__Sdk_configuration_t::tag() const
  590. {
  591. return d_ptr->mTag;
  592. }
  593.  
  594. void XS__Sdk_configuration_t::setFriendlyName( const QString& _friendlyName )
  595. {
  596. d_ptr->mFriendlyName = _friendlyName;
  597. }
  598.  
  599. QString XS__Sdk_configuration_t::friendlyName() const
  600. {
  601. return d_ptr->mFriendlyName;
  602. }
  603.  
  604. void XS__Sdk_configuration_t::setDataType( const QString& _dataType )
  605. {
  606. d_ptr->mDataType = _dataType;
  607. }
  608.  
  609. QString XS__Sdk_configuration_t::dataType() const
  610. {
  611. return d_ptr->mDataType;
  612. }
  613.  
  614. void XS__Sdk_configuration_t::setValue( const QString& _value )
  615. {
  616. d_ptr->mValue = _value;
  617. }
  618.  
  619. QString XS__Sdk_configuration_t::value() const
  620. {
  621. return d_ptr->mValue;
  622. }
  623.  
  624. void XS__Sdk_configuration_t::setMinValue( const QString& _minValue )
  625. {
  626. d_ptr->mMinValue = _minValue;
  627. }
  628.  
  629. QString XS__Sdk_configuration_t::minValue() const
  630. {
  631. return d_ptr->mMinValue;
  632. }
  633.  
  634. void XS__Sdk_configuration_t::setMaxValue( const QString& _maxValue )
  635. {
  636. d_ptr->mMaxValue = _maxValue;
  637. }
  638.  
  639. QString XS__Sdk_configuration_t::maxValue() const
  640. {
  641. return d_ptr->mMaxValue;
  642. }
  643.  
  644. KDSoapValue XS__Sdk_configuration_t::serialize( const QString& valueName ) const
  645. {
  646. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_configuration_t"));
  647. KDSoapValueList& args = mainValue.childValues();
  648. KDSoapValue _valueTag(QString::fromLatin1("tag"), QVariant::fromValue(d_ptr->mTag), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  649. _valueTag.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  650. args.append(_valueTag);
  651. KDSoapValue _valueFriendlyName(QString::fromLatin1("friendlyName"), QVariant::fromValue(d_ptr->mFriendlyName), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  652. _valueFriendlyName.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  653. args.append(_valueFriendlyName);
  654. KDSoapValue _valueDataType(QString::fromLatin1("dataType"), QVariant::fromValue(d_ptr->mDataType), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  655. _valueDataType.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  656. args.append(_valueDataType);
  657. KDSoapValue _valueValue(QString::fromLatin1("value"), QVariant::fromValue(d_ptr->mValue), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  658. _valueValue.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  659. args.append(_valueValue);
  660. KDSoapValue _valueMinValue(QString::fromLatin1("minValue"), QVariant::fromValue(d_ptr->mMinValue), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  661. _valueMinValue.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  662. args.append(_valueMinValue);
  663. KDSoapValue _valueMaxValue(QString::fromLatin1("maxValue"), QVariant::fromValue(d_ptr->mMaxValue), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  664. _valueMaxValue.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  665. args.append(_valueMaxValue);
  666. return mainValue;
  667. }
  668.  
  669. void XS__Sdk_configuration_t::deserialize( const KDSoapValue& mainValue )
  670. {
  671. const KDSoapValueList& args = mainValue.childValues();
  672. for (int argNr = 0; argNr < args.count(); ++argNr) {
  673. const KDSoapValue& val = args.at(argNr);
  674. const QString _name = val.name();
  675. if (_name == QLatin1String("tag")) {
  676. d_ptr->mTag = val.value().value<QString>();
  677. }
  678. else if (_name == QLatin1String("friendlyName")) {
  679. d_ptr->mFriendlyName = val.value().value<QString>();
  680. }
  681. else if (_name == QLatin1String("dataType")) {
  682. d_ptr->mDataType = val.value().value<QString>();
  683. }
  684. else if (_name == QLatin1String("value")) {
  685. d_ptr->mValue = val.value().value<QString>();
  686. }
  687. else if (_name == QLatin1String("minValue")) {
  688. d_ptr->mMinValue = val.value().value<QString>();
  689. }
  690. else if (_name == QLatin1String("maxValue")) {
  691. d_ptr->mMaxValue = val.value().value<QString>();
  692. }
  693. }
  694. }
  695.  
  696. XS__Sdk_configuration_t::XS__Sdk_configuration_t()
  697. : d_ptr(new PrivateDPtr)
  698. {
  699. }
  700.  
  701. XS__Sdk_configuration_t::~XS__Sdk_configuration_t()
  702. {
  703. }
  704.  
  705. XS__Sdk_configuration_t::XS__Sdk_configuration_t( const XS__Sdk_configuration_t& other )
  706. : d_ptr( other.d_ptr )
  707. {
  708. }
  709.  
  710. XS__Sdk_configuration_t& XS__Sdk_configuration_t::operator=( const XS__Sdk_configuration_t& other )
  711. {
  712. if ( this == &other )
  713. return *this;
  714.  
  715. d_ptr = other.d_ptr;
  716.  
  717. return *this;
  718. }
  719.  
  720.  
  721. class XS__Sdk_configuration_tagRequest_t::PrivateDPtr : public QSharedData
  722. {
  723. public:
  724. QString mTag;
  725. };
  726.  
  727. void XS__Sdk_configuration_tagRequest_t::setTag( const QString& _tag )
  728. {
  729. d_ptr->mTag = _tag;
  730. }
  731.  
  732. QString XS__Sdk_configuration_tagRequest_t::tag() const
  733. {
  734. return d_ptr->mTag;
  735. }
  736.  
  737. KDSoapValue XS__Sdk_configuration_tagRequest_t::serialize( const QString& valueName ) const
  738. {
  739. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_configuration_tagRequest_t"));
  740. KDSoapValueList& args = mainValue.childValues();
  741. KDSoapValue _valueTag(QString::fromLatin1("tag"), QVariant::fromValue(d_ptr->mTag), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  742. _valueTag.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  743. args.append(_valueTag);
  744. return mainValue;
  745. }
  746.  
  747. void XS__Sdk_configuration_tagRequest_t::deserialize( const KDSoapValue& mainValue )
  748. {
  749. const KDSoapValueList& args = mainValue.childValues();
  750. for (int argNr = 0; argNr < args.count(); ++argNr) {
  751. const KDSoapValue& val = args.at(argNr);
  752. const QString _name = val.name();
  753. if (_name == QLatin1String("tag")) {
  754. d_ptr->mTag = val.value().value<QString>();
  755. }
  756. }
  757. }
  758.  
  759. XS__Sdk_configuration_tagRequest_t::XS__Sdk_configuration_tagRequest_t()
  760. : d_ptr(new PrivateDPtr)
  761. {
  762. }
  763.  
  764. XS__Sdk_configuration_tagRequest_t::~XS__Sdk_configuration_tagRequest_t()
  765. {
  766. }
  767.  
  768. XS__Sdk_configuration_tagRequest_t::XS__Sdk_configuration_tagRequest_t( const XS__Sdk_configuration_tagRequest_t& other )
  769. : d_ptr( other.d_ptr )
  770. {
  771. }
  772.  
  773. XS__Sdk_configuration_tagRequest_t& XS__Sdk_configuration_tagRequest_t::operator=( const XS__Sdk_configuration_tagRequest_t& other )
  774. {
  775. if ( this == &other )
  776. return *this;
  777.  
  778. d_ptr = other.d_ptr;
  779.  
  780. return *this;
  781. }
  782.  
  783.  
  784. class XS__Sdk_contact_add_modify_remove_Response_t::PrivateDPtr : public QSharedData
  785. {
  786. public:
  787. PrivateDPtr();
  788.  
  789. public:
  790. int mError;
  791. QString mErrorMessage;
  792. };
  793.  
  794. XS__Sdk_contact_add_modify_remove_Response_t::PrivateDPtr::PrivateDPtr()
  795. : mError(0)
  796. {
  797. }
  798.  
  799.  
  800. void XS__Sdk_contact_add_modify_remove_Response_t::setError( int _error )
  801. {
  802. d_ptr->mError = _error;
  803. }
  804.  
  805. int XS__Sdk_contact_add_modify_remove_Response_t::error() const
  806. {
  807. return d_ptr->mError;
  808. }
  809.  
  810. void XS__Sdk_contact_add_modify_remove_Response_t::setErrorMessage( const QString& _errorMessage )
  811. {
  812. d_ptr->mErrorMessage = _errorMessage;
  813. }
  814.  
  815. QString XS__Sdk_contact_add_modify_remove_Response_t::errorMessage() const
  816. {
  817. return d_ptr->mErrorMessage;
  818. }
  819.  
  820. KDSoapValue XS__Sdk_contact_add_modify_remove_Response_t::serialize( const QString& valueName ) const
  821. {
  822. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_contact_add_modify_remove_Response_t"));
  823. KDSoapValueList& args = mainValue.childValues();
  824. KDSoapValue _valueError(QString::fromLatin1("error"), QVariant::fromValue(d_ptr->mError), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("int"));
  825. _valueError.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  826. args.append(_valueError);
  827. KDSoapValue _valueErrorMessage(QString::fromLatin1("errorMessage"), QVariant::fromValue(d_ptr->mErrorMessage), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  828. _valueErrorMessage.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  829. args.append(_valueErrorMessage);
  830. return mainValue;
  831. }
  832.  
  833. void XS__Sdk_contact_add_modify_remove_Response_t::deserialize( const KDSoapValue& mainValue )
  834. {
  835. const KDSoapValueList& args = mainValue.childValues();
  836. for (int argNr = 0; argNr < args.count(); ++argNr) {
  837. const KDSoapValue& val = args.at(argNr);
  838. const QString _name = val.name();
  839. if (_name == QLatin1String("error")) {
  840. d_ptr->mError = val.value().value<int>();
  841. }
  842. else if (_name == QLatin1String("errorMessage")) {
  843. d_ptr->mErrorMessage = val.value().value<QString>();
  844. }
  845. }
  846. }
  847.  
  848. XS__Sdk_contact_add_modify_remove_Response_t::XS__Sdk_contact_add_modify_remove_Response_t()
  849. : d_ptr(new PrivateDPtr)
  850. {
  851. }
  852.  
  853. XS__Sdk_contact_add_modify_remove_Response_t::~XS__Sdk_contact_add_modify_remove_Response_t()
  854. {
  855. }
  856.  
  857. XS__Sdk_contact_add_modify_remove_Response_t::XS__Sdk_contact_add_modify_remove_Response_t( const XS__Sdk_contact_add_modify_remove_Response_t& other )
  858. : d_ptr( other.d_ptr )
  859. {
  860. }
  861.  
  862. XS__Sdk_contact_add_modify_remove_Response_t& XS__Sdk_contact_add_modify_remove_Response_t::operator=( const XS__Sdk_contact_add_modify_remove_Response_t& other )
  863. {
  864. if ( this == &other )
  865. return *this;
  866.  
  867. d_ptr = other.d_ptr;
  868.  
  869. return *this;
  870. }
  871.  
  872.  
  873. class XS__Sdk_contact_t::PrivateDPtr : public QSharedData
  874. {
  875. public:
  876. PrivateDPtr();
  877.  
  878. public:
  879. int mId;
  880. QString mName;
  881. QString mNumber;
  882. bool mIsFavourite;
  883. };
  884.  
  885. XS__Sdk_contact_t::PrivateDPtr::PrivateDPtr()
  886. : mId(0), mIsFavourite(false)
  887. {
  888. }
  889.  
  890.  
  891. void XS__Sdk_contact_t::setId( int _id )
  892. {
  893. d_ptr->mId = _id;
  894. }
  895.  
  896. int XS__Sdk_contact_t::id() const
  897. {
  898. return d_ptr->mId;
  899. }
  900.  
  901. void XS__Sdk_contact_t::setName( const QString& _name )
  902. {
  903. d_ptr->mName = _name;
  904. }
  905.  
  906. QString XS__Sdk_contact_t::name() const
  907. {
  908. return d_ptr->mName;
  909. }
  910.  
  911. void XS__Sdk_contact_t::setNumber( const QString& _number )
  912. {
  913. d_ptr->mNumber = _number;
  914. }
  915.  
  916. QString XS__Sdk_contact_t::number() const
  917. {
  918. return d_ptr->mNumber;
  919. }
  920.  
  921. void XS__Sdk_contact_t::setIsFavourite( bool _isFavourite )
  922. {
  923. d_ptr->mIsFavourite = _isFavourite;
  924. }
  925.  
  926. bool XS__Sdk_contact_t::isFavourite() const
  927. {
  928. return d_ptr->mIsFavourite;
  929. }
  930.  
  931. KDSoapValue XS__Sdk_contact_t::serialize( const QString& valueName ) const
  932. {
  933. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_contact_t"));
  934. KDSoapValueList& args = mainValue.childValues();
  935. KDSoapValue _valueId(QString::fromLatin1("id"), QVariant::fromValue(d_ptr->mId), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("int"));
  936. _valueId.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  937. args.append(_valueId);
  938. KDSoapValue _valueName(QString::fromLatin1("name"), QVariant::fromValue(d_ptr->mName), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  939. _valueName.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  940. args.append(_valueName);
  941. KDSoapValue _valueNumber(QString::fromLatin1("number"), QVariant::fromValue(d_ptr->mNumber), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  942. _valueNumber.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  943. args.append(_valueNumber);
  944. KDSoapValue _valueIsFavourite(QString::fromLatin1("isFavourite"), QVariant::fromValue(d_ptr->mIsFavourite), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("boolean"));
  945. _valueIsFavourite.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  946. args.append(_valueIsFavourite);
  947. return mainValue;
  948. }
  949.  
  950. void XS__Sdk_contact_t::deserialize( const KDSoapValue& mainValue )
  951. {
  952. const KDSoapValueList& args = mainValue.childValues();
  953. for (int argNr = 0; argNr < args.count(); ++argNr) {
  954. const KDSoapValue& val = args.at(argNr);
  955. const QString _name = val.name();
  956. if (_name == QLatin1String("id")) {
  957. d_ptr->mId = val.value().value<int>();
  958. }
  959. else if (_name == QLatin1String("name")) {
  960. d_ptr->mName = val.value().value<QString>();
  961. }
  962. else if (_name == QLatin1String("number")) {
  963. d_ptr->mNumber = val.value().value<QString>();
  964. }
  965. else if (_name == QLatin1String("isFavourite")) {
  966. d_ptr->mIsFavourite = val.value().value<bool>();
  967. }
  968. }
  969. }
  970.  
  971. XS__Sdk_contact_t::XS__Sdk_contact_t()
  972. : d_ptr(new PrivateDPtr)
  973. {
  974. }
  975.  
  976. XS__Sdk_contact_t::~XS__Sdk_contact_t()
  977. {
  978. }
  979.  
  980. XS__Sdk_contact_t::XS__Sdk_contact_t( const XS__Sdk_contact_t& other )
  981. : d_ptr( other.d_ptr )
  982. {
  983. }
  984.  
  985. XS__Sdk_contact_t& XS__Sdk_contact_t::operator=( const XS__Sdk_contact_t& other )
  986. {
  987. if ( this == &other )
  988. return *this;
  989.  
  990. d_ptr = other.d_ptr;
  991.  
  992. return *this;
  993. }
  994.  
  995.  
  996. class XS__Sdk_contacts_getList_Response_t::PrivateDPtr : public QSharedData
  997. {
  998. public:
  999. PrivateDPtr();
  1000.  
  1001. public:
  1002. int mError;
  1003. QString mErrorMessage;
  1004. QList< XS__Sdk_contact_t > mContacts;
  1005. bool mContacts_nil;
  1006. };
  1007.  
  1008. XS__Sdk_contacts_getList_Response_t::PrivateDPtr::PrivateDPtr()
  1009. : mError(0), mContacts_nil(true)
  1010. {
  1011. }
  1012.  
  1013.  
  1014. void XS__Sdk_contacts_getList_Response_t::setError( int _error )
  1015. {
  1016. d_ptr->mError = _error;
  1017. }
  1018.  
  1019. int XS__Sdk_contacts_getList_Response_t::error() const
  1020. {
  1021. return d_ptr->mError;
  1022. }
  1023.  
  1024. void XS__Sdk_contacts_getList_Response_t::setErrorMessage( const QString& _errorMessage )
  1025. {
  1026. d_ptr->mErrorMessage = _errorMessage;
  1027. }
  1028.  
  1029. QString XS__Sdk_contacts_getList_Response_t::errorMessage() const
  1030. {
  1031. return d_ptr->mErrorMessage;
  1032. }
  1033.  
  1034. void XS__Sdk_contacts_getList_Response_t::setContacts( const QList< XS__Sdk_contact_t >& _contacts )
  1035. {
  1036. d_ptr->mContacts_nil = false;
  1037. d_ptr->mContacts = _contacts;
  1038. }
  1039.  
  1040. QList< XS__Sdk_contact_t > XS__Sdk_contacts_getList_Response_t::contacts() const
  1041. {
  1042. return d_ptr->mContacts;
  1043. }
  1044.  
  1045. KDSoapValue XS__Sdk_contacts_getList_Response_t::serialize( const QString& valueName ) const
  1046. {
  1047. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_contacts_getList_Response_t"));
  1048. KDSoapValueList& args = mainValue.childValues();
  1049. KDSoapValue _valueError(QString::fromLatin1("error"), QVariant::fromValue(d_ptr->mError), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("int"));
  1050. _valueError.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1051. args.append(_valueError);
  1052. KDSoapValue _valueErrorMessage(QString::fromLatin1("errorMessage"), QVariant::fromValue(d_ptr->mErrorMessage), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  1053. _valueErrorMessage.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1054. args.append(_valueErrorMessage);
  1055. for (int i = 0; i < d_ptr->mContacts.count(); ++i) {
  1056. KDSoapValue _valueContacts(d_ptr->mContacts.at(i).serialize(QString::fromLatin1("contacts")));
  1057. _valueContacts.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1058. args.append(_valueContacts);
  1059. }
  1060. return mainValue;
  1061. }
  1062.  
  1063. void XS__Sdk_contacts_getList_Response_t::deserialize( const KDSoapValue& mainValue )
  1064. {
  1065. const KDSoapValueList& args = mainValue.childValues();
  1066. for (int argNr = 0; argNr < args.count(); ++argNr) {
  1067. const KDSoapValue& val = args.at(argNr);
  1068. const QString _name = val.name();
  1069. if (_name == QLatin1String("error")) {
  1070. d_ptr->mError = val.value().value<int>();
  1071. }
  1072. else if (_name == QLatin1String("errorMessage")) {
  1073. d_ptr->mErrorMessage = val.value().value<QString>();
  1074. }
  1075. else if (_name == QLatin1String("contacts")) {
  1076. XS__Sdk_contact_t mContactsTemp;
  1077. mContactsTemp.deserialize(val);
  1078. d_ptr->mContacts.append(mContactsTemp);
  1079. d_ptr->mContacts_nil = false;
  1080. }
  1081. }
  1082. }
  1083.  
  1084. XS__Sdk_contacts_getList_Response_t::XS__Sdk_contacts_getList_Response_t()
  1085. : d_ptr(new PrivateDPtr)
  1086. {
  1087. }
  1088.  
  1089. XS__Sdk_contacts_getList_Response_t::~XS__Sdk_contacts_getList_Response_t()
  1090. {
  1091. }
  1092.  
  1093. XS__Sdk_contacts_getList_Response_t::XS__Sdk_contacts_getList_Response_t( const XS__Sdk_contacts_getList_Response_t& other )
  1094. : d_ptr( other.d_ptr )
  1095. {
  1096. }
  1097.  
  1098. XS__Sdk_contacts_getList_Response_t& XS__Sdk_contacts_getList_Response_t::operator=( const XS__Sdk_contacts_getList_Response_t& other )
  1099. {
  1100. if ( this == &other )
  1101. return *this;
  1102.  
  1103. d_ptr = other.d_ptr;
  1104.  
  1105. return *this;
  1106. }
  1107.  
  1108.  
  1109. class XS__Sdk_generic_option_t::PrivateDPtr : public QSharedData
  1110. {
  1111. public:
  1112. QString mName;
  1113. QString mValue;
  1114. QString mDataType;
  1115. };
  1116.  
  1117. void XS__Sdk_generic_option_t::setName( const QString& _name )
  1118. {
  1119. d_ptr->mName = _name;
  1120. }
  1121.  
  1122. QString XS__Sdk_generic_option_t::name() const
  1123. {
  1124. return d_ptr->mName;
  1125. }
  1126.  
  1127. void XS__Sdk_generic_option_t::setValue( const QString& _value )
  1128. {
  1129. d_ptr->mValue = _value;
  1130. }
  1131.  
  1132. QString XS__Sdk_generic_option_t::value() const
  1133. {
  1134. return d_ptr->mValue;
  1135. }
  1136.  
  1137. void XS__Sdk_generic_option_t::setDataType( const QString& _dataType )
  1138. {
  1139. d_ptr->mDataType = _dataType;
  1140. }
  1141.  
  1142. QString XS__Sdk_generic_option_t::dataType() const
  1143. {
  1144. return d_ptr->mDataType;
  1145. }
  1146.  
  1147. KDSoapValue XS__Sdk_generic_option_t::serialize( const QString& valueName ) const
  1148. {
  1149. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_generic_option_t"));
  1150. KDSoapValueList& args = mainValue.childValues();
  1151. KDSoapValue _valueName(QString::fromLatin1("name"), QVariant::fromValue(d_ptr->mName), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  1152. _valueName.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1153. args.append(_valueName);
  1154. KDSoapValue _valueValue(QString::fromLatin1("value"), QVariant::fromValue(d_ptr->mValue), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  1155. _valueValue.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1156. args.append(_valueValue);
  1157. KDSoapValue _valueDataType(QString::fromLatin1("dataType"), QVariant::fromValue(d_ptr->mDataType), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  1158. _valueDataType.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1159. args.append(_valueDataType);
  1160. return mainValue;
  1161. }
  1162.  
  1163. void XS__Sdk_generic_option_t::deserialize( const KDSoapValue& mainValue )
  1164. {
  1165. const KDSoapValueList& args = mainValue.childValues();
  1166. for (int argNr = 0; argNr < args.count(); ++argNr) {
  1167. const KDSoapValue& val = args.at(argNr);
  1168. const QString _name = val.name();
  1169. if (_name == QLatin1String("name")) {
  1170. d_ptr->mName = val.value().value<QString>();
  1171. }
  1172. else if (_name == QLatin1String("value")) {
  1173. d_ptr->mValue = val.value().value<QString>();
  1174. }
  1175. else if (_name == QLatin1String("dataType")) {
  1176. d_ptr->mDataType = val.value().value<QString>();
  1177. }
  1178. }
  1179. }
  1180.  
  1181. XS__Sdk_generic_option_t::XS__Sdk_generic_option_t()
  1182. : d_ptr(new PrivateDPtr)
  1183. {
  1184. }
  1185.  
  1186. XS__Sdk_generic_option_t::~XS__Sdk_generic_option_t()
  1187. {
  1188. }
  1189.  
  1190. XS__Sdk_generic_option_t::XS__Sdk_generic_option_t( const XS__Sdk_generic_option_t& other )
  1191. : d_ptr( other.d_ptr )
  1192. {
  1193. }
  1194.  
  1195. XS__Sdk_generic_option_t& XS__Sdk_generic_option_t::operator=( const XS__Sdk_generic_option_t& other )
  1196. {
  1197. if ( this == &other )
  1198. return *this;
  1199.  
  1200. d_ptr = other.d_ptr;
  1201.  
  1202. return *this;
  1203. }
  1204.  
  1205.  
  1206. class XS__Sdk_status_get_response_t::PrivateDPtr : public QSharedData
  1207. {
  1208. public:
  1209. PrivateDPtr();
  1210.  
  1211. public:
  1212. int mError;
  1213. QString mErrorMessage;
  1214. QList< XS__Sdk_status_t > mStatus;
  1215. };
  1216.  
  1217. XS__Sdk_status_get_response_t::PrivateDPtr::PrivateDPtr()
  1218. : mError(0)
  1219. {
  1220. }
  1221.  
  1222.  
  1223. void XS__Sdk_status_get_response_t::setError( int _error )
  1224. {
  1225. d_ptr->mError = _error;
  1226. }
  1227.  
  1228. int XS__Sdk_status_get_response_t::error() const
  1229. {
  1230. return d_ptr->mError;
  1231. }
  1232.  
  1233. void XS__Sdk_status_get_response_t::setErrorMessage( const QString& _errorMessage )
  1234. {
  1235. d_ptr->mErrorMessage = _errorMessage;
  1236. }
  1237.  
  1238. QString XS__Sdk_status_get_response_t::errorMessage() const
  1239. {
  1240. return d_ptr->mErrorMessage;
  1241. }
  1242.  
  1243. void XS__Sdk_status_get_response_t::setStatus( const QList< XS__Sdk_status_t >& _status )
  1244. {
  1245. d_ptr->mStatus = _status;
  1246. }
  1247.  
  1248. QList< XS__Sdk_status_t > XS__Sdk_status_get_response_t::status() const
  1249. {
  1250. return d_ptr->mStatus;
  1251. }
  1252.  
  1253. KDSoapValue XS__Sdk_status_get_response_t::serialize( const QString& valueName ) const
  1254. {
  1255. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_status_get_response_t"));
  1256. KDSoapValueList& args = mainValue.childValues();
  1257. KDSoapValue _valueError(QString::fromLatin1("error"), QVariant::fromValue(d_ptr->mError), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("int"));
  1258. _valueError.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1259. args.append(_valueError);
  1260. KDSoapValue _valueErrorMessage(QString::fromLatin1("errorMessage"), QVariant::fromValue(d_ptr->mErrorMessage), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  1261. _valueErrorMessage.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1262. args.append(_valueErrorMessage);
  1263. for (int i = 0; i < d_ptr->mStatus.count(); ++i) {
  1264. KDSoapValue _valueStatus(d_ptr->mStatus.at(i).serialize(QString::fromLatin1("status")));
  1265. _valueStatus.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1266. args.append(_valueStatus);
  1267. }
  1268. return mainValue;
  1269. }
  1270.  
  1271. void XS__Sdk_status_get_response_t::deserialize( const KDSoapValue& mainValue )
  1272. {
  1273. const KDSoapValueList& args = mainValue.childValues();
  1274. for (int argNr = 0; argNr < args.count(); ++argNr) {
  1275. const KDSoapValue& val = args.at(argNr);
  1276. const QString _name = val.name();
  1277. if (_name == QLatin1String("error")) {
  1278. d_ptr->mError = val.value().value<int>();
  1279. }
  1280. else if (_name == QLatin1String("errorMessage")) {
  1281. d_ptr->mErrorMessage = val.value().value<QString>();
  1282. }
  1283. else if (_name == QLatin1String("status")) {
  1284. XS__Sdk_status_t mStatusTemp;
  1285. mStatusTemp.deserialize(val);
  1286. d_ptr->mStatus.append(mStatusTemp);
  1287. }
  1288. }
  1289. }
  1290.  
  1291. XS__Sdk_status_get_response_t::XS__Sdk_status_get_response_t()
  1292. : d_ptr(new PrivateDPtr)
  1293. {
  1294. }
  1295.  
  1296. XS__Sdk_status_get_response_t::~XS__Sdk_status_get_response_t()
  1297. {
  1298. }
  1299.  
  1300. XS__Sdk_status_get_response_t::XS__Sdk_status_get_response_t( const XS__Sdk_status_get_response_t& other )
  1301. : d_ptr( other.d_ptr )
  1302. {
  1303. }
  1304.  
  1305. XS__Sdk_status_get_response_t& XS__Sdk_status_get_response_t::operator=( const XS__Sdk_status_get_response_t& other )
  1306. {
  1307. if ( this == &other )
  1308. return *this;
  1309.  
  1310. d_ptr = other.d_ptr;
  1311.  
  1312. return *this;
  1313. }
  1314.  
  1315.  
  1316. class XS__Sdk_status_request_t::PrivateDPtr : public QSharedData
  1317. {
  1318. public:
  1319. PrivateDPtr();
  1320.  
  1321. public:
  1322. QList< XS__Sdk_generic_option_t > mOptions;
  1323. bool mOptions_nil;
  1324. };
  1325.  
  1326. XS__Sdk_status_request_t::PrivateDPtr::PrivateDPtr()
  1327. : mOptions_nil(true)
  1328. {
  1329. }
  1330.  
  1331.  
  1332. void XS__Sdk_status_request_t::setOptions( const QList< XS__Sdk_generic_option_t >& _options )
  1333. {
  1334. d_ptr->mOptions_nil = false;
  1335. d_ptr->mOptions = _options;
  1336. }
  1337.  
  1338. QList< XS__Sdk_generic_option_t > XS__Sdk_status_request_t::options() const
  1339. {
  1340. return d_ptr->mOptions;
  1341. }
  1342.  
  1343. KDSoapValue XS__Sdk_status_request_t::serialize( const QString& valueName ) const
  1344. {
  1345. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_status_request_t"));
  1346. KDSoapValueList& args = mainValue.childValues();
  1347. for (int i = 0; i < d_ptr->mOptions.count(); ++i) {
  1348. KDSoapValue _valueOptions(d_ptr->mOptions.at(i).serialize(QString::fromLatin1("options")));
  1349. _valueOptions.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1350. args.append(_valueOptions);
  1351. }
  1352. return mainValue;
  1353. }
  1354.  
  1355. void XS__Sdk_status_request_t::deserialize( const KDSoapValue& mainValue )
  1356. {
  1357. const KDSoapValueList& args = mainValue.childValues();
  1358. for (int argNr = 0; argNr < args.count(); ++argNr) {
  1359. const KDSoapValue& val = args.at(argNr);
  1360. const QString _name = val.name();
  1361. if (_name == QLatin1String("options")) {
  1362. XS__Sdk_generic_option_t mOptionsTemp;
  1363. mOptionsTemp.deserialize(val);
  1364. d_ptr->mOptions.append(mOptionsTemp);
  1365. d_ptr->mOptions_nil = false;
  1366. }
  1367. }
  1368. }
  1369.  
  1370. XS__Sdk_status_request_t::XS__Sdk_status_request_t()
  1371. : d_ptr(new PrivateDPtr)
  1372. {
  1373. }
  1374.  
  1375. XS__Sdk_status_request_t::~XS__Sdk_status_request_t()
  1376. {
  1377. }
  1378.  
  1379. XS__Sdk_status_request_t::XS__Sdk_status_request_t( const XS__Sdk_status_request_t& other )
  1380. : d_ptr( other.d_ptr )
  1381. {
  1382. }
  1383.  
  1384. XS__Sdk_status_request_t& XS__Sdk_status_request_t::operator=( const XS__Sdk_status_request_t& other )
  1385. {
  1386. if ( this == &other )
  1387. return *this;
  1388.  
  1389. d_ptr = other.d_ptr;
  1390.  
  1391. return *this;
  1392. }
  1393.  
  1394.  
  1395. class XS__Sdk_status_t::PrivateDPtr : public QSharedData
  1396. {
  1397. public:
  1398. QString mName;
  1399. QString mValue;
  1400. };
  1401.  
  1402. void XS__Sdk_status_t::setName( const QString& _name )
  1403. {
  1404. d_ptr->mName = _name;
  1405. }
  1406.  
  1407. QString XS__Sdk_status_t::name() const
  1408. {
  1409. return d_ptr->mName;
  1410. }
  1411.  
  1412. void XS__Sdk_status_t::setValue( const QString& _value )
  1413. {
  1414. d_ptr->mValue = _value;
  1415. }
  1416.  
  1417. QString XS__Sdk_status_t::value() const
  1418. {
  1419. return d_ptr->mValue;
  1420. }
  1421.  
  1422. KDSoapValue XS__Sdk_status_t::serialize( const QString& valueName ) const
  1423. {
  1424. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_status_t"));
  1425. KDSoapValueList& args = mainValue.childValues();
  1426. KDSoapValue _valueName(QString::fromLatin1("name"), QVariant::fromValue(d_ptr->mName), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  1427. _valueName.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1428. args.append(_valueName);
  1429. KDSoapValue _valueValue(QString::fromLatin1("value"), QVariant::fromValue(d_ptr->mValue), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  1430. _valueValue.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1431. args.append(_valueValue);
  1432. return mainValue;
  1433. }
  1434.  
  1435. void XS__Sdk_status_t::deserialize( const KDSoapValue& mainValue )
  1436. {
  1437. const KDSoapValueList& args = mainValue.childValues();
  1438. for (int argNr = 0; argNr < args.count(); ++argNr) {
  1439. const KDSoapValue& val = args.at(argNr);
  1440. const QString _name = val.name();
  1441. if (_name == QLatin1String("name")) {
  1442. d_ptr->mName = val.value().value<QString>();
  1443. }
  1444. else if (_name == QLatin1String("value")) {
  1445. d_ptr->mValue = val.value().value<QString>();
  1446. }
  1447. }
  1448. }
  1449.  
  1450. XS__Sdk_status_t::XS__Sdk_status_t()
  1451. : d_ptr(new PrivateDPtr)
  1452. {
  1453. }
  1454.  
  1455. XS__Sdk_status_t::~XS__Sdk_status_t()
  1456. {
  1457. }
  1458.  
  1459. XS__Sdk_status_t::XS__Sdk_status_t( const XS__Sdk_status_t& other )
  1460. : d_ptr( other.d_ptr )
  1461. {
  1462. }
  1463.  
  1464. XS__Sdk_status_t& XS__Sdk_status_t::operator=( const XS__Sdk_status_t& other )
  1465. {
  1466. if ( this == &other )
  1467. return *this;
  1468.  
  1469. d_ptr = other.d_ptr;
  1470.  
  1471. return *this;
  1472. }
  1473.  
  1474.  
  1475. class XS__Sdk_task_perform_Result_t::PrivateDPtr : public QSharedData
  1476. {
  1477. public:
  1478. PrivateDPtr();
  1479.  
  1480. public:
  1481. int mTaskID;
  1482. int mResponseCode;
  1483. QString mMessage;
  1484. };
  1485.  
  1486. XS__Sdk_task_perform_Result_t::PrivateDPtr::PrivateDPtr()
  1487. : mTaskID(0), mResponseCode(0)
  1488. {
  1489. }
  1490.  
  1491.  
  1492. void XS__Sdk_task_perform_Result_t::setTaskID( int _taskID )
  1493. {
  1494. d_ptr->mTaskID = _taskID;
  1495. }
  1496.  
  1497. int XS__Sdk_task_perform_Result_t::taskID() const
  1498. {
  1499. return d_ptr->mTaskID;
  1500. }
  1501.  
  1502. void XS__Sdk_task_perform_Result_t::setResponseCode( int _responseCode )
  1503. {
  1504. d_ptr->mResponseCode = _responseCode;
  1505. }
  1506.  
  1507. int XS__Sdk_task_perform_Result_t::responseCode() const
  1508. {
  1509. return d_ptr->mResponseCode;
  1510. }
  1511.  
  1512. void XS__Sdk_task_perform_Result_t::setMessage( const QString& _message )
  1513. {
  1514. d_ptr->mMessage = _message;
  1515. }
  1516.  
  1517. QString XS__Sdk_task_perform_Result_t::message() const
  1518. {
  1519. return d_ptr->mMessage;
  1520. }
  1521.  
  1522. KDSoapValue XS__Sdk_task_perform_Result_t::serialize( const QString& valueName ) const
  1523. {
  1524. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_task_perform_Result_t"));
  1525. KDSoapValueList& args = mainValue.childValues();
  1526. KDSoapValue _valueTaskID(QString::fromLatin1("taskID"), QVariant::fromValue(d_ptr->mTaskID), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("int"));
  1527. _valueTaskID.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1528. args.append(_valueTaskID);
  1529. KDSoapValue _valueResponseCode(QString::fromLatin1("responseCode"), QVariant::fromValue(d_ptr->mResponseCode), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("int"));
  1530. _valueResponseCode.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1531. args.append(_valueResponseCode);
  1532. KDSoapValue _valueMessage(QString::fromLatin1("message"), QVariant::fromValue(d_ptr->mMessage), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  1533. _valueMessage.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1534. args.append(_valueMessage);
  1535. return mainValue;
  1536. }
  1537.  
  1538. void XS__Sdk_task_perform_Result_t::deserialize( const KDSoapValue& mainValue )
  1539. {
  1540. const KDSoapValueList& args = mainValue.childValues();
  1541. for (int argNr = 0; argNr < args.count(); ++argNr) {
  1542. const KDSoapValue& val = args.at(argNr);
  1543. const QString _name = val.name();
  1544. if (_name == QLatin1String("taskID")) {
  1545. d_ptr->mTaskID = val.value().value<int>();
  1546. }
  1547. else if (_name == QLatin1String("responseCode")) {
  1548. d_ptr->mResponseCode = val.value().value<int>();
  1549. }
  1550. else if (_name == QLatin1String("message")) {
  1551. d_ptr->mMessage = val.value().value<QString>();
  1552. }
  1553. }
  1554. }
  1555.  
  1556. XS__Sdk_task_perform_Result_t::XS__Sdk_task_perform_Result_t()
  1557. : d_ptr(new PrivateDPtr)
  1558. {
  1559. }
  1560.  
  1561. XS__Sdk_task_perform_Result_t::~XS__Sdk_task_perform_Result_t()
  1562. {
  1563. }
  1564.  
  1565. XS__Sdk_task_perform_Result_t::XS__Sdk_task_perform_Result_t( const XS__Sdk_task_perform_Result_t& other )
  1566. : d_ptr( other.d_ptr )
  1567. {
  1568. }
  1569.  
  1570. XS__Sdk_task_perform_Result_t& XS__Sdk_task_perform_Result_t::operator=( const XS__Sdk_task_perform_Result_t& other )
  1571. {
  1572. if ( this == &other )
  1573. return *this;
  1574.  
  1575. d_ptr = other.d_ptr;
  1576.  
  1577. return *this;
  1578. }
  1579.  
  1580.  
  1581. class XS__Sdk_task_perform_response_t::PrivateDPtr : public QSharedData
  1582. {
  1583. public:
  1584. PrivateDPtr();
  1585.  
  1586. public:
  1587. int mError;
  1588. QString mErrorMessage;
  1589. QList< XS__Sdk_task_perform_Result_t > mTaskResults;
  1590. bool mTaskResults_nil;
  1591. };
  1592.  
  1593. XS__Sdk_task_perform_response_t::PrivateDPtr::PrivateDPtr()
  1594. : mError(0), mTaskResults_nil(true)
  1595. {
  1596. }
  1597.  
  1598.  
  1599. void XS__Sdk_task_perform_response_t::setError( int _error )
  1600. {
  1601. d_ptr->mError = _error;
  1602. }
  1603.  
  1604. int XS__Sdk_task_perform_response_t::error() const
  1605. {
  1606. return d_ptr->mError;
  1607. }
  1608.  
  1609. void XS__Sdk_task_perform_response_t::setErrorMessage( const QString& _errorMessage )
  1610. {
  1611. d_ptr->mErrorMessage = _errorMessage;
  1612. }
  1613.  
  1614. QString XS__Sdk_task_perform_response_t::errorMessage() const
  1615. {
  1616. return d_ptr->mErrorMessage;
  1617. }
  1618.  
  1619. void XS__Sdk_task_perform_response_t::setTaskResults( const QList< XS__Sdk_task_perform_Result_t >& _taskResults )
  1620. {
  1621. d_ptr->mTaskResults_nil = false;
  1622. d_ptr->mTaskResults = _taskResults;
  1623. }
  1624.  
  1625. QList< XS__Sdk_task_perform_Result_t > XS__Sdk_task_perform_response_t::taskResults() const
  1626. {
  1627. return d_ptr->mTaskResults;
  1628. }
  1629.  
  1630. KDSoapValue XS__Sdk_task_perform_response_t::serialize( const QString& valueName ) const
  1631. {
  1632. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_task_perform_response_t"));
  1633. KDSoapValueList& args = mainValue.childValues();
  1634. KDSoapValue _valueError(QString::fromLatin1("error"), QVariant::fromValue(d_ptr->mError), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("int"));
  1635. _valueError.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1636. args.append(_valueError);
  1637. KDSoapValue _valueErrorMessage(QString::fromLatin1("errorMessage"), QVariant::fromValue(d_ptr->mErrorMessage), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  1638. _valueErrorMessage.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1639. args.append(_valueErrorMessage);
  1640. for (int i = 0; i < d_ptr->mTaskResults.count(); ++i) {
  1641. KDSoapValue _valueTaskResults(d_ptr->mTaskResults.at(i).serialize(QString::fromLatin1("taskResults")));
  1642. _valueTaskResults.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1643. args.append(_valueTaskResults);
  1644. }
  1645. return mainValue;
  1646. }
  1647.  
  1648. void XS__Sdk_task_perform_response_t::deserialize( const KDSoapValue& mainValue )
  1649. {
  1650. const KDSoapValueList& args = mainValue.childValues();
  1651. for (int argNr = 0; argNr < args.count(); ++argNr) {
  1652. const KDSoapValue& val = args.at(argNr);
  1653. const QString _name = val.name();
  1654. if (_name == QLatin1String("error")) {
  1655. d_ptr->mError = val.value().value<int>();
  1656. }
  1657. else if (_name == QLatin1String("errorMessage")) {
  1658. d_ptr->mErrorMessage = val.value().value<QString>();
  1659. }
  1660. else if (_name == QLatin1String("taskResults")) {
  1661. XS__Sdk_task_perform_Result_t mTaskResultsTemp;
  1662. mTaskResultsTemp.deserialize(val);
  1663. d_ptr->mTaskResults.append(mTaskResultsTemp);
  1664. d_ptr->mTaskResults_nil = false;
  1665. }
  1666. }
  1667. }
  1668.  
  1669. XS__Sdk_task_perform_response_t::XS__Sdk_task_perform_response_t()
  1670. : d_ptr(new PrivateDPtr)
  1671. {
  1672. }
  1673.  
  1674. XS__Sdk_task_perform_response_t::~XS__Sdk_task_perform_response_t()
  1675. {
  1676. }
  1677.  
  1678. XS__Sdk_task_perform_response_t::XS__Sdk_task_perform_response_t( const XS__Sdk_task_perform_response_t& other )
  1679. : d_ptr( other.d_ptr )
  1680. {
  1681. }
  1682.  
  1683. XS__Sdk_task_perform_response_t& XS__Sdk_task_perform_response_t::operator=( const XS__Sdk_task_perform_response_t& other )
  1684. {
  1685. if ( this == &other )
  1686. return *this;
  1687.  
  1688. d_ptr = other.d_ptr;
  1689.  
  1690. return *this;
  1691. }
  1692.  
  1693.  
  1694. class XS__Sdk_task_requestList_t::PrivateDPtr : public QSharedData
  1695. {
  1696. public:
  1697. QList< XS__Sdk_task_request_t > mRequestList;
  1698. };
  1699.  
  1700. void XS__Sdk_task_requestList_t::setRequestList( const QList< XS__Sdk_task_request_t >& _requestList )
  1701. {
  1702. d_ptr->mRequestList = _requestList;
  1703. }
  1704.  
  1705. QList< XS__Sdk_task_request_t > XS__Sdk_task_requestList_t::requestList() const
  1706. {
  1707. return d_ptr->mRequestList;
  1708. }
  1709.  
  1710. KDSoapValue XS__Sdk_task_requestList_t::serialize( const QString& valueName ) const
  1711. {
  1712. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_task_requestList_t"));
  1713. KDSoapValueList& args = mainValue.childValues();
  1714. for (int i = 0; i < d_ptr->mRequestList.count(); ++i) {
  1715. KDSoapValue _valueRequestList(d_ptr->mRequestList.at(i).serialize(QString::fromLatin1("requestList")));
  1716. _valueRequestList.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1717. args.append(_valueRequestList);
  1718. }
  1719. return mainValue;
  1720. }
  1721.  
  1722. void XS__Sdk_task_requestList_t::deserialize( const KDSoapValue& mainValue )
  1723. {
  1724. const KDSoapValueList& args = mainValue.childValues();
  1725. for (int argNr = 0; argNr < args.count(); ++argNr) {
  1726. const KDSoapValue& val = args.at(argNr);
  1727. const QString _name = val.name();
  1728. if (_name == QLatin1String("requestList")) {
  1729. XS__Sdk_task_request_t mRequestListTemp;
  1730. mRequestListTemp.deserialize(val);
  1731. d_ptr->mRequestList.append(mRequestListTemp);
  1732. }
  1733. }
  1734. }
  1735.  
  1736. XS__Sdk_task_requestList_t::XS__Sdk_task_requestList_t()
  1737. : d_ptr(new PrivateDPtr)
  1738. {
  1739. }
  1740.  
  1741. XS__Sdk_task_requestList_t::~XS__Sdk_task_requestList_t()
  1742. {
  1743. }
  1744.  
  1745. XS__Sdk_task_requestList_t::XS__Sdk_task_requestList_t( const XS__Sdk_task_requestList_t& other )
  1746. : d_ptr( other.d_ptr )
  1747. {
  1748. }
  1749.  
  1750. XS__Sdk_task_requestList_t& XS__Sdk_task_requestList_t::operator=( const XS__Sdk_task_requestList_t& other )
  1751. {
  1752. if ( this == &other )
  1753. return *this;
  1754.  
  1755. d_ptr = other.d_ptr;
  1756.  
  1757. return *this;
  1758. }
  1759.  
  1760.  
  1761. class XS__Sdk_task_request_t::PrivateDPtr : public QSharedData
  1762. {
  1763. public:
  1764. PrivateDPtr();
  1765.  
  1766. public:
  1767. int mTaskID;
  1768. QList< XS__Sdk_generic_option_t > mOptions;
  1769. bool mOptions_nil;
  1770. };
  1771.  
  1772. XS__Sdk_task_request_t::PrivateDPtr::PrivateDPtr()
  1773. : mTaskID(0), mOptions_nil(true)
  1774. {
  1775. }
  1776.  
  1777.  
  1778. void XS__Sdk_task_request_t::setTaskID( int _taskID )
  1779. {
  1780. d_ptr->mTaskID = _taskID;
  1781. }
  1782.  
  1783. int XS__Sdk_task_request_t::taskID() const
  1784. {
  1785. return d_ptr->mTaskID;
  1786. }
  1787.  
  1788. void XS__Sdk_task_request_t::setOptions( const QList< XS__Sdk_generic_option_t >& _options )
  1789. {
  1790. d_ptr->mOptions_nil = false;
  1791. d_ptr->mOptions = _options;
  1792. }
  1793.  
  1794. QList< XS__Sdk_generic_option_t > XS__Sdk_task_request_t::options() const
  1795. {
  1796. return d_ptr->mOptions;
  1797. }
  1798.  
  1799. KDSoapValue XS__Sdk_task_request_t::serialize( const QString& valueName ) const
  1800. {
  1801. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_task_request_t"));
  1802. KDSoapValueList& args = mainValue.childValues();
  1803. KDSoapValue _valueTaskID(QString::fromLatin1("taskID"), QVariant::fromValue(d_ptr->mTaskID), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("int"));
  1804. _valueTaskID.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1805. args.append(_valueTaskID);
  1806. for (int i = 0; i < d_ptr->mOptions.count(); ++i) {
  1807. KDSoapValue _valueOptions(d_ptr->mOptions.at(i).serialize(QString::fromLatin1("options")));
  1808. _valueOptions.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1809. args.append(_valueOptions);
  1810. }
  1811. return mainValue;
  1812. }
  1813.  
  1814. void XS__Sdk_task_request_t::deserialize( const KDSoapValue& mainValue )
  1815. {
  1816. const KDSoapValueList& args = mainValue.childValues();
  1817. for (int argNr = 0; argNr < args.count(); ++argNr) {
  1818. const KDSoapValue& val = args.at(argNr);
  1819. const QString _name = val.name();
  1820. if (_name == QLatin1String("taskID")) {
  1821. d_ptr->mTaskID = val.value().value<int>();
  1822. }
  1823. else if (_name == QLatin1String("options")) {
  1824. XS__Sdk_generic_option_t mOptionsTemp;
  1825. mOptionsTemp.deserialize(val);
  1826. d_ptr->mOptions.append(mOptionsTemp);
  1827. d_ptr->mOptions_nil = false;
  1828. }
  1829. }
  1830. }
  1831.  
  1832. XS__Sdk_task_request_t::XS__Sdk_task_request_t()
  1833. : d_ptr(new PrivateDPtr)
  1834. {
  1835. }
  1836.  
  1837. XS__Sdk_task_request_t::~XS__Sdk_task_request_t()
  1838. {
  1839. }
  1840.  
  1841. XS__Sdk_task_request_t::XS__Sdk_task_request_t( const XS__Sdk_task_request_t& other )
  1842. : d_ptr( other.d_ptr )
  1843. {
  1844. }
  1845.  
  1846. XS__Sdk_task_request_t& XS__Sdk_task_request_t::operator=( const XS__Sdk_task_request_t& other )
  1847. {
  1848. if ( this == &other )
  1849. return *this;
  1850.  
  1851. d_ptr = other.d_ptr;
  1852.  
  1853. return *this;
  1854. }
  1855.  
  1856.  
  1857. class XS__Sdk_user_add_modify_remove_Response_t::PrivateDPtr : public QSharedData
  1858. {
  1859. public:
  1860. PrivateDPtr();
  1861.  
  1862. public:
  1863. int mError;
  1864. QString mErrorMessage;
  1865. };
  1866.  
  1867. XS__Sdk_user_add_modify_remove_Response_t::PrivateDPtr::PrivateDPtr()
  1868. : mError(0)
  1869. {
  1870. }
  1871.  
  1872.  
  1873. void XS__Sdk_user_add_modify_remove_Response_t::setError( int _error )
  1874. {
  1875. d_ptr->mError = _error;
  1876. }
  1877.  
  1878. int XS__Sdk_user_add_modify_remove_Response_t::error() const
  1879. {
  1880. return d_ptr->mError;
  1881. }
  1882.  
  1883. void XS__Sdk_user_add_modify_remove_Response_t::setErrorMessage( const QString& _errorMessage )
  1884. {
  1885. d_ptr->mErrorMessage = _errorMessage;
  1886. }
  1887.  
  1888. QString XS__Sdk_user_add_modify_remove_Response_t::errorMessage() const
  1889. {
  1890. return d_ptr->mErrorMessage;
  1891. }
  1892.  
  1893. KDSoapValue XS__Sdk_user_add_modify_remove_Response_t::serialize( const QString& valueName ) const
  1894. {
  1895. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_user_add_modify_remove_Response_t"));
  1896. KDSoapValueList& args = mainValue.childValues();
  1897. KDSoapValue _valueError(QString::fromLatin1("error"), QVariant::fromValue(d_ptr->mError), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("int"));
  1898. _valueError.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1899. args.append(_valueError);
  1900. KDSoapValue _valueErrorMessage(QString::fromLatin1("errorMessage"), QVariant::fromValue(d_ptr->mErrorMessage), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  1901. _valueErrorMessage.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1902. args.append(_valueErrorMessage);
  1903. return mainValue;
  1904. }
  1905.  
  1906. void XS__Sdk_user_add_modify_remove_Response_t::deserialize( const KDSoapValue& mainValue )
  1907. {
  1908. const KDSoapValueList& args = mainValue.childValues();
  1909. for (int argNr = 0; argNr < args.count(); ++argNr) {
  1910. const KDSoapValue& val = args.at(argNr);
  1911. const QString _name = val.name();
  1912. if (_name == QLatin1String("error")) {
  1913. d_ptr->mError = val.value().value<int>();
  1914. }
  1915. else if (_name == QLatin1String("errorMessage")) {
  1916. d_ptr->mErrorMessage = val.value().value<QString>();
  1917. }
  1918. }
  1919. }
  1920.  
  1921. XS__Sdk_user_add_modify_remove_Response_t::XS__Sdk_user_add_modify_remove_Response_t()
  1922. : d_ptr(new PrivateDPtr)
  1923. {
  1924. }
  1925.  
  1926. XS__Sdk_user_add_modify_remove_Response_t::~XS__Sdk_user_add_modify_remove_Response_t()
  1927. {
  1928. }
  1929.  
  1930. XS__Sdk_user_add_modify_remove_Response_t::XS__Sdk_user_add_modify_remove_Response_t( const XS__Sdk_user_add_modify_remove_Response_t& other )
  1931. : d_ptr( other.d_ptr )
  1932. {
  1933. }
  1934.  
  1935. XS__Sdk_user_add_modify_remove_Response_t& XS__Sdk_user_add_modify_remove_Response_t::operator=( const XS__Sdk_user_add_modify_remove_Response_t& other )
  1936. {
  1937. if ( this == &other )
  1938. return *this;
  1939.  
  1940. d_ptr = other.d_ptr;
  1941.  
  1942. return *this;
  1943. }
  1944.  
  1945.  
  1946. class XS__Sdk_user_credentials_t::PrivateDPtr : public QSharedData
  1947. {
  1948. public:
  1949. QString mUserName;
  1950. QString mPassword;
  1951. };
  1952.  
  1953. void XS__Sdk_user_credentials_t::setUserName( const QString& _userName )
  1954. {
  1955. d_ptr->mUserName = _userName;
  1956. }
  1957.  
  1958. QString XS__Sdk_user_credentials_t::userName() const
  1959. {
  1960. return d_ptr->mUserName;
  1961. }
  1962.  
  1963. void XS__Sdk_user_credentials_t::setPassword( const QString& _password )
  1964. {
  1965. d_ptr->mPassword = _password;
  1966. }
  1967.  
  1968. QString XS__Sdk_user_credentials_t::password() const
  1969. {
  1970. return d_ptr->mPassword;
  1971. }
  1972.  
  1973. KDSoapValue XS__Sdk_user_credentials_t::serialize( const QString& valueName ) const
  1974. {
  1975. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_user_credentials_t"));
  1976. KDSoapValueList& args = mainValue.childValues();
  1977. KDSoapValue _valueUserName(QString::fromLatin1("userName"), QVariant::fromValue(d_ptr->mUserName), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  1978. _valueUserName.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1979. args.append(_valueUserName);
  1980. KDSoapValue _valuePassword(QString::fromLatin1("password"), QVariant::fromValue(d_ptr->mPassword), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  1981. _valuePassword.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  1982. args.append(_valuePassword);
  1983. return mainValue;
  1984. }
  1985.  
  1986. void XS__Sdk_user_credentials_t::deserialize( const KDSoapValue& mainValue )
  1987. {
  1988. const KDSoapValueList& args = mainValue.childValues();
  1989. for (int argNr = 0; argNr < args.count(); ++argNr) {
  1990. const KDSoapValue& val = args.at(argNr);
  1991. const QString _name = val.name();
  1992. if (_name == QLatin1String("userName")) {
  1993. d_ptr->mUserName = val.value().value<QString>();
  1994. }
  1995. else if (_name == QLatin1String("password")) {
  1996. d_ptr->mPassword = val.value().value<QString>();
  1997. }
  1998. }
  1999. }
  2000.  
  2001. XS__Sdk_user_credentials_t::XS__Sdk_user_credentials_t()
  2002. : d_ptr(new PrivateDPtr)
  2003. {
  2004. }
  2005.  
  2006. XS__Sdk_user_credentials_t::~XS__Sdk_user_credentials_t()
  2007. {
  2008. }
  2009.  
  2010. XS__Sdk_user_credentials_t::XS__Sdk_user_credentials_t( const XS__Sdk_user_credentials_t& other )
  2011. : d_ptr( other.d_ptr )
  2012. {
  2013. }
  2014.  
  2015. XS__Sdk_user_credentials_t& XS__Sdk_user_credentials_t::operator=( const XS__Sdk_user_credentials_t& other )
  2016. {
  2017. if ( this == &other )
  2018. return *this;
  2019.  
  2020. d_ptr = other.d_ptr;
  2021.  
  2022. return *this;
  2023. }
  2024.  
  2025.  
  2026. class XS__Sdk_user_details_response_t::PrivateDPtr : public QSharedData
  2027. {
  2028. public:
  2029. PrivateDPtr();
  2030.  
  2031. public:
  2032. int mError;
  2033. QString mErrorMessage;
  2034. XS__Sdk_user_t mUser;
  2035. };
  2036.  
  2037. XS__Sdk_user_details_response_t::PrivateDPtr::PrivateDPtr()
  2038. : mError(0)
  2039. {
  2040. }
  2041.  
  2042.  
  2043. void XS__Sdk_user_details_response_t::setError( int _error )
  2044. {
  2045. d_ptr->mError = _error;
  2046. }
  2047.  
  2048. int XS__Sdk_user_details_response_t::error() const
  2049. {
  2050. return d_ptr->mError;
  2051. }
  2052.  
  2053. void XS__Sdk_user_details_response_t::setErrorMessage( const QString& _errorMessage )
  2054. {
  2055. d_ptr->mErrorMessage = _errorMessage;
  2056. }
  2057.  
  2058. QString XS__Sdk_user_details_response_t::errorMessage() const
  2059. {
  2060. return d_ptr->mErrorMessage;
  2061. }
  2062.  
  2063. void XS__Sdk_user_details_response_t::setUser( const XS__Sdk_user_t& _user )
  2064. {
  2065. d_ptr->mUser = _user;
  2066. }
  2067.  
  2068. XS__Sdk_user_t XS__Sdk_user_details_response_t::user() const
  2069. {
  2070. return d_ptr->mUser;
  2071. }
  2072.  
  2073. KDSoapValue XS__Sdk_user_details_response_t::serialize( const QString& valueName ) const
  2074. {
  2075. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_user_details_response_t"));
  2076. KDSoapValueList& args = mainValue.childValues();
  2077. KDSoapValue _valueError(QString::fromLatin1("error"), QVariant::fromValue(d_ptr->mError), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("int"));
  2078. _valueError.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2079. args.append(_valueError);
  2080. KDSoapValue _valueErrorMessage(QString::fromLatin1("errorMessage"), QVariant::fromValue(d_ptr->mErrorMessage), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  2081. _valueErrorMessage.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2082. args.append(_valueErrorMessage);
  2083. KDSoapValue _valueUser(d_ptr->mUser.serialize(QString::fromLatin1("user")));
  2084. _valueUser.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2085. args.append(_valueUser);
  2086. return mainValue;
  2087. }
  2088.  
  2089. void XS__Sdk_user_details_response_t::deserialize( const KDSoapValue& mainValue )
  2090. {
  2091. const KDSoapValueList& args = mainValue.childValues();
  2092. for (int argNr = 0; argNr < args.count(); ++argNr) {
  2093. const KDSoapValue& val = args.at(argNr);
  2094. const QString _name = val.name();
  2095. if (_name == QLatin1String("error")) {
  2096. d_ptr->mError = val.value().value<int>();
  2097. }
  2098. else if (_name == QLatin1String("errorMessage")) {
  2099. d_ptr->mErrorMessage = val.value().value<QString>();
  2100. }
  2101. else if (_name == QLatin1String("user")) {
  2102. d_ptr->mUser.deserialize(val);
  2103. }
  2104. }
  2105. }
  2106.  
  2107. XS__Sdk_user_details_response_t::XS__Sdk_user_details_response_t()
  2108. : d_ptr(new PrivateDPtr)
  2109. {
  2110. }
  2111.  
  2112. XS__Sdk_user_details_response_t::~XS__Sdk_user_details_response_t()
  2113. {
  2114. }
  2115.  
  2116. XS__Sdk_user_details_response_t::XS__Sdk_user_details_response_t( const XS__Sdk_user_details_response_t& other )
  2117. : d_ptr( other.d_ptr )
  2118. {
  2119. }
  2120.  
  2121. XS__Sdk_user_details_response_t& XS__Sdk_user_details_response_t::operator=( const XS__Sdk_user_details_response_t& other )
  2122. {
  2123. if ( this == &other )
  2124. return *this;
  2125.  
  2126. d_ptr = other.d_ptr;
  2127.  
  2128. return *this;
  2129. }
  2130.  
  2131.  
  2132. class XS__Sdk_user_getList_Response_t::PrivateDPtr : public QSharedData
  2133. {
  2134. public:
  2135. PrivateDPtr();
  2136.  
  2137. public:
  2138. int mError;
  2139. QString mErrorMessage;
  2140. QList< XS__Sdk_user_t > mUsers;
  2141. bool mUsers_nil;
  2142. };
  2143.  
  2144. XS__Sdk_user_getList_Response_t::PrivateDPtr::PrivateDPtr()
  2145. : mError(0), mUsers_nil(true)
  2146. {
  2147. }
  2148.  
  2149.  
  2150. void XS__Sdk_user_getList_Response_t::setError( int _error )
  2151. {
  2152. d_ptr->mError = _error;
  2153. }
  2154.  
  2155. int XS__Sdk_user_getList_Response_t::error() const
  2156. {
  2157. return d_ptr->mError;
  2158. }
  2159.  
  2160. void XS__Sdk_user_getList_Response_t::setErrorMessage( const QString& _errorMessage )
  2161. {
  2162. d_ptr->mErrorMessage = _errorMessage;
  2163. }
  2164.  
  2165. QString XS__Sdk_user_getList_Response_t::errorMessage() const
  2166. {
  2167. return d_ptr->mErrorMessage;
  2168. }
  2169.  
  2170. void XS__Sdk_user_getList_Response_t::setUsers( const QList< XS__Sdk_user_t >& _users )
  2171. {
  2172. d_ptr->mUsers_nil = false;
  2173. d_ptr->mUsers = _users;
  2174. }
  2175.  
  2176. QList< XS__Sdk_user_t > XS__Sdk_user_getList_Response_t::users() const
  2177. {
  2178. return d_ptr->mUsers;
  2179. }
  2180.  
  2181. KDSoapValue XS__Sdk_user_getList_Response_t::serialize( const QString& valueName ) const
  2182. {
  2183. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_user_getList_Response_t"));
  2184. KDSoapValueList& args = mainValue.childValues();
  2185. KDSoapValue _valueError(QString::fromLatin1("error"), QVariant::fromValue(d_ptr->mError), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("int"));
  2186. _valueError.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2187. args.append(_valueError);
  2188. KDSoapValue _valueErrorMessage(QString::fromLatin1("errorMessage"), QVariant::fromValue(d_ptr->mErrorMessage), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  2189. _valueErrorMessage.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2190. args.append(_valueErrorMessage);
  2191. for (int i = 0; i < d_ptr->mUsers.count(); ++i) {
  2192. KDSoapValue _valueUsers(d_ptr->mUsers.at(i).serialize(QString::fromLatin1("users")));
  2193. _valueUsers.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2194. args.append(_valueUsers);
  2195. }
  2196. return mainValue;
  2197. }
  2198.  
  2199. void XS__Sdk_user_getList_Response_t::deserialize( const KDSoapValue& mainValue )
  2200. {
  2201. const KDSoapValueList& args = mainValue.childValues();
  2202. for (int argNr = 0; argNr < args.count(); ++argNr) {
  2203. const KDSoapValue& val = args.at(argNr);
  2204. const QString _name = val.name();
  2205. if (_name == QLatin1String("error")) {
  2206. d_ptr->mError = val.value().value<int>();
  2207. }
  2208. else if (_name == QLatin1String("errorMessage")) {
  2209. d_ptr->mErrorMessage = val.value().value<QString>();
  2210. }
  2211. else if (_name == QLatin1String("users")) {
  2212. XS__Sdk_user_t mUsersTemp;
  2213. mUsersTemp.deserialize(val);
  2214. d_ptr->mUsers.append(mUsersTemp);
  2215. d_ptr->mUsers_nil = false;
  2216. }
  2217. }
  2218. }
  2219.  
  2220. XS__Sdk_user_getList_Response_t::XS__Sdk_user_getList_Response_t()
  2221. : d_ptr(new PrivateDPtr)
  2222. {
  2223. }
  2224.  
  2225. XS__Sdk_user_getList_Response_t::~XS__Sdk_user_getList_Response_t()
  2226. {
  2227. }
  2228.  
  2229. XS__Sdk_user_getList_Response_t::XS__Sdk_user_getList_Response_t( const XS__Sdk_user_getList_Response_t& other )
  2230. : d_ptr( other.d_ptr )
  2231. {
  2232. }
  2233.  
  2234. XS__Sdk_user_getList_Response_t& XS__Sdk_user_getList_Response_t::operator=( const XS__Sdk_user_getList_Response_t& other )
  2235. {
  2236. if ( this == &other )
  2237. return *this;
  2238.  
  2239. d_ptr = other.d_ptr;
  2240.  
  2241. return *this;
  2242. }
  2243.  
  2244.  
  2245. class XS__Sdk_user_t::PrivateDPtr : public QSharedData
  2246. {
  2247. public:
  2248. PrivateDPtr();
  2249.  
  2250. public:
  2251. QString mUserName;
  2252. QString mPassword;
  2253. bool mOutgoingCall;
  2254. int mUserPriority;
  2255. bool mSendSms;
  2256. bool mReceiveSms;
  2257. bool mCanAccessTwitter;
  2258. bool mTracking;
  2259. bool mIsAdmin;
  2260. };
  2261.  
  2262. XS__Sdk_user_t::PrivateDPtr::PrivateDPtr()
  2263. : mOutgoingCall(false), mUserPriority(0), mSendSms(false), mReceiveSms(false), mCanAccessTwitter(false), mTracking(false), mIsAdmin(false)
  2264. {
  2265. }
  2266.  
  2267.  
  2268. void XS__Sdk_user_t::setUserName( const QString& _userName )
  2269. {
  2270. d_ptr->mUserName = _userName;
  2271. }
  2272.  
  2273. QString XS__Sdk_user_t::userName() const
  2274. {
  2275. return d_ptr->mUserName;
  2276. }
  2277.  
  2278. void XS__Sdk_user_t::setPassword( const QString& _password )
  2279. {
  2280. d_ptr->mPassword = _password;
  2281. }
  2282.  
  2283. QString XS__Sdk_user_t::password() const
  2284. {
  2285. return d_ptr->mPassword;
  2286. }
  2287.  
  2288. void XS__Sdk_user_t::setOutgoingCall( bool _outgoingCall )
  2289. {
  2290. d_ptr->mOutgoingCall = _outgoingCall;
  2291. }
  2292.  
  2293. bool XS__Sdk_user_t::outgoingCall() const
  2294. {
  2295. return d_ptr->mOutgoingCall;
  2296. }
  2297.  
  2298. void XS__Sdk_user_t::setUserPriority( int _userPriority )
  2299. {
  2300. d_ptr->mUserPriority = _userPriority;
  2301. }
  2302.  
  2303. int XS__Sdk_user_t::userPriority() const
  2304. {
  2305. return d_ptr->mUserPriority;
  2306. }
  2307.  
  2308. void XS__Sdk_user_t::setSendSms( bool _sendSms )
  2309. {
  2310. d_ptr->mSendSms = _sendSms;
  2311. }
  2312.  
  2313. bool XS__Sdk_user_t::sendSms() const
  2314. {
  2315. return d_ptr->mSendSms;
  2316. }
  2317.  
  2318. void XS__Sdk_user_t::setReceiveSms( bool _receiveSms )
  2319. {
  2320. d_ptr->mReceiveSms = _receiveSms;
  2321. }
  2322.  
  2323. bool XS__Sdk_user_t::receiveSms() const
  2324. {
  2325. return d_ptr->mReceiveSms;
  2326. }
  2327.  
  2328. void XS__Sdk_user_t::setCanAccessTwitter( bool _canAccessTwitter )
  2329. {
  2330. d_ptr->mCanAccessTwitter = _canAccessTwitter;
  2331. }
  2332.  
  2333. bool XS__Sdk_user_t::canAccessTwitter() const
  2334. {
  2335. return d_ptr->mCanAccessTwitter;
  2336. }
  2337.  
  2338. void XS__Sdk_user_t::setTracking( bool _tracking )
  2339. {
  2340. d_ptr->mTracking = _tracking;
  2341. }
  2342.  
  2343. bool XS__Sdk_user_t::tracking() const
  2344. {
  2345. return d_ptr->mTracking;
  2346. }
  2347.  
  2348. void XS__Sdk_user_t::setIsAdmin( bool _isAdmin )
  2349. {
  2350. d_ptr->mIsAdmin = _isAdmin;
  2351. }
  2352.  
  2353. bool XS__Sdk_user_t::isAdmin() const
  2354. {
  2355. return d_ptr->mIsAdmin;
  2356. }
  2357.  
  2358. KDSoapValue XS__Sdk_user_t::serialize( const QString& valueName ) const
  2359. {
  2360. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_user_t"));
  2361. KDSoapValueList& args = mainValue.childValues();
  2362. KDSoapValue _valueUserName(QString::fromLatin1("userName"), QVariant::fromValue(d_ptr->mUserName), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  2363. _valueUserName.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2364. args.append(_valueUserName);
  2365. KDSoapValue _valuePassword(QString::fromLatin1("password"), QVariant::fromValue(d_ptr->mPassword), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  2366. _valuePassword.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2367. args.append(_valuePassword);
  2368. KDSoapValue _valueOutgoingCall(QString::fromLatin1("outgoingCall"), QVariant::fromValue(d_ptr->mOutgoingCall), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("boolean"));
  2369. _valueOutgoingCall.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2370. args.append(_valueOutgoingCall);
  2371. KDSoapValue _valueUserPriority(QString::fromLatin1("userPriority"), QVariant::fromValue(d_ptr->mUserPriority), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("int"));
  2372. _valueUserPriority.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2373. args.append(_valueUserPriority);
  2374. KDSoapValue _valueSendSms(QString::fromLatin1("sendSms"), QVariant::fromValue(d_ptr->mSendSms), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("boolean"));
  2375. _valueSendSms.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2376. args.append(_valueSendSms);
  2377. KDSoapValue _valueReceiveSms(QString::fromLatin1("receiveSms"), QVariant::fromValue(d_ptr->mReceiveSms), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("boolean"));
  2378. _valueReceiveSms.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2379. args.append(_valueReceiveSms);
  2380. KDSoapValue _valueCanAccessTwitter(QString::fromLatin1("canAccessTwitter"), QVariant::fromValue(d_ptr->mCanAccessTwitter), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("boolean"));
  2381. _valueCanAccessTwitter.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2382. args.append(_valueCanAccessTwitter);
  2383. KDSoapValue _valueTracking(QString::fromLatin1("tracking"), QVariant::fromValue(d_ptr->mTracking), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("boolean"));
  2384. _valueTracking.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2385. args.append(_valueTracking);
  2386. KDSoapValue _valueIsAdmin(QString::fromLatin1("isAdmin"), QVariant::fromValue(d_ptr->mIsAdmin), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("boolean"));
  2387. _valueIsAdmin.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2388. args.append(_valueIsAdmin);
  2389. return mainValue;
  2390. }
  2391.  
  2392. void XS__Sdk_user_t::deserialize( const KDSoapValue& mainValue )
  2393. {
  2394. const KDSoapValueList& args = mainValue.childValues();
  2395. for (int argNr = 0; argNr < args.count(); ++argNr) {
  2396. const KDSoapValue& val = args.at(argNr);
  2397. const QString _name = val.name();
  2398. if (_name == QLatin1String("userName")) {
  2399. d_ptr->mUserName = val.value().value<QString>();
  2400. }
  2401. else if (_name == QLatin1String("password")) {
  2402. d_ptr->mPassword = val.value().value<QString>();
  2403. }
  2404. else if (_name == QLatin1String("outgoingCall")) {
  2405. d_ptr->mOutgoingCall = val.value().value<bool>();
  2406. }
  2407. else if (_name == QLatin1String("userPriority")) {
  2408. d_ptr->mUserPriority = val.value().value<int>();
  2409. }
  2410. else if (_name == QLatin1String("sendSms")) {
  2411. d_ptr->mSendSms = val.value().value<bool>();
  2412. }
  2413. else if (_name == QLatin1String("receiveSms")) {
  2414. d_ptr->mReceiveSms = val.value().value<bool>();
  2415. }
  2416. else if (_name == QLatin1String("canAccessTwitter")) {
  2417. d_ptr->mCanAccessTwitter = val.value().value<bool>();
  2418. }
  2419. else if (_name == QLatin1String("tracking")) {
  2420. d_ptr->mTracking = val.value().value<bool>();
  2421. }
  2422. else if (_name == QLatin1String("isAdmin")) {
  2423. d_ptr->mIsAdmin = val.value().value<bool>();
  2424. }
  2425. }
  2426. }
  2427.  
  2428. XS__Sdk_user_t::XS__Sdk_user_t()
  2429. : d_ptr(new PrivateDPtr)
  2430. {
  2431. }
  2432.  
  2433. XS__Sdk_user_t::~XS__Sdk_user_t()
  2434. {
  2435. }
  2436.  
  2437. XS__Sdk_user_t::XS__Sdk_user_t( const XS__Sdk_user_t& other )
  2438. : d_ptr( other.d_ptr )
  2439. {
  2440. }
  2441.  
  2442. XS__Sdk_user_t& XS__Sdk_user_t::operator=( const XS__Sdk_user_t& other )
  2443. {
  2444. if ( this == &other )
  2445. return *this;
  2446.  
  2447. d_ptr = other.d_ptr;
  2448.  
  2449. return *this;
  2450. }
  2451.  
  2452.  
  2453. class XS__Sdk_version_t::PrivateDPtr : public QSharedData
  2454. {
  2455. public:
  2456. QString mApiVersion;
  2457. QString mFirmwareVersion;
  2458. };
  2459.  
  2460. void XS__Sdk_version_t::setApiVersion( const QString& _apiVersion )
  2461. {
  2462. d_ptr->mApiVersion = _apiVersion;
  2463. }
  2464.  
  2465. QString XS__Sdk_version_t::apiVersion() const
  2466. {
  2467. return d_ptr->mApiVersion;
  2468. }
  2469.  
  2470. void XS__Sdk_version_t::setFirmwareVersion( const QString& _firmwareVersion )
  2471. {
  2472. d_ptr->mFirmwareVersion = _firmwareVersion;
  2473. }
  2474.  
  2475. QString XS__Sdk_version_t::firmwareVersion() const
  2476. {
  2477. return d_ptr->mFirmwareVersion;
  2478. }
  2479.  
  2480. KDSoapValue XS__Sdk_version_t::serialize( const QString& valueName ) const
  2481. {
  2482. KDSoapValue mainValue(valueName, QVariant(), QString::fromLatin1("http://iridiumgo.lan/sdk/"), QString::fromLatin1("sdk_version_t"));
  2483. KDSoapValueList& args = mainValue.childValues();
  2484. KDSoapValue _valueApiVersion(QString::fromLatin1("apiVersion"), QVariant::fromValue(d_ptr->mApiVersion), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  2485. _valueApiVersion.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2486. args.append(_valueApiVersion);
  2487. KDSoapValue _valueFirmwareVersion(QString::fromLatin1("firmwareVersion"), QVariant::fromValue(d_ptr->mFirmwareVersion), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  2488. _valueFirmwareVersion.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2489. args.append(_valueFirmwareVersion);
  2490. return mainValue;
  2491. }
  2492.  
  2493. void XS__Sdk_version_t::deserialize( const KDSoapValue& mainValue )
  2494. {
  2495. const KDSoapValueList& args = mainValue.childValues();
  2496. for (int argNr = 0; argNr < args.count(); ++argNr) {
  2497. const KDSoapValue& val = args.at(argNr);
  2498. const QString _name = val.name();
  2499. if (_name == QLatin1String("apiVersion")) {
  2500. d_ptr->mApiVersion = val.value().value<QString>();
  2501. }
  2502. else if (_name == QLatin1String("firmwareVersion")) {
  2503. d_ptr->mFirmwareVersion = val.value().value<QString>();
  2504. }
  2505. }
  2506. }
  2507.  
  2508. XS__Sdk_version_t::XS__Sdk_version_t()
  2509. : d_ptr(new PrivateDPtr)
  2510. {
  2511. }
  2512.  
  2513. XS__Sdk_version_t::~XS__Sdk_version_t()
  2514. {
  2515. }
  2516.  
  2517. XS__Sdk_version_t::XS__Sdk_version_t( const XS__Sdk_version_t& other )
  2518. : d_ptr( other.d_ptr )
  2519. {
  2520. }
  2521.  
  2522. XS__Sdk_version_t& XS__Sdk_version_t::operator=( const XS__Sdk_version_t& other )
  2523. {
  2524. if ( this == &other )
  2525. return *this;
  2526.  
  2527. d_ptr = other.d_ptr;
  2528.  
  2529. return *this;
  2530. }
  2531.  
  2532.  
  2533. AddModifyUserJob::AddModifyUserJob( Sdk* service, QObject* _parent )
  2534. : KDSoapJob(_parent), mService(service), mUserCredentials(), mUser(), mResultAddModifyUserResponse()
  2535. {
  2536. }
  2537.  
  2538. void AddModifyUserJob::setUserCredentials( const XS__Sdk_user_credentials_t& arg0 )
  2539. {
  2540. mUserCredentials = arg0;
  2541. }
  2542.  
  2543. XS__Sdk_user_credentials_t AddModifyUserJob::userCredentials() const
  2544. {
  2545. return mUserCredentials;
  2546. }
  2547.  
  2548. void AddModifyUserJob::setUser( const XS__Sdk_user_t& arg0 )
  2549. {
  2550. mUser = arg0;
  2551. }
  2552.  
  2553. XS__Sdk_user_t AddModifyUserJob::user() const
  2554. {
  2555. return mUser;
  2556. }
  2557.  
  2558. void AddModifyUserJob::doStart()
  2559. {
  2560. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/addModifyUser");
  2561. KDSoapMessage message;
  2562. message.setUse(KDSoapMessage::LiteralUse);
  2563. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2564. KDSoapValue _valueUserCredentials(mUserCredentials.serialize(QString::fromLatin1("userCredentials")));
  2565. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  2566. message.childValues().append(_valueUserCredentials);
  2567. KDSoapValue _valueUser(mUser.serialize(QString::fromLatin1("user")));
  2568. _valueUser.setNamespaceUri(QString::fromLatin1(""));
  2569. message.childValues().append(_valueUser);
  2570. KDSoapPendingCall pendingCall = mService->clientInterface()->asyncCall(QLatin1String("addModifyUser"), message, action);
  2571. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  2572. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  2573. this, SLOT(slotFinished(KDSoapPendingCallWatcher*)));
  2574. }
  2575.  
  2576. XS__Sdk_user_add_modify_remove_Response_t AddModifyUserJob::addModifyUserResponse() const
  2577. {
  2578. return mResultAddModifyUserResponse;
  2579. }
  2580.  
  2581. void AddModifyUserJob::slotFinished( KDSoapPendingCallWatcher* watcher )
  2582. {
  2583. watcher->deleteLater();
  2584. KDSoapMessage _reply = watcher->returnMessage();
  2585. if (!_reply.isFault()) {
  2586. if (_reply.childValues().isEmpty()) {
  2587. _reply.setFault(true);
  2588. _reply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  2589. return;
  2590. }
  2591. _reply = _reply.childValues().at(0);
  2592. mResultAddModifyUserResponse.deserialize(_reply);
  2593. }
  2594. emitFinished(_reply, watcher->returnHeaders());
  2595. }
  2596.  
  2597.  
  2598. AddNewContactJob::AddNewContactJob( Sdk* service, QObject* _parent )
  2599. : KDSoapJob(_parent), mService(service), mUserCredentials(), mName(), mNumber(), mIsFavourite(), mResultAddContactResult()
  2600. {
  2601. }
  2602.  
  2603. void AddNewContactJob::setUserCredentials( const XS__Sdk_user_credentials_t& arg0 )
  2604. {
  2605. mUserCredentials = arg0;
  2606. }
  2607.  
  2608. XS__Sdk_user_credentials_t AddNewContactJob::userCredentials() const
  2609. {
  2610. return mUserCredentials;
  2611. }
  2612.  
  2613. void AddNewContactJob::setName( const QString& arg0 )
  2614. {
  2615. mName = arg0;
  2616. }
  2617.  
  2618. QString AddNewContactJob::name() const
  2619. {
  2620. return mName;
  2621. }
  2622.  
  2623. void AddNewContactJob::setNumber( const QString& arg0 )
  2624. {
  2625. mNumber = arg0;
  2626. }
  2627.  
  2628. QString AddNewContactJob::number() const
  2629. {
  2630. return mNumber;
  2631. }
  2632.  
  2633. void AddNewContactJob::setIsFavourite( bool arg0 )
  2634. {
  2635. mIsFavourite = arg0;
  2636. }
  2637.  
  2638. bool AddNewContactJob::isFavourite() const
  2639. {
  2640. return mIsFavourite;
  2641. }
  2642.  
  2643. void AddNewContactJob::doStart()
  2644. {
  2645. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/addNewContact");
  2646. KDSoapMessage message;
  2647. message.setUse(KDSoapMessage::LiteralUse);
  2648. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2649. KDSoapValue _valueUserCredentials(mUserCredentials.serialize(QString::fromLatin1("userCredentials")));
  2650. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  2651. message.childValues().append(_valueUserCredentials);
  2652. KDSoapValue _valueName(QString::fromLatin1("name"), QVariant::fromValue(mName), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  2653. _valueName.setNamespaceUri(QString::fromLatin1(""));
  2654. message.childValues().append(_valueName);
  2655. KDSoapValue _valueNumber(QString::fromLatin1("number"), QVariant::fromValue(mNumber), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  2656. _valueNumber.setNamespaceUri(QString::fromLatin1(""));
  2657. message.childValues().append(_valueNumber);
  2658. KDSoapValue _valueIsFavourite(QString::fromLatin1("isFavourite"), QVariant::fromValue(mIsFavourite), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("boolean"));
  2659. _valueIsFavourite.setNamespaceUri(QString::fromLatin1(""));
  2660. message.childValues().append(_valueIsFavourite);
  2661. KDSoapPendingCall pendingCall = mService->clientInterface()->asyncCall(QLatin1String("addNewContact"), message, action);
  2662. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  2663. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  2664. this, SLOT(slotFinished(KDSoapPendingCallWatcher*)));
  2665. }
  2666.  
  2667. XS__Sdk_contact_add_modify_remove_Response_t AddNewContactJob::addContactResult() const
  2668. {
  2669. return mResultAddContactResult;
  2670. }
  2671.  
  2672. void AddNewContactJob::slotFinished( KDSoapPendingCallWatcher* watcher )
  2673. {
  2674. watcher->deleteLater();
  2675. KDSoapMessage _reply = watcher->returnMessage();
  2676. if (!_reply.isFault()) {
  2677. if (_reply.childValues().isEmpty()) {
  2678. _reply.setFault(true);
  2679. _reply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  2680. return;
  2681. }
  2682. _reply = _reply.childValues().at(0);
  2683. mResultAddContactResult.deserialize(_reply);
  2684. }
  2685. emitFinished(_reply, watcher->returnHeaders());
  2686. }
  2687.  
  2688.  
  2689. GetContactListJob::GetContactListJob( Sdk* service, QObject* _parent )
  2690. : KDSoapJob(_parent), mService(service), mUserCredentials(), mResultContactList()
  2691. {
  2692. }
  2693.  
  2694. void GetContactListJob::setUserCredentials( const XS__Sdk_user_credentials_t& arg0 )
  2695. {
  2696. mUserCredentials = arg0;
  2697. }
  2698.  
  2699. XS__Sdk_user_credentials_t GetContactListJob::userCredentials() const
  2700. {
  2701. return mUserCredentials;
  2702. }
  2703.  
  2704. void GetContactListJob::doStart()
  2705. {
  2706. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getContactList");
  2707. KDSoapMessage message;
  2708. message.setUse(KDSoapMessage::LiteralUse);
  2709. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2710. KDSoapValue _valueUserCredentials(mUserCredentials.serialize(QString::fromLatin1("userCredentials")));
  2711. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  2712. message.childValues().append(_valueUserCredentials);
  2713. KDSoapPendingCall pendingCall = mService->clientInterface()->asyncCall(QLatin1String("getContactList"), message, action);
  2714. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  2715. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  2716. this, SLOT(slotFinished(KDSoapPendingCallWatcher*)));
  2717. }
  2718.  
  2719. XS__Sdk_contacts_getList_Response_t GetContactListJob::contactList() const
  2720. {
  2721. return mResultContactList;
  2722. }
  2723.  
  2724. void GetContactListJob::slotFinished( KDSoapPendingCallWatcher* watcher )
  2725. {
  2726. watcher->deleteLater();
  2727. KDSoapMessage _reply = watcher->returnMessage();
  2728. if (!_reply.isFault()) {
  2729. if (_reply.childValues().isEmpty()) {
  2730. _reply.setFault(true);
  2731. _reply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  2732. return;
  2733. }
  2734. _reply = _reply.childValues().at(0);
  2735. mResultContactList.deserialize(_reply);
  2736. }
  2737. emitFinished(_reply, watcher->returnHeaders());
  2738. }
  2739.  
  2740.  
  2741. GetSettingsJob::GetSettingsJob( Sdk* service, QObject* _parent )
  2742. : KDSoapJob(_parent), mService(service), mUserCredentials(), mReqList(), mResultConfigs()
  2743. {
  2744. }
  2745.  
  2746. void GetSettingsJob::setUserCredentials( const XS__Sdk_user_credentials_t& arg0 )
  2747. {
  2748. mUserCredentials = arg0;
  2749. }
  2750.  
  2751. XS__Sdk_user_credentials_t GetSettingsJob::userCredentials() const
  2752. {
  2753. return mUserCredentials;
  2754. }
  2755.  
  2756. void GetSettingsJob::setReqList( const XS__Sdk_configuration_requestList_t& arg0 )
  2757. {
  2758. mReqList = arg0;
  2759. }
  2760.  
  2761. XS__Sdk_configuration_requestList_t GetSettingsJob::reqList() const
  2762. {
  2763. return mReqList;
  2764. }
  2765.  
  2766. void GetSettingsJob::doStart()
  2767. {
  2768. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getSettings");
  2769. KDSoapMessage message;
  2770. message.setUse(KDSoapMessage::LiteralUse);
  2771. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2772. KDSoapValue _valueUserCredentials(mUserCredentials.serialize(QString::fromLatin1("userCredentials")));
  2773. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  2774. message.childValues().append(_valueUserCredentials);
  2775. KDSoapValue _valueReqList(mReqList.serialize(QString::fromLatin1("reqList")));
  2776. _valueReqList.setNamespaceUri(QString::fromLatin1(""));
  2777. message.childValues().append(_valueReqList);
  2778. KDSoapPendingCall pendingCall = mService->clientInterface()->asyncCall(QLatin1String("getSettings"), message, action);
  2779. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  2780. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  2781. this, SLOT(slotFinished(KDSoapPendingCallWatcher*)));
  2782. }
  2783.  
  2784. XS__Sdk_configuration_getSettings_response_t GetSettingsJob::configs() const
  2785. {
  2786. return mResultConfigs;
  2787. }
  2788.  
  2789. void GetSettingsJob::slotFinished( KDSoapPendingCallWatcher* watcher )
  2790. {
  2791. watcher->deleteLater();
  2792. KDSoapMessage _reply = watcher->returnMessage();
  2793. if (!_reply.isFault()) {
  2794. if (_reply.childValues().isEmpty()) {
  2795. _reply.setFault(true);
  2796. _reply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  2797. return;
  2798. }
  2799. _reply = _reply.childValues().at(0);
  2800. mResultConfigs.deserialize(_reply);
  2801. }
  2802. emitFinished(_reply, watcher->returnHeaders());
  2803. }
  2804.  
  2805.  
  2806. GetStatusJob::GetStatusJob( Sdk* service, QObject* _parent )
  2807. : KDSoapJob(_parent), mService(service), mUserCredentials(), mRequest(), mResultStatusOutput()
  2808. {
  2809. }
  2810.  
  2811. void GetStatusJob::setUserCredentials( const XS__Sdk_user_credentials_t& arg0 )
  2812. {
  2813. mUserCredentials = arg0;
  2814. }
  2815.  
  2816. XS__Sdk_user_credentials_t GetStatusJob::userCredentials() const
  2817. {
  2818. return mUserCredentials;
  2819. }
  2820.  
  2821. void GetStatusJob::setRequest( const XS__Sdk_status_request_t& arg0 )
  2822. {
  2823. mRequest = arg0;
  2824. }
  2825.  
  2826. XS__Sdk_status_request_t GetStatusJob::request() const
  2827. {
  2828. return mRequest;
  2829. }
  2830.  
  2831. void GetStatusJob::doStart()
  2832. {
  2833. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getStatus");
  2834. KDSoapMessage message;
  2835. message.setUse(KDSoapMessage::LiteralUse);
  2836. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2837. KDSoapValue _valueUserCredentials(mUserCredentials.serialize(QString::fromLatin1("userCredentials")));
  2838. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  2839. message.childValues().append(_valueUserCredentials);
  2840. KDSoapValue _valueRequest(mRequest.serialize(QString::fromLatin1("request")));
  2841. _valueRequest.setNamespaceUri(QString::fromLatin1(""));
  2842. message.childValues().append(_valueRequest);
  2843. KDSoapPendingCall pendingCall = mService->clientInterface()->asyncCall(QLatin1String("getStatus"), message, action);
  2844. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  2845. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  2846. this, SLOT(slotFinished(KDSoapPendingCallWatcher*)));
  2847. }
  2848.  
  2849. XS__Sdk_status_get_response_t GetStatusJob::statusOutput() const
  2850. {
  2851. return mResultStatusOutput;
  2852. }
  2853.  
  2854. void GetStatusJob::slotFinished( KDSoapPendingCallWatcher* watcher )
  2855. {
  2856. watcher->deleteLater();
  2857. KDSoapMessage _reply = watcher->returnMessage();
  2858. if (!_reply.isFault()) {
  2859. if (_reply.childValues().isEmpty()) {
  2860. _reply.setFault(true);
  2861. _reply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  2862. return;
  2863. }
  2864. _reply = _reply.childValues().at(0);
  2865. mResultStatusOutput.deserialize(_reply);
  2866. }
  2867. emitFinished(_reply, watcher->returnHeaders());
  2868. }
  2869.  
  2870.  
  2871. GetTransceiverInfoJob::GetTransceiverInfoJob( Sdk* service, QObject* _parent )
  2872. : KDSoapJob(_parent), mService(service), mResultTransceiverInfo()
  2873. {
  2874. }
  2875.  
  2876. void GetTransceiverInfoJob::doStart()
  2877. {
  2878. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getTransceiverInfo");
  2879. KDSoapMessage message;
  2880. message.setUse(KDSoapMessage::LiteralUse);
  2881. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2882. KDSoapPendingCall pendingCall = mService->clientInterface()->asyncCall(QLatin1String("getTransceiverInfo"), message, action);
  2883. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  2884. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  2885. this, SLOT(slotFinished(KDSoapPendingCallWatcher*)));
  2886. }
  2887.  
  2888. XS__Sdk_status_get_response_t GetTransceiverInfoJob::transceiverInfo() const
  2889. {
  2890. return mResultTransceiverInfo;
  2891. }
  2892.  
  2893. void GetTransceiverInfoJob::slotFinished( KDSoapPendingCallWatcher* watcher )
  2894. {
  2895. watcher->deleteLater();
  2896. KDSoapMessage _reply = watcher->returnMessage();
  2897. if (!_reply.isFault()) {
  2898. if (_reply.childValues().isEmpty()) {
  2899. _reply.setFault(true);
  2900. _reply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  2901. return;
  2902. }
  2903. _reply = _reply.childValues().at(0);
  2904. mResultTransceiverInfo.deserialize(_reply);
  2905. }
  2906. emitFinished(_reply, watcher->returnHeaders());
  2907. }
  2908.  
  2909.  
  2910. GetUserDetailsJob::GetUserDetailsJob( Sdk* service, QObject* _parent )
  2911. : KDSoapJob(_parent), mService(service), mUserCredentials(), mResultLogin()
  2912. {
  2913. }
  2914.  
  2915. void GetUserDetailsJob::setUserCredentials( const XS__Sdk_user_credentials_t& arg0 )
  2916. {
  2917. mUserCredentials = arg0;
  2918. }
  2919.  
  2920. XS__Sdk_user_credentials_t GetUserDetailsJob::userCredentials() const
  2921. {
  2922. return mUserCredentials;
  2923. }
  2924.  
  2925. void GetUserDetailsJob::doStart()
  2926. {
  2927. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getUserDetails");
  2928. KDSoapMessage message;
  2929. message.setUse(KDSoapMessage::LiteralUse);
  2930. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2931. KDSoapValue _valueUserCredentials(mUserCredentials.serialize(QString::fromLatin1("userCredentials")));
  2932. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  2933. message.childValues().append(_valueUserCredentials);
  2934. KDSoapPendingCall pendingCall = mService->clientInterface()->asyncCall(QLatin1String("getUserDetails"), message, action);
  2935. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  2936. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  2937. this, SLOT(slotFinished(KDSoapPendingCallWatcher*)));
  2938. }
  2939.  
  2940. XS__Sdk_user_details_response_t GetUserDetailsJob::login() const
  2941. {
  2942. return mResultLogin;
  2943. }
  2944.  
  2945. void GetUserDetailsJob::slotFinished( KDSoapPendingCallWatcher* watcher )
  2946. {
  2947. watcher->deleteLater();
  2948. KDSoapMessage _reply = watcher->returnMessage();
  2949. if (!_reply.isFault()) {
  2950. if (_reply.childValues().isEmpty()) {
  2951. _reply.setFault(true);
  2952. _reply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  2953. return;
  2954. }
  2955. _reply = _reply.childValues().at(0);
  2956. mResultLogin.deserialize(_reply);
  2957. }
  2958. emitFinished(_reply, watcher->returnHeaders());
  2959. }
  2960.  
  2961.  
  2962. GetUserListJob::GetUserListJob( Sdk* service, QObject* _parent )
  2963. : KDSoapJob(_parent), mService(service), mUserCredentials(), mResultGetUserListResponse()
  2964. {
  2965. }
  2966.  
  2967. void GetUserListJob::setUserCredentials( const XS__Sdk_user_credentials_t& arg0 )
  2968. {
  2969. mUserCredentials = arg0;
  2970. }
  2971.  
  2972. XS__Sdk_user_credentials_t GetUserListJob::userCredentials() const
  2973. {
  2974. return mUserCredentials;
  2975. }
  2976.  
  2977. void GetUserListJob::doStart()
  2978. {
  2979. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getUserList");
  2980. KDSoapMessage message;
  2981. message.setUse(KDSoapMessage::LiteralUse);
  2982. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  2983. KDSoapValue _valueUserCredentials(mUserCredentials.serialize(QString::fromLatin1("userCredentials")));
  2984. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  2985. message.childValues().append(_valueUserCredentials);
  2986. KDSoapPendingCall pendingCall = mService->clientInterface()->asyncCall(QLatin1String("getUserList"), message, action);
  2987. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  2988. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  2989. this, SLOT(slotFinished(KDSoapPendingCallWatcher*)));
  2990. }
  2991.  
  2992. XS__Sdk_user_getList_Response_t GetUserListJob::getUserListResponse() const
  2993. {
  2994. return mResultGetUserListResponse;
  2995. }
  2996.  
  2997. void GetUserListJob::slotFinished( KDSoapPendingCallWatcher* watcher )
  2998. {
  2999. watcher->deleteLater();
  3000. KDSoapMessage _reply = watcher->returnMessage();
  3001. if (!_reply.isFault()) {
  3002. if (_reply.childValues().isEmpty()) {
  3003. _reply.setFault(true);
  3004. _reply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  3005. return;
  3006. }
  3007. _reply = _reply.childValues().at(0);
  3008. mResultGetUserListResponse.deserialize(_reply);
  3009. }
  3010. emitFinished(_reply, watcher->returnHeaders());
  3011. }
  3012.  
  3013.  
  3014. GetVersionJob::GetVersionJob( Sdk* service, QObject* _parent )
  3015. : KDSoapJob(_parent), mService(service), mResultVersionNumber()
  3016. {
  3017. }
  3018.  
  3019. void GetVersionJob::doStart()
  3020. {
  3021. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getVersion");
  3022. KDSoapMessage message;
  3023. message.setUse(KDSoapMessage::LiteralUse);
  3024. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3025. KDSoapPendingCall pendingCall = mService->clientInterface()->asyncCall(QLatin1String("getVersion"), message, action);
  3026. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  3027. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  3028. this, SLOT(slotFinished(KDSoapPendingCallWatcher*)));
  3029. }
  3030.  
  3031. XS__Sdk_version_t GetVersionJob::versionNumber() const
  3032. {
  3033. return mResultVersionNumber;
  3034. }
  3035.  
  3036. void GetVersionJob::slotFinished( KDSoapPendingCallWatcher* watcher )
  3037. {
  3038. watcher->deleteLater();
  3039. KDSoapMessage _reply = watcher->returnMessage();
  3040. if (!_reply.isFault()) {
  3041. if (_reply.childValues().isEmpty()) {
  3042. _reply.setFault(true);
  3043. _reply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  3044. return;
  3045. }
  3046. _reply = _reply.childValues().at(0);
  3047. mResultVersionNumber.deserialize(_reply);
  3048. }
  3049. emitFinished(_reply, watcher->returnHeaders());
  3050. }
  3051.  
  3052.  
  3053. ModifyContactJob::ModifyContactJob( Sdk* service, QObject* _parent )
  3054. : KDSoapJob(_parent), mService(service), mUserCredentials(), mContact(), mResultModifyContactResult()
  3055. {
  3056. }
  3057.  
  3058. void ModifyContactJob::setUserCredentials( const XS__Sdk_user_credentials_t& arg0 )
  3059. {
  3060. mUserCredentials = arg0;
  3061. }
  3062.  
  3063. XS__Sdk_user_credentials_t ModifyContactJob::userCredentials() const
  3064. {
  3065. return mUserCredentials;
  3066. }
  3067.  
  3068. void ModifyContactJob::setContact( const XS__Sdk_contact_t& arg0 )
  3069. {
  3070. mContact = arg0;
  3071. }
  3072.  
  3073. XS__Sdk_contact_t ModifyContactJob::contact() const
  3074. {
  3075. return mContact;
  3076. }
  3077.  
  3078. void ModifyContactJob::doStart()
  3079. {
  3080. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/modifyContact");
  3081. KDSoapMessage message;
  3082. message.setUse(KDSoapMessage::LiteralUse);
  3083. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3084. KDSoapValue _valueUserCredentials(mUserCredentials.serialize(QString::fromLatin1("userCredentials")));
  3085. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3086. message.childValues().append(_valueUserCredentials);
  3087. KDSoapValue _valueContact(mContact.serialize(QString::fromLatin1("contact")));
  3088. _valueContact.setNamespaceUri(QString::fromLatin1(""));
  3089. message.childValues().append(_valueContact);
  3090. KDSoapPendingCall pendingCall = mService->clientInterface()->asyncCall(QLatin1String("modifyContact"), message, action);
  3091. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  3092. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  3093. this, SLOT(slotFinished(KDSoapPendingCallWatcher*)));
  3094. }
  3095.  
  3096. XS__Sdk_contact_add_modify_remove_Response_t ModifyContactJob::modifyContactResult() const
  3097. {
  3098. return mResultModifyContactResult;
  3099. }
  3100.  
  3101. void ModifyContactJob::slotFinished( KDSoapPendingCallWatcher* watcher )
  3102. {
  3103. watcher->deleteLater();
  3104. KDSoapMessage _reply = watcher->returnMessage();
  3105. if (!_reply.isFault()) {
  3106. if (_reply.childValues().isEmpty()) {
  3107. _reply.setFault(true);
  3108. _reply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  3109. return;
  3110. }
  3111. _reply = _reply.childValues().at(0);
  3112. mResultModifyContactResult.deserialize(_reply);
  3113. }
  3114. emitFinished(_reply, watcher->returnHeaders());
  3115. }
  3116.  
  3117.  
  3118. PerformTaskJob::PerformTaskJob( Sdk* service, QObject* _parent )
  3119. : KDSoapJob(_parent), mService(service), mUserCredentials(), mTaskList(), mResultParameters()
  3120. {
  3121. }
  3122.  
  3123. void PerformTaskJob::setUserCredentials( const XS__Sdk_user_credentials_t& arg0 )
  3124. {
  3125. mUserCredentials = arg0;
  3126. }
  3127.  
  3128. XS__Sdk_user_credentials_t PerformTaskJob::userCredentials() const
  3129. {
  3130. return mUserCredentials;
  3131. }
  3132.  
  3133. void PerformTaskJob::setTaskList( const XS__Sdk_task_requestList_t& arg0 )
  3134. {
  3135. mTaskList = arg0;
  3136. }
  3137.  
  3138. XS__Sdk_task_requestList_t PerformTaskJob::taskList() const
  3139. {
  3140. return mTaskList;
  3141. }
  3142.  
  3143. void PerformTaskJob::doStart()
  3144. {
  3145. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/performTask");
  3146. KDSoapMessage message;
  3147. message.setUse(KDSoapMessage::LiteralUse);
  3148. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3149. KDSoapValue _valueUserCredentials(mUserCredentials.serialize(QString::fromLatin1("userCredentials")));
  3150. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3151. message.childValues().append(_valueUserCredentials);
  3152. KDSoapValue _valueTaskList(mTaskList.serialize(QString::fromLatin1("taskList")));
  3153. _valueTaskList.setNamespaceUri(QString::fromLatin1(""));
  3154. message.childValues().append(_valueTaskList);
  3155. KDSoapPendingCall pendingCall = mService->clientInterface()->asyncCall(QLatin1String("performTask"), message, action);
  3156. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  3157. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  3158. this, SLOT(slotFinished(KDSoapPendingCallWatcher*)));
  3159. }
  3160.  
  3161. XS__Sdk_task_perform_response_t PerformTaskJob::parameters() const
  3162. {
  3163. return mResultParameters;
  3164. }
  3165.  
  3166. void PerformTaskJob::slotFinished( KDSoapPendingCallWatcher* watcher )
  3167. {
  3168. watcher->deleteLater();
  3169. KDSoapMessage _reply = watcher->returnMessage();
  3170. if (!_reply.isFault()) {
  3171. if (_reply.childValues().isEmpty()) {
  3172. _reply.setFault(true);
  3173. _reply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  3174. return;
  3175. }
  3176. _reply = _reply.childValues().at(0);
  3177. mResultParameters.deserialize(_reply);
  3178. }
  3179. emitFinished(_reply, watcher->returnHeaders());
  3180. }
  3181.  
  3182.  
  3183. RemoveContactJob::RemoveContactJob( Sdk* service, QObject* _parent )
  3184. : KDSoapJob(_parent), mService(service), mUserCredentials(), mContactID(), mResultRemoveContactResult()
  3185. {
  3186. }
  3187.  
  3188. void RemoveContactJob::setUserCredentials( const XS__Sdk_user_credentials_t& arg0 )
  3189. {
  3190. mUserCredentials = arg0;
  3191. }
  3192.  
  3193. XS__Sdk_user_credentials_t RemoveContactJob::userCredentials() const
  3194. {
  3195. return mUserCredentials;
  3196. }
  3197.  
  3198. void RemoveContactJob::setContactID( int arg0 )
  3199. {
  3200. mContactID = arg0;
  3201. }
  3202.  
  3203. int RemoveContactJob::contactID() const
  3204. {
  3205. return mContactID;
  3206. }
  3207.  
  3208. void RemoveContactJob::doStart()
  3209. {
  3210. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/removeContact");
  3211. KDSoapMessage message;
  3212. message.setUse(KDSoapMessage::LiteralUse);
  3213. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3214. KDSoapValue _valueUserCredentials(mUserCredentials.serialize(QString::fromLatin1("userCredentials")));
  3215. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3216. message.childValues().append(_valueUserCredentials);
  3217. KDSoapValue _valueContactID(QString::fromLatin1("contactID"), QVariant::fromValue(mContactID), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("int"));
  3218. _valueContactID.setNamespaceUri(QString::fromLatin1(""));
  3219. message.childValues().append(_valueContactID);
  3220. KDSoapPendingCall pendingCall = mService->clientInterface()->asyncCall(QLatin1String("removeContact"), message, action);
  3221. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  3222. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  3223. this, SLOT(slotFinished(KDSoapPendingCallWatcher*)));
  3224. }
  3225.  
  3226. XS__Sdk_contact_add_modify_remove_Response_t RemoveContactJob::removeContactResult() const
  3227. {
  3228. return mResultRemoveContactResult;
  3229. }
  3230.  
  3231. void RemoveContactJob::slotFinished( KDSoapPendingCallWatcher* watcher )
  3232. {
  3233. watcher->deleteLater();
  3234. KDSoapMessage _reply = watcher->returnMessage();
  3235. if (!_reply.isFault()) {
  3236. if (_reply.childValues().isEmpty()) {
  3237. _reply.setFault(true);
  3238. _reply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  3239. return;
  3240. }
  3241. _reply = _reply.childValues().at(0);
  3242. mResultRemoveContactResult.deserialize(_reply);
  3243. }
  3244. emitFinished(_reply, watcher->returnHeaders());
  3245. }
  3246.  
  3247.  
  3248. RemoveUserJob::RemoveUserJob( Sdk* service, QObject* _parent )
  3249. : KDSoapJob(_parent), mService(service), mUserCredentials(), mUserName(), mResultRemoveUserResponse()
  3250. {
  3251. }
  3252.  
  3253. void RemoveUserJob::setUserCredentials( const XS__Sdk_user_credentials_t& arg0 )
  3254. {
  3255. mUserCredentials = arg0;
  3256. }
  3257.  
  3258. XS__Sdk_user_credentials_t RemoveUserJob::userCredentials() const
  3259. {
  3260. return mUserCredentials;
  3261. }
  3262.  
  3263. void RemoveUserJob::setUserName( const QString& arg0 )
  3264. {
  3265. mUserName = arg0;
  3266. }
  3267.  
  3268. QString RemoveUserJob::userName() const
  3269. {
  3270. return mUserName;
  3271. }
  3272.  
  3273. void RemoveUserJob::doStart()
  3274. {
  3275. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/removeUser");
  3276. KDSoapMessage message;
  3277. message.setUse(KDSoapMessage::LiteralUse);
  3278. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3279. KDSoapValue _valueUserCredentials(mUserCredentials.serialize(QString::fromLatin1("userCredentials")));
  3280. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3281. message.childValues().append(_valueUserCredentials);
  3282. KDSoapValue _valueUserName(QString::fromLatin1("userName"), QVariant::fromValue(mUserName), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  3283. _valueUserName.setNamespaceUri(QString::fromLatin1(""));
  3284. message.childValues().append(_valueUserName);
  3285. KDSoapPendingCall pendingCall = mService->clientInterface()->asyncCall(QLatin1String("removeUser"), message, action);
  3286. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  3287. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  3288. this, SLOT(slotFinished(KDSoapPendingCallWatcher*)));
  3289. }
  3290.  
  3291. XS__Sdk_user_add_modify_remove_Response_t RemoveUserJob::removeUserResponse() const
  3292. {
  3293. return mResultRemoveUserResponse;
  3294. }
  3295.  
  3296. void RemoveUserJob::slotFinished( KDSoapPendingCallWatcher* watcher )
  3297. {
  3298. watcher->deleteLater();
  3299. KDSoapMessage _reply = watcher->returnMessage();
  3300. if (!_reply.isFault()) {
  3301. if (_reply.childValues().isEmpty()) {
  3302. _reply.setFault(true);
  3303. _reply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  3304. return;
  3305. }
  3306. _reply = _reply.childValues().at(0);
  3307. mResultRemoveUserResponse.deserialize(_reply);
  3308. }
  3309. emitFinished(_reply, watcher->returnHeaders());
  3310. }
  3311.  
  3312.  
  3313. SetSettingsJob::SetSettingsJob( Sdk* service, QObject* _parent )
  3314. : KDSoapJob(_parent), mService(service), mUserCredentials(), mSetList(), mResultSetSettingsResponse()
  3315. {
  3316. }
  3317.  
  3318. void SetSettingsJob::setUserCredentials( const XS__Sdk_user_credentials_t& arg0 )
  3319. {
  3320. mUserCredentials = arg0;
  3321. }
  3322.  
  3323. XS__Sdk_user_credentials_t SetSettingsJob::userCredentials() const
  3324. {
  3325. return mUserCredentials;
  3326. }
  3327.  
  3328. void SetSettingsJob::setSetList( const XS__Sdk_configuration_setRequst_list_t& arg0 )
  3329. {
  3330. mSetList = arg0;
  3331. }
  3332.  
  3333. XS__Sdk_configuration_setRequst_list_t SetSettingsJob::setList() const
  3334. {
  3335. return mSetList;
  3336. }
  3337.  
  3338. void SetSettingsJob::doStart()
  3339. {
  3340. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/setSettings");
  3341. KDSoapMessage message;
  3342. message.setUse(KDSoapMessage::LiteralUse);
  3343. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3344. KDSoapValue _valueUserCredentials(mUserCredentials.serialize(QString::fromLatin1("userCredentials")));
  3345. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3346. message.childValues().append(_valueUserCredentials);
  3347. KDSoapValue _valueSetList(mSetList.serialize(QString::fromLatin1("setList")));
  3348. _valueSetList.setNamespaceUri(QString::fromLatin1(""));
  3349. message.childValues().append(_valueSetList);
  3350. KDSoapPendingCall pendingCall = mService->clientInterface()->asyncCall(QLatin1String("setSettings"), message, action);
  3351. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  3352. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  3353. this, SLOT(slotFinished(KDSoapPendingCallWatcher*)));
  3354. }
  3355.  
  3356. XS__Sdk_configuration_setSettings_response_t SetSettingsJob::setSettingsResponse() const
  3357. {
  3358. return mResultSetSettingsResponse;
  3359. }
  3360.  
  3361. void SetSettingsJob::slotFinished( KDSoapPendingCallWatcher* watcher )
  3362. {
  3363. watcher->deleteLater();
  3364. KDSoapMessage _reply = watcher->returnMessage();
  3365. if (!_reply.isFault()) {
  3366. if (_reply.childValues().isEmpty()) {
  3367. _reply.setFault(true);
  3368. _reply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  3369. return;
  3370. }
  3371. _reply = _reply.childValues().at(0);
  3372. mResultSetSettingsResponse.deserialize(_reply);
  3373. }
  3374. emitFinished(_reply, watcher->returnHeaders());
  3375. }
  3376.  
  3377.  
  3378. class Sdk::PrivateDPtr
  3379. {
  3380. public:
  3381. PrivateDPtr();
  3382.  
  3383. public:
  3384. KDSoapClientInterface *m_clientInterface;
  3385. KDSoapMessage m_lastReply;
  3386. QString m_endPoint;
  3387. };
  3388.  
  3389. Sdk::PrivateDPtr::PrivateDPtr()
  3390. : m_clientInterface(NULL)
  3391. {
  3392. }
  3393.  
  3394.  
  3395. Sdk::Sdk( QObject* _parent )
  3396. : QObject(_parent), d_ptr(new PrivateDPtr)
  3397. {
  3398. }
  3399.  
  3400. Sdk::~Sdk()
  3401. {
  3402. delete d_ptr->m_clientInterface;
  3403.  
  3404. delete d_ptr;
  3405. d_ptr = 0;
  3406. }
  3407.  
  3408. void Sdk::ignoreSslErrors()
  3409. {
  3410. clientInterface()->ignoreSslErrors();
  3411. }
  3412.  
  3413. void Sdk::setEndPoint( const QString& endPoint )
  3414. {
  3415. d_ptr->m_endPoint = endPoint;
  3416. if (d_ptr->m_clientInterface)
  3417. d_ptr->m_clientInterface->setEndPoint( endPoint );
  3418. }
  3419.  
  3420. void Sdk::setSoapVersion( KDSoapClientInterface::SoapVersion soapVersion )
  3421. {
  3422. clientInterface()->setSoapVersion(soapVersion);
  3423. }
  3424.  
  3425. int Sdk::lastErrorCode() const
  3426. {
  3427. if (d_ptr->m_lastReply.isFault())
  3428. return d_ptr->m_lastReply.childValues().child(QLatin1String("faultcode")).value().toInt();
  3429. return 0;
  3430. }
  3431.  
  3432. QString Sdk::lastError() const
  3433. {
  3434. if (d_ptr->m_lastReply.isFault())
  3435. return d_ptr->m_lastReply.faultAsString();
  3436. return QString();
  3437. }
  3438.  
  3439. const KDSoapClientInterface *Sdk::clientInterface() const
  3440. {
  3441. if (!d_ptr->m_clientInterface) {
  3442. const QString endPoint = !d_ptr->m_endPoint.isEmpty() ? d_ptr->m_endPoint : QString::fromLatin1("http://iridiumgo.lan/sdk/sdk.php");
  3443. const QString messageNamespace = QString::fromLatin1("http://iridiumgo.lan/sdk/");
  3444. d_ptr->m_clientInterface = new KDSoapClientInterface(endPoint, messageNamespace);
  3445. d_ptr->m_clientInterface->setSoapVersion( KDSoapClientInterface::SOAP1_1 );
  3446. }
  3447. return d_ptr->m_clientInterface;
  3448. }
  3449.  
  3450. KDSoapClientInterface *Sdk::clientInterface()
  3451. {
  3452. return const_cast<KDSoapClientInterface*>( const_cast< const Sdk*>( this )->clientInterface() );
  3453. }
  3454.  
  3455. XS__Sdk_version_t Sdk::getVersion()
  3456. {
  3457. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getVersion");
  3458. KDSoapMessage message;
  3459. message.setUse(KDSoapMessage::LiteralUse);
  3460. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3461. d_ptr->m_lastReply = clientInterface()->call(QLatin1String("getVersion"), message, action);
  3462. if (d_ptr->m_lastReply.isFault())
  3463. return XS__Sdk_version_t();
  3464. if (d_ptr->m_lastReply.childValues().isEmpty()) {
  3465. d_ptr->m_lastReply.setFault(true);
  3466. d_ptr->m_lastReply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  3467. return XS__Sdk_version_t();
  3468. }
  3469. XS__Sdk_version_t ret;
  3470. const KDSoapValue val = d_ptr->m_lastReply.childValues().at(0);
  3471. ret.deserialize(val);
  3472. return ret;
  3473. }
  3474.  
  3475. void Sdk::asyncGetVersion()
  3476. {
  3477. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getVersion");
  3478. KDSoapMessage message;
  3479. message.setUse(KDSoapMessage::LiteralUse);
  3480. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3481. KDSoapPendingCall pendingCall = clientInterface()->asyncCall(QLatin1String("getVersion"), message, action);
  3482. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  3483. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  3484. this, SLOT(_kd_slotGetVersionFinished(KDSoapPendingCallWatcher*)));
  3485. }
  3486.  
  3487. void Sdk::_kd_slotGetVersionFinished( KDSoapPendingCallWatcher* watcher )
  3488. {
  3489. const KDSoapMessage reply = watcher->returnMessage();
  3490. if (reply.isFault()) {
  3491. Q_EMIT getVersionError(reply);
  3492. Q_EMIT soapError(QLatin1String("getVersion"), reply);
  3493. } else {
  3494. XS__Sdk_version_t ret;
  3495. ret.deserialize(reply.childValues().child(QLatin1String("versionNumber")));
  3496. Q_EMIT getVersionDone( ret );
  3497. }
  3498. watcher->deleteLater();
  3499. }
  3500.  
  3501. XS__Sdk_user_details_response_t Sdk::getUserDetails( const XS__Sdk_user_credentials_t& userCredentials )
  3502. {
  3503. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getUserDetails");
  3504. KDSoapMessage message;
  3505. message.setUse(KDSoapMessage::LiteralUse);
  3506. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3507. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  3508. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3509. message.childValues().append(_valueUserCredentials);
  3510. d_ptr->m_lastReply = clientInterface()->call(QLatin1String("getUserDetails"), message, action);
  3511. if (d_ptr->m_lastReply.isFault())
  3512. return XS__Sdk_user_details_response_t();
  3513. if (d_ptr->m_lastReply.childValues().isEmpty()) {
  3514. d_ptr->m_lastReply.setFault(true);
  3515. d_ptr->m_lastReply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  3516. return XS__Sdk_user_details_response_t();
  3517. }
  3518. XS__Sdk_user_details_response_t ret;
  3519. const KDSoapValue val = d_ptr->m_lastReply.childValues().at(0);
  3520. ret.deserialize(val);
  3521. return ret;
  3522. }
  3523.  
  3524. void Sdk::asyncGetUserDetails( const XS__Sdk_user_credentials_t& userCredentials )
  3525. {
  3526. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getUserDetails");
  3527. KDSoapMessage message;
  3528. message.setUse(KDSoapMessage::LiteralUse);
  3529. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3530. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  3531. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3532. message.childValues().append(_valueUserCredentials);
  3533. KDSoapPendingCall pendingCall = clientInterface()->asyncCall(QLatin1String("getUserDetails"), message, action);
  3534. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  3535. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  3536. this, SLOT(_kd_slotGetUserDetailsFinished(KDSoapPendingCallWatcher*)));
  3537. }
  3538.  
  3539. void Sdk::_kd_slotGetUserDetailsFinished( KDSoapPendingCallWatcher* watcher )
  3540. {
  3541. const KDSoapMessage reply = watcher->returnMessage();
  3542. if (reply.isFault()) {
  3543. Q_EMIT getUserDetailsError(reply);
  3544. Q_EMIT soapError(QLatin1String("getUserDetails"), reply);
  3545. } else {
  3546. XS__Sdk_user_details_response_t ret;
  3547. ret.deserialize(reply.childValues().child(QLatin1String("login")));
  3548. Q_EMIT getUserDetailsDone( ret );
  3549. }
  3550. watcher->deleteLater();
  3551. }
  3552.  
  3553. XS__Sdk_status_get_response_t Sdk::getStatus( const XS__Sdk_user_credentials_t& userCredentials, const XS__Sdk_status_request_t& request )
  3554. {
  3555. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getStatus");
  3556. KDSoapMessage message;
  3557. message.setUse(KDSoapMessage::LiteralUse);
  3558. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3559. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  3560. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3561. message.childValues().append(_valueUserCredentials);
  3562. KDSoapValue _valueRequest(request.serialize(QString::fromLatin1("request")));
  3563. _valueRequest.setNamespaceUri(QString::fromLatin1(""));
  3564. message.childValues().append(_valueRequest);
  3565. d_ptr->m_lastReply = clientInterface()->call(QLatin1String("getStatus"), message, action);
  3566. if (d_ptr->m_lastReply.isFault())
  3567. return XS__Sdk_status_get_response_t();
  3568. if (d_ptr->m_lastReply.childValues().isEmpty()) {
  3569. d_ptr->m_lastReply.setFault(true);
  3570. d_ptr->m_lastReply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  3571. return XS__Sdk_status_get_response_t();
  3572. }
  3573. XS__Sdk_status_get_response_t ret;
  3574. const KDSoapValue val = d_ptr->m_lastReply.childValues().at(0);
  3575. ret.deserialize(val);
  3576. return ret;
  3577. }
  3578.  
  3579. void Sdk::asyncGetStatus( const XS__Sdk_user_credentials_t& userCredentials, const XS__Sdk_status_request_t& request )
  3580. {
  3581. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getStatus");
  3582. KDSoapMessage message;
  3583. message.setUse(KDSoapMessage::LiteralUse);
  3584. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3585. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  3586. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3587. message.childValues().append(_valueUserCredentials);
  3588. KDSoapValue _valueRequest(request.serialize(QString::fromLatin1("request")));
  3589. _valueRequest.setNamespaceUri(QString::fromLatin1(""));
  3590. message.childValues().append(_valueRequest);
  3591. KDSoapPendingCall pendingCall = clientInterface()->asyncCall(QLatin1String("getStatus"), message, action);
  3592. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  3593. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  3594. this, SLOT(_kd_slotGetStatusFinished(KDSoapPendingCallWatcher*)));
  3595. }
  3596.  
  3597. void Sdk::_kd_slotGetStatusFinished( KDSoapPendingCallWatcher* watcher )
  3598. {
  3599. const KDSoapMessage reply = watcher->returnMessage();
  3600. if (reply.isFault()) {
  3601. Q_EMIT getStatusError(reply);
  3602. Q_EMIT soapError(QLatin1String("getStatus"), reply);
  3603. } else {
  3604. XS__Sdk_status_get_response_t ret;
  3605. ret.deserialize(reply.childValues().child(QLatin1String("statusOutput")));
  3606. Q_EMIT getStatusDone( ret );
  3607. }
  3608. watcher->deleteLater();
  3609. }
  3610.  
  3611. XS__Sdk_configuration_getSettings_response_t Sdk::getSettings( const XS__Sdk_user_credentials_t& userCredentials, const XS__Sdk_configuration_requestList_t& reqList )
  3612. {
  3613. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getSettings");
  3614. KDSoapMessage message;
  3615. message.setUse(KDSoapMessage::LiteralUse);
  3616. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3617. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  3618. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3619. message.childValues().append(_valueUserCredentials);
  3620. KDSoapValue _valueReqList(reqList.serialize(QString::fromLatin1("reqList")));
  3621. _valueReqList.setNamespaceUri(QString::fromLatin1(""));
  3622. message.childValues().append(_valueReqList);
  3623. d_ptr->m_lastReply = clientInterface()->call(QLatin1String("getSettings"), message, action);
  3624. if (d_ptr->m_lastReply.isFault())
  3625. return XS__Sdk_configuration_getSettings_response_t();
  3626. if (d_ptr->m_lastReply.childValues().isEmpty()) {
  3627. d_ptr->m_lastReply.setFault(true);
  3628. d_ptr->m_lastReply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  3629. return XS__Sdk_configuration_getSettings_response_t();
  3630. }
  3631. XS__Sdk_configuration_getSettings_response_t ret;
  3632. const KDSoapValue val = d_ptr->m_lastReply.childValues().at(0);
  3633. ret.deserialize(val);
  3634. return ret;
  3635. }
  3636.  
  3637. void Sdk::asyncGetSettings( const XS__Sdk_user_credentials_t& userCredentials, const XS__Sdk_configuration_requestList_t& reqList )
  3638. {
  3639. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getSettings");
  3640. KDSoapMessage message;
  3641. message.setUse(KDSoapMessage::LiteralUse);
  3642. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3643. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  3644. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3645. message.childValues().append(_valueUserCredentials);
  3646. KDSoapValue _valueReqList(reqList.serialize(QString::fromLatin1("reqList")));
  3647. _valueReqList.setNamespaceUri(QString::fromLatin1(""));
  3648. message.childValues().append(_valueReqList);
  3649. KDSoapPendingCall pendingCall = clientInterface()->asyncCall(QLatin1String("getSettings"), message, action);
  3650. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  3651. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  3652. this, SLOT(_kd_slotGetSettingsFinished(KDSoapPendingCallWatcher*)));
  3653. }
  3654.  
  3655. void Sdk::_kd_slotGetSettingsFinished( KDSoapPendingCallWatcher* watcher )
  3656. {
  3657. const KDSoapMessage reply = watcher->returnMessage();
  3658. if (reply.isFault()) {
  3659. Q_EMIT getSettingsError(reply);
  3660. Q_EMIT soapError(QLatin1String("getSettings"), reply);
  3661. } else {
  3662. XS__Sdk_configuration_getSettings_response_t ret;
  3663. ret.deserialize(reply.childValues().child(QLatin1String("configs")));
  3664. Q_EMIT getSettingsDone( ret );
  3665. }
  3666. watcher->deleteLater();
  3667. }
  3668.  
  3669. XS__Sdk_configuration_setSettings_response_t Sdk::setSettings( const XS__Sdk_user_credentials_t& userCredentials, const XS__Sdk_configuration_setRequst_list_t& setList )
  3670. {
  3671. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/setSettings");
  3672. KDSoapMessage message;
  3673. message.setUse(KDSoapMessage::LiteralUse);
  3674. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3675. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  3676. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3677. message.childValues().append(_valueUserCredentials);
  3678. KDSoapValue _valueSetList(setList.serialize(QString::fromLatin1("setList")));
  3679. _valueSetList.setNamespaceUri(QString::fromLatin1(""));
  3680. message.childValues().append(_valueSetList);
  3681. d_ptr->m_lastReply = clientInterface()->call(QLatin1String("setSettings"), message, action);
  3682. if (d_ptr->m_lastReply.isFault())
  3683. return XS__Sdk_configuration_setSettings_response_t();
  3684. if (d_ptr->m_lastReply.childValues().isEmpty()) {
  3685. d_ptr->m_lastReply.setFault(true);
  3686. d_ptr->m_lastReply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  3687. return XS__Sdk_configuration_setSettings_response_t();
  3688. }
  3689. XS__Sdk_configuration_setSettings_response_t ret;
  3690. const KDSoapValue val = d_ptr->m_lastReply.childValues().at(0);
  3691. ret.deserialize(val);
  3692. return ret;
  3693. }
  3694.  
  3695. void Sdk::asyncSetSettings( const XS__Sdk_user_credentials_t& userCredentials, const XS__Sdk_configuration_setRequst_list_t& setList )
  3696. {
  3697. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/setSettings");
  3698. KDSoapMessage message;
  3699. message.setUse(KDSoapMessage::LiteralUse);
  3700. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3701. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  3702. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3703. message.childValues().append(_valueUserCredentials);
  3704. KDSoapValue _valueSetList(setList.serialize(QString::fromLatin1("setList")));
  3705. _valueSetList.setNamespaceUri(QString::fromLatin1(""));
  3706. message.childValues().append(_valueSetList);
  3707. KDSoapPendingCall pendingCall = clientInterface()->asyncCall(QLatin1String("setSettings"), message, action);
  3708. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  3709. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  3710. this, SLOT(_kd_slotSetSettingsFinished(KDSoapPendingCallWatcher*)));
  3711. }
  3712.  
  3713. void Sdk::_kd_slotSetSettingsFinished( KDSoapPendingCallWatcher* watcher )
  3714. {
  3715. const KDSoapMessage reply = watcher->returnMessage();
  3716. if (reply.isFault()) {
  3717. Q_EMIT setSettingsError(reply);
  3718. Q_EMIT soapError(QLatin1String("setSettings"), reply);
  3719. } else {
  3720. XS__Sdk_configuration_setSettings_response_t ret;
  3721. ret.deserialize(reply.childValues().child(QLatin1String("setSettingsResponse")));
  3722. Q_EMIT setSettingsDone( ret );
  3723. }
  3724. watcher->deleteLater();
  3725. }
  3726.  
  3727. XS__Sdk_task_perform_response_t Sdk::performTask( const XS__Sdk_user_credentials_t& userCredentials, const XS__Sdk_task_requestList_t& taskList )
  3728. {
  3729. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/performTask");
  3730. KDSoapMessage message;
  3731. message.setUse(KDSoapMessage::LiteralUse);
  3732. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3733. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  3734. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3735. message.childValues().append(_valueUserCredentials);
  3736. KDSoapValue _valueTaskList(taskList.serialize(QString::fromLatin1("taskList")));
  3737. _valueTaskList.setNamespaceUri(QString::fromLatin1(""));
  3738. message.childValues().append(_valueTaskList);
  3739. d_ptr->m_lastReply = clientInterface()->call(QLatin1String("performTask"), message, action);
  3740. if (d_ptr->m_lastReply.isFault())
  3741. return XS__Sdk_task_perform_response_t();
  3742. if (d_ptr->m_lastReply.childValues().isEmpty()) {
  3743. d_ptr->m_lastReply.setFault(true);
  3744. d_ptr->m_lastReply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  3745. return XS__Sdk_task_perform_response_t();
  3746. }
  3747. XS__Sdk_task_perform_response_t ret;
  3748. const KDSoapValue val = d_ptr->m_lastReply.childValues().at(0);
  3749. ret.deserialize(val);
  3750. return ret;
  3751. }
  3752.  
  3753. void Sdk::asyncPerformTask( const XS__Sdk_user_credentials_t& userCredentials, const XS__Sdk_task_requestList_t& taskList )
  3754. {
  3755. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/performTask");
  3756. KDSoapMessage message;
  3757. message.setUse(KDSoapMessage::LiteralUse);
  3758. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3759. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  3760. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3761. message.childValues().append(_valueUserCredentials);
  3762. KDSoapValue _valueTaskList(taskList.serialize(QString::fromLatin1("taskList")));
  3763. _valueTaskList.setNamespaceUri(QString::fromLatin1(""));
  3764. message.childValues().append(_valueTaskList);
  3765. KDSoapPendingCall pendingCall = clientInterface()->asyncCall(QLatin1String("performTask"), message, action);
  3766. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  3767. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  3768. this, SLOT(_kd_slotPerformTaskFinished(KDSoapPendingCallWatcher*)));
  3769. }
  3770.  
  3771. void Sdk::_kd_slotPerformTaskFinished( KDSoapPendingCallWatcher* watcher )
  3772. {
  3773. const KDSoapMessage reply = watcher->returnMessage();
  3774. if (reply.isFault()) {
  3775. Q_EMIT performTaskError(reply);
  3776. Q_EMIT soapError(QLatin1String("performTask"), reply);
  3777. } else {
  3778. XS__Sdk_task_perform_response_t ret;
  3779. ret.deserialize(reply.childValues().child(QLatin1String("parameters")));
  3780. Q_EMIT performTaskDone( ret );
  3781. }
  3782. watcher->deleteLater();
  3783. }
  3784.  
  3785. XS__Sdk_user_getList_Response_t Sdk::getUserList( const XS__Sdk_user_credentials_t& userCredentials )
  3786. {
  3787. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getUserList");
  3788. KDSoapMessage message;
  3789. message.setUse(KDSoapMessage::LiteralUse);
  3790. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3791. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  3792. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3793. message.childValues().append(_valueUserCredentials);
  3794. d_ptr->m_lastReply = clientInterface()->call(QLatin1String("getUserList"), message, action);
  3795. if (d_ptr->m_lastReply.isFault())
  3796. return XS__Sdk_user_getList_Response_t();
  3797. if (d_ptr->m_lastReply.childValues().isEmpty()) {
  3798. d_ptr->m_lastReply.setFault(true);
  3799. d_ptr->m_lastReply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  3800. return XS__Sdk_user_getList_Response_t();
  3801. }
  3802. XS__Sdk_user_getList_Response_t ret;
  3803. const KDSoapValue val = d_ptr->m_lastReply.childValues().at(0);
  3804. ret.deserialize(val);
  3805. return ret;
  3806. }
  3807.  
  3808. void Sdk::asyncGetUserList( const XS__Sdk_user_credentials_t& userCredentials )
  3809. {
  3810. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getUserList");
  3811. KDSoapMessage message;
  3812. message.setUse(KDSoapMessage::LiteralUse);
  3813. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3814. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  3815. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3816. message.childValues().append(_valueUserCredentials);
  3817. KDSoapPendingCall pendingCall = clientInterface()->asyncCall(QLatin1String("getUserList"), message, action);
  3818. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  3819. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  3820. this, SLOT(_kd_slotGetUserListFinished(KDSoapPendingCallWatcher*)));
  3821. }
  3822.  
  3823. void Sdk::_kd_slotGetUserListFinished( KDSoapPendingCallWatcher* watcher )
  3824. {
  3825. const KDSoapMessage reply = watcher->returnMessage();
  3826. if (reply.isFault()) {
  3827. Q_EMIT getUserListError(reply);
  3828. Q_EMIT soapError(QLatin1String("getUserList"), reply);
  3829. } else {
  3830. XS__Sdk_user_getList_Response_t ret;
  3831. ret.deserialize(reply.childValues().child(QLatin1String("getUserListResponse")));
  3832. Q_EMIT getUserListDone( ret );
  3833. }
  3834. watcher->deleteLater();
  3835. }
  3836.  
  3837. XS__Sdk_user_add_modify_remove_Response_t Sdk::addModifyUser( const XS__Sdk_user_credentials_t& userCredentials, const XS__Sdk_user_t& user )
  3838. {
  3839. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/addModifyUser");
  3840. KDSoapMessage message;
  3841. message.setUse(KDSoapMessage::LiteralUse);
  3842. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3843. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  3844. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3845. message.childValues().append(_valueUserCredentials);
  3846. KDSoapValue _valueUser(user.serialize(QString::fromLatin1("user")));
  3847. _valueUser.setNamespaceUri(QString::fromLatin1(""));
  3848. message.childValues().append(_valueUser);
  3849. d_ptr->m_lastReply = clientInterface()->call(QLatin1String("addModifyUser"), message, action);
  3850. if (d_ptr->m_lastReply.isFault())
  3851. return XS__Sdk_user_add_modify_remove_Response_t();
  3852. if (d_ptr->m_lastReply.childValues().isEmpty()) {
  3853. d_ptr->m_lastReply.setFault(true);
  3854. d_ptr->m_lastReply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  3855. return XS__Sdk_user_add_modify_remove_Response_t();
  3856. }
  3857. XS__Sdk_user_add_modify_remove_Response_t ret;
  3858. const KDSoapValue val = d_ptr->m_lastReply.childValues().at(0);
  3859. ret.deserialize(val);
  3860. return ret;
  3861. }
  3862.  
  3863. void Sdk::asyncAddModifyUser( const XS__Sdk_user_credentials_t& userCredentials, const XS__Sdk_user_t& user )
  3864. {
  3865. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/addModifyUser");
  3866. KDSoapMessage message;
  3867. message.setUse(KDSoapMessage::LiteralUse);
  3868. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3869. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  3870. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3871. message.childValues().append(_valueUserCredentials);
  3872. KDSoapValue _valueUser(user.serialize(QString::fromLatin1("user")));
  3873. _valueUser.setNamespaceUri(QString::fromLatin1(""));
  3874. message.childValues().append(_valueUser);
  3875. KDSoapPendingCall pendingCall = clientInterface()->asyncCall(QLatin1String("addModifyUser"), message, action);
  3876. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  3877. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  3878. this, SLOT(_kd_slotAddModifyUserFinished(KDSoapPendingCallWatcher*)));
  3879. }
  3880.  
  3881. void Sdk::_kd_slotAddModifyUserFinished( KDSoapPendingCallWatcher* watcher )
  3882. {
  3883. const KDSoapMessage reply = watcher->returnMessage();
  3884. if (reply.isFault()) {
  3885. Q_EMIT addModifyUserError(reply);
  3886. Q_EMIT soapError(QLatin1String("addModifyUser"), reply);
  3887. } else {
  3888. XS__Sdk_user_add_modify_remove_Response_t ret;
  3889. ret.deserialize(reply.childValues().child(QLatin1String("addModifyUserResponse")));
  3890. Q_EMIT addModifyUserDone( ret );
  3891. }
  3892. watcher->deleteLater();
  3893. }
  3894.  
  3895. XS__Sdk_user_add_modify_remove_Response_t Sdk::removeUser( const XS__Sdk_user_credentials_t& userCredentials, const QString& userName )
  3896. {
  3897. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/removeUser");
  3898. KDSoapMessage message;
  3899. message.setUse(KDSoapMessage::LiteralUse);
  3900. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3901. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  3902. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3903. message.childValues().append(_valueUserCredentials);
  3904. KDSoapValue _valueUserName(QString::fromLatin1("userName"), QVariant::fromValue(userName), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  3905. _valueUserName.setNamespaceUri(QString::fromLatin1(""));
  3906. message.childValues().append(_valueUserName);
  3907. d_ptr->m_lastReply = clientInterface()->call(QLatin1String("removeUser"), message, action);
  3908. if (d_ptr->m_lastReply.isFault())
  3909. return XS__Sdk_user_add_modify_remove_Response_t();
  3910. if (d_ptr->m_lastReply.childValues().isEmpty()) {
  3911. d_ptr->m_lastReply.setFault(true);
  3912. d_ptr->m_lastReply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  3913. return XS__Sdk_user_add_modify_remove_Response_t();
  3914. }
  3915. XS__Sdk_user_add_modify_remove_Response_t ret;
  3916. const KDSoapValue val = d_ptr->m_lastReply.childValues().at(0);
  3917. ret.deserialize(val);
  3918. return ret;
  3919. }
  3920.  
  3921. void Sdk::asyncRemoveUser( const XS__Sdk_user_credentials_t& userCredentials, const QString& userName )
  3922. {
  3923. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/removeUser");
  3924. KDSoapMessage message;
  3925. message.setUse(KDSoapMessage::LiteralUse);
  3926. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3927. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  3928. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3929. message.childValues().append(_valueUserCredentials);
  3930. KDSoapValue _valueUserName(QString::fromLatin1("userName"), QVariant::fromValue(userName), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  3931. _valueUserName.setNamespaceUri(QString::fromLatin1(""));
  3932. message.childValues().append(_valueUserName);
  3933. KDSoapPendingCall pendingCall = clientInterface()->asyncCall(QLatin1String("removeUser"), message, action);
  3934. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  3935. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  3936. this, SLOT(_kd_slotRemoveUserFinished(KDSoapPendingCallWatcher*)));
  3937. }
  3938.  
  3939. void Sdk::_kd_slotRemoveUserFinished( KDSoapPendingCallWatcher* watcher )
  3940. {
  3941. const KDSoapMessage reply = watcher->returnMessage();
  3942. if (reply.isFault()) {
  3943. Q_EMIT removeUserError(reply);
  3944. Q_EMIT soapError(QLatin1String("removeUser"), reply);
  3945. } else {
  3946. XS__Sdk_user_add_modify_remove_Response_t ret;
  3947. ret.deserialize(reply.childValues().child(QLatin1String("removeUserResponse")));
  3948. Q_EMIT removeUserDone( ret );
  3949. }
  3950. watcher->deleteLater();
  3951. }
  3952.  
  3953. XS__Sdk_contacts_getList_Response_t Sdk::getContactList( const XS__Sdk_user_credentials_t& userCredentials )
  3954. {
  3955. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getContactList");
  3956. KDSoapMessage message;
  3957. message.setUse(KDSoapMessage::LiteralUse);
  3958. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3959. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  3960. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3961. message.childValues().append(_valueUserCredentials);
  3962. d_ptr->m_lastReply = clientInterface()->call(QLatin1String("getContactList"), message, action);
  3963. if (d_ptr->m_lastReply.isFault())
  3964. return XS__Sdk_contacts_getList_Response_t();
  3965. if (d_ptr->m_lastReply.childValues().isEmpty()) {
  3966. d_ptr->m_lastReply.setFault(true);
  3967. d_ptr->m_lastReply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  3968. return XS__Sdk_contacts_getList_Response_t();
  3969. }
  3970. XS__Sdk_contacts_getList_Response_t ret;
  3971. const KDSoapValue val = d_ptr->m_lastReply.childValues().at(0);
  3972. ret.deserialize(val);
  3973. return ret;
  3974. }
  3975.  
  3976. void Sdk::asyncGetContactList( const XS__Sdk_user_credentials_t& userCredentials )
  3977. {
  3978. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getContactList");
  3979. KDSoapMessage message;
  3980. message.setUse(KDSoapMessage::LiteralUse);
  3981. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  3982. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  3983. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  3984. message.childValues().append(_valueUserCredentials);
  3985. KDSoapPendingCall pendingCall = clientInterface()->asyncCall(QLatin1String("getContactList"), message, action);
  3986. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  3987. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  3988. this, SLOT(_kd_slotGetContactListFinished(KDSoapPendingCallWatcher*)));
  3989. }
  3990.  
  3991. void Sdk::_kd_slotGetContactListFinished( KDSoapPendingCallWatcher* watcher )
  3992. {
  3993. const KDSoapMessage reply = watcher->returnMessage();
  3994. if (reply.isFault()) {
  3995. Q_EMIT getContactListError(reply);
  3996. Q_EMIT soapError(QLatin1String("getContactList"), reply);
  3997. } else {
  3998. XS__Sdk_contacts_getList_Response_t ret;
  3999. ret.deserialize(reply.childValues().child(QLatin1String("contactList")));
  4000. Q_EMIT getContactListDone( ret );
  4001. }
  4002. watcher->deleteLater();
  4003. }
  4004.  
  4005. XS__Sdk_contact_add_modify_remove_Response_t Sdk::addNewContact( const XS__Sdk_user_credentials_t& userCredentials, const QString& name, const QString& number, bool isFavourite )
  4006. {
  4007. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/addNewContact");
  4008. KDSoapMessage message;
  4009. message.setUse(KDSoapMessage::LiteralUse);
  4010. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  4011. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  4012. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  4013. message.childValues().append(_valueUserCredentials);
  4014. KDSoapValue _valueName(QString::fromLatin1("name"), QVariant::fromValue(name), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  4015. _valueName.setNamespaceUri(QString::fromLatin1(""));
  4016. message.childValues().append(_valueName);
  4017. KDSoapValue _valueNumber(QString::fromLatin1("number"), QVariant::fromValue(number), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  4018. _valueNumber.setNamespaceUri(QString::fromLatin1(""));
  4019. message.childValues().append(_valueNumber);
  4020. KDSoapValue _valueIsFavourite(QString::fromLatin1("isFavourite"), QVariant::fromValue(isFavourite), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("boolean"));
  4021. _valueIsFavourite.setNamespaceUri(QString::fromLatin1(""));
  4022. message.childValues().append(_valueIsFavourite);
  4023. d_ptr->m_lastReply = clientInterface()->call(QLatin1String("addNewContact"), message, action);
  4024. if (d_ptr->m_lastReply.isFault())
  4025. return XS__Sdk_contact_add_modify_remove_Response_t();
  4026. if (d_ptr->m_lastReply.childValues().isEmpty()) {
  4027. d_ptr->m_lastReply.setFault(true);
  4028. d_ptr->m_lastReply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  4029. return XS__Sdk_contact_add_modify_remove_Response_t();
  4030. }
  4031. XS__Sdk_contact_add_modify_remove_Response_t ret;
  4032. const KDSoapValue val = d_ptr->m_lastReply.childValues().at(0);
  4033. ret.deserialize(val);
  4034. return ret;
  4035. }
  4036.  
  4037. void Sdk::asyncAddNewContact( const XS__Sdk_user_credentials_t& userCredentials, const QString& name, const QString& number, bool isFavourite )
  4038. {
  4039. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/addNewContact");
  4040. KDSoapMessage message;
  4041. message.setUse(KDSoapMessage::LiteralUse);
  4042. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  4043. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  4044. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  4045. message.childValues().append(_valueUserCredentials);
  4046. KDSoapValue _valueName(QString::fromLatin1("name"), QVariant::fromValue(name), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  4047. _valueName.setNamespaceUri(QString::fromLatin1(""));
  4048. message.childValues().append(_valueName);
  4049. KDSoapValue _valueNumber(QString::fromLatin1("number"), QVariant::fromValue(number), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("string"));
  4050. _valueNumber.setNamespaceUri(QString::fromLatin1(""));
  4051. message.childValues().append(_valueNumber);
  4052. KDSoapValue _valueIsFavourite(QString::fromLatin1("isFavourite"), QVariant::fromValue(isFavourite), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("boolean"));
  4053. _valueIsFavourite.setNamespaceUri(QString::fromLatin1(""));
  4054. message.childValues().append(_valueIsFavourite);
  4055. KDSoapPendingCall pendingCall = clientInterface()->asyncCall(QLatin1String("addNewContact"), message, action);
  4056. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  4057. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  4058. this, SLOT(_kd_slotAddNewContactFinished(KDSoapPendingCallWatcher*)));
  4059. }
  4060.  
  4061. void Sdk::_kd_slotAddNewContactFinished( KDSoapPendingCallWatcher* watcher )
  4062. {
  4063. const KDSoapMessage reply = watcher->returnMessage();
  4064. if (reply.isFault()) {
  4065. Q_EMIT addNewContactError(reply);
  4066. Q_EMIT soapError(QLatin1String("addNewContact"), reply);
  4067. } else {
  4068. XS__Sdk_contact_add_modify_remove_Response_t ret;
  4069. ret.deserialize(reply.childValues().child(QLatin1String("addContactResult")));
  4070. Q_EMIT addNewContactDone( ret );
  4071. }
  4072. watcher->deleteLater();
  4073. }
  4074.  
  4075. XS__Sdk_contact_add_modify_remove_Response_t Sdk::modifyContact( const XS__Sdk_user_credentials_t& userCredentials, const XS__Sdk_contact_t& contact )
  4076. {
  4077. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/modifyContact");
  4078. KDSoapMessage message;
  4079. message.setUse(KDSoapMessage::LiteralUse);
  4080. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  4081. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  4082. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  4083. message.childValues().append(_valueUserCredentials);
  4084. KDSoapValue _valueContact(contact.serialize(QString::fromLatin1("contact")));
  4085. _valueContact.setNamespaceUri(QString::fromLatin1(""));
  4086. message.childValues().append(_valueContact);
  4087. d_ptr->m_lastReply = clientInterface()->call(QLatin1String("modifyContact"), message, action);
  4088. if (d_ptr->m_lastReply.isFault())
  4089. return XS__Sdk_contact_add_modify_remove_Response_t();
  4090. if (d_ptr->m_lastReply.childValues().isEmpty()) {
  4091. d_ptr->m_lastReply.setFault(true);
  4092. d_ptr->m_lastReply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  4093. return XS__Sdk_contact_add_modify_remove_Response_t();
  4094. }
  4095. XS__Sdk_contact_add_modify_remove_Response_t ret;
  4096. const KDSoapValue val = d_ptr->m_lastReply.childValues().at(0);
  4097. ret.deserialize(val);
  4098. return ret;
  4099. }
  4100.  
  4101. void Sdk::asyncModifyContact( const XS__Sdk_user_credentials_t& userCredentials, const XS__Sdk_contact_t& contact )
  4102. {
  4103. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/modifyContact");
  4104. KDSoapMessage message;
  4105. message.setUse(KDSoapMessage::LiteralUse);
  4106. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  4107. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  4108. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  4109. message.childValues().append(_valueUserCredentials);
  4110. KDSoapValue _valueContact(contact.serialize(QString::fromLatin1("contact")));
  4111. _valueContact.setNamespaceUri(QString::fromLatin1(""));
  4112. message.childValues().append(_valueContact);
  4113. KDSoapPendingCall pendingCall = clientInterface()->asyncCall(QLatin1String("modifyContact"), message, action);
  4114. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  4115. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  4116. this, SLOT(_kd_slotModifyContactFinished(KDSoapPendingCallWatcher*)));
  4117. }
  4118.  
  4119. void Sdk::_kd_slotModifyContactFinished( KDSoapPendingCallWatcher* watcher )
  4120. {
  4121. const KDSoapMessage reply = watcher->returnMessage();
  4122. if (reply.isFault()) {
  4123. Q_EMIT modifyContactError(reply);
  4124. Q_EMIT soapError(QLatin1String("modifyContact"), reply);
  4125. } else {
  4126. XS__Sdk_contact_add_modify_remove_Response_t ret;
  4127. ret.deserialize(reply.childValues().child(QLatin1String("modifyContactResult")));
  4128. Q_EMIT modifyContactDone( ret );
  4129. }
  4130. watcher->deleteLater();
  4131. }
  4132.  
  4133. XS__Sdk_contact_add_modify_remove_Response_t Sdk::removeContact( const XS__Sdk_user_credentials_t& userCredentials, int contactID )
  4134. {
  4135. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/removeContact");
  4136. KDSoapMessage message;
  4137. message.setUse(KDSoapMessage::LiteralUse);
  4138. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  4139. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  4140. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  4141. message.childValues().append(_valueUserCredentials);
  4142. KDSoapValue _valueContactID(QString::fromLatin1("contactID"), QVariant::fromValue(contactID), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("int"));
  4143. _valueContactID.setNamespaceUri(QString::fromLatin1(""));
  4144. message.childValues().append(_valueContactID);
  4145. d_ptr->m_lastReply = clientInterface()->call(QLatin1String("removeContact"), message, action);
  4146. if (d_ptr->m_lastReply.isFault())
  4147. return XS__Sdk_contact_add_modify_remove_Response_t();
  4148. if (d_ptr->m_lastReply.childValues().isEmpty()) {
  4149. d_ptr->m_lastReply.setFault(true);
  4150. d_ptr->m_lastReply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  4151. return XS__Sdk_contact_add_modify_remove_Response_t();
  4152. }
  4153. XS__Sdk_contact_add_modify_remove_Response_t ret;
  4154. const KDSoapValue val = d_ptr->m_lastReply.childValues().at(0);
  4155. ret.deserialize(val);
  4156. return ret;
  4157. }
  4158.  
  4159. void Sdk::asyncRemoveContact( const XS__Sdk_user_credentials_t& userCredentials, int contactID )
  4160. {
  4161. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/removeContact");
  4162. KDSoapMessage message;
  4163. message.setUse(KDSoapMessage::LiteralUse);
  4164. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  4165. KDSoapValue _valueUserCredentials(userCredentials.serialize(QString::fromLatin1("userCredentials")));
  4166. _valueUserCredentials.setNamespaceUri(QString::fromLatin1(""));
  4167. message.childValues().append(_valueUserCredentials);
  4168. KDSoapValue _valueContactID(QString::fromLatin1("contactID"), QVariant::fromValue(contactID), KDSoapNamespaceManager::xmlSchema2001(), QString::fromLatin1("int"));
  4169. _valueContactID.setNamespaceUri(QString::fromLatin1(""));
  4170. message.childValues().append(_valueContactID);
  4171. KDSoapPendingCall pendingCall = clientInterface()->asyncCall(QLatin1String("removeContact"), message, action);
  4172. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  4173. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  4174. this, SLOT(_kd_slotRemoveContactFinished(KDSoapPendingCallWatcher*)));
  4175. }
  4176.  
  4177. void Sdk::_kd_slotRemoveContactFinished( KDSoapPendingCallWatcher* watcher )
  4178. {
  4179. const KDSoapMessage reply = watcher->returnMessage();
  4180. if (reply.isFault()) {
  4181. Q_EMIT removeContactError(reply);
  4182. Q_EMIT soapError(QLatin1String("removeContact"), reply);
  4183. } else {
  4184. XS__Sdk_contact_add_modify_remove_Response_t ret;
  4185. ret.deserialize(reply.childValues().child(QLatin1String("removeContactResult")));
  4186. Q_EMIT removeContactDone( ret );
  4187. }
  4188. watcher->deleteLater();
  4189. }
  4190.  
  4191. XS__Sdk_status_get_response_t Sdk::getTransceiverInfo()
  4192. {
  4193. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getTransceiverInfo");
  4194. KDSoapMessage message;
  4195. message.setUse(KDSoapMessage::LiteralUse);
  4196. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  4197. d_ptr->m_lastReply = clientInterface()->call(QLatin1String("getTransceiverInfo"), message, action);
  4198. if (d_ptr->m_lastReply.isFault())
  4199. return XS__Sdk_status_get_response_t();
  4200. if (d_ptr->m_lastReply.childValues().isEmpty()) {
  4201. d_ptr->m_lastReply.setFault(true);
  4202. d_ptr->m_lastReply.addArgument(QString::fromLatin1("faultcode"), QString::fromLatin1("Server.EmptyResponse"));
  4203. return XS__Sdk_status_get_response_t();
  4204. }
  4205. XS__Sdk_status_get_response_t ret;
  4206. const KDSoapValue val = d_ptr->m_lastReply.childValues().at(0);
  4207. ret.deserialize(val);
  4208. return ret;
  4209. }
  4210.  
  4211. void Sdk::asyncGetTransceiverInfo()
  4212. {
  4213. const QString action = QString::fromLatin1("http://iridiumgo.lan/sdk/getTransceiverInfo");
  4214. KDSoapMessage message;
  4215. message.setUse(KDSoapMessage::LiteralUse);
  4216. message.setNamespaceUri(QString::fromLatin1("http://iridiumgo.lan/sdk/"));
  4217. KDSoapPendingCall pendingCall = clientInterface()->asyncCall(QLatin1String("getTransceiverInfo"), message, action);
  4218. KDSoapPendingCallWatcher *watcher = new KDSoapPendingCallWatcher(pendingCall, this);
  4219. QObject::connect(watcher, SIGNAL(finished(KDSoapPendingCallWatcher*)),
  4220. this, SLOT(_kd_slotGetTransceiverInfoFinished(KDSoapPendingCallWatcher*)));
  4221. }
  4222.  
  4223. void Sdk::_kd_slotGetTransceiverInfoFinished( KDSoapPendingCallWatcher* watcher )
  4224. {
  4225. const KDSoapMessage reply = watcher->returnMessage();
  4226. if (reply.isFault()) {
  4227. Q_EMIT getTransceiverInfoError(reply);
  4228. Q_EMIT soapError(QLatin1String("getTransceiverInfo"), reply);
  4229. } else {
  4230. XS__Sdk_status_get_response_t ret;
  4231. ret.deserialize(reply.childValues().child(QLatin1String("transceiverInfo")));
  4232. Q_EMIT getTransceiverInfoDone( ret );
  4233. }
  4234. watcher->deleteLater();
  4235. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement