WirelessDevAgent_def_g.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. #ifndef __WIRELESSDEVAGENT_DEF_G_H
  2. #define __WIRELESSDEVAGENT_DEF_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "SpHelper.h"
  6. namespace WirelessDevAgent {
  7. //
  8. // const goes here
  9. //
  10. #define WirelessDevService_Method_GetWlanInterfaces 0
  11. #define WirelessDevService_Method_ConnectWlan 1
  12. #define WirelessDevService_Method_IsActive 2
  13. #define WirelessDevService_Method_UpdateOrInsertAPN 3
  14. #define WirelessDevService_Method_DeleteAPN 4
  15. #define WirelessDevService_Method_SetCurAPNConfig 5
  16. #define WirelessDevService_Method_SwitchDefaultSlot 6
  17. #define WirelessDevService_Method_GetAPNConfigs 7
  18. #define WirelessDevService_MethodSignature_GetWlanInterfaces -919633378
  19. #define WirelessDevService_MethodSignature_ConnectWlan -1263120734
  20. #define WirelessDevService_MethodSignature_IsActive -1611725100
  21. #define WirelessDevService_MethodSignature_UpdateOrInsertAPN -59598648
  22. #define WirelessDevService_MethodSignature_DeleteAPN -345770837
  23. #define WirelessDevService_MethodSignature_SetCurAPNConfig 1885334294
  24. #define WirelessDevService_MethodSignature_SwitchDefaultSlot 1177370670
  25. #define WirelessDevService_MethodSignature_GetAPNConfigs -111861473
  26. struct WirelessDevService_GetWlanInterfaces_Req
  27. {
  28. void Serialize(SpBuffer &Buf)
  29. {
  30. }
  31. };
  32. struct WirelessDevService_GetWlanInterfaces_Ans
  33. {
  34. int Count;
  35. int ErroCode;
  36. CAutoArray<CSimpleStringA> Interfaces;
  37. void Serialize(SpBuffer &Buf)
  38. {
  39. auto & buf = Buf & Count & ErroCode & Interfaces;
  40. }
  41. };
  42. struct WirelessDevService_ConnectWlan_Req
  43. {
  44. CSimpleStringA SSID;
  45. CSimpleStringA Password;
  46. bool ResetMode;
  47. bool HiddenMode;
  48. bool ForceUpdate;
  49. int Reserved1;
  50. CSimpleStringA Reserved2;
  51. void Serialize(SpBuffer &Buf)
  52. {
  53. auto & buf = Buf & SSID & Password & ResetMode & HiddenMode & ForceUpdate & Reserved1 & Reserved2;
  54. }
  55. };
  56. struct WirelessDevService_ConnectWlan_Ans
  57. {
  58. int Result;
  59. int ErroCode;
  60. CSimpleStringA ReasonString;
  61. void Serialize(SpBuffer &Buf)
  62. {
  63. auto & buf = Buf & Result & ErroCode & ReasonString;
  64. }
  65. };
  66. struct WirelessDevService_IsActive_Req
  67. {
  68. void Serialize(SpBuffer &Buf)
  69. {
  70. }
  71. };
  72. struct WirelessDevService_IsActive_Ans
  73. {
  74. int activeStatus;
  75. int connStatus;
  76. void Serialize(SpBuffer &Buf)
  77. {
  78. auto & buf = Buf & activeStatus & connStatus;
  79. }
  80. };
  81. struct WirelessDevService_UpdateOrInsertAPN_Req
  82. {
  83. int ProfileID;
  84. CSimpleStringA Name;
  85. CSimpleStringA APNString;
  86. CSimpleStringA Numeric;
  87. CSimpleStringA User;
  88. CSimpleStringA Password;
  89. CSimpleStringA Server;
  90. CSimpleStringA Type;
  91. int AuthType;
  92. int Port;
  93. int APNProtocol;
  94. int SlotNum;
  95. bool ApplyNow;
  96. int reserved1;
  97. CSimpleStringA reserved2;
  98. int reserved3;
  99. CAutoArray<CSimpleStringA> reserved4;
  100. void Serialize(SpBuffer &Buf)
  101. {
  102. auto & buf = Buf & ProfileID & Name & APNString & Numeric & User & Password & Server & Type & AuthType & Port & APNProtocol & SlotNum & ApplyNow & reserved1 & reserved2 & reserved3 & reserved4;
  103. }
  104. };
  105. struct WirelessDevService_UpdateOrInsertAPN_Ans
  106. {
  107. int ResultCode;
  108. CSimpleStringA Subjoin;
  109. void Serialize(SpBuffer &Buf)
  110. {
  111. auto & buf = Buf & ResultCode & Subjoin;
  112. }
  113. };
  114. struct WirelessDevService_DeleteAPN_Req
  115. {
  116. int ProfileID;
  117. CSimpleStringA Name;
  118. int SlotNum;
  119. void Serialize(SpBuffer &Buf)
  120. {
  121. auto & buf = Buf & ProfileID & Name & SlotNum;
  122. }
  123. };
  124. struct WirelessDevService_DeleteAPN_Ans
  125. {
  126. int ResultCode;
  127. CSimpleStringA Subjoin;
  128. void Serialize(SpBuffer &Buf)
  129. {
  130. auto & buf = Buf & ResultCode & Subjoin;
  131. }
  132. };
  133. struct WirelessDevService_SetCurAPNConfig_Req
  134. {
  135. CSimpleStringA Name;
  136. int SlotNum;
  137. void Serialize(SpBuffer &Buf)
  138. {
  139. auto & buf = Buf & Name & SlotNum;
  140. }
  141. };
  142. struct WirelessDevService_SetCurAPNConfig_Ans
  143. {
  144. int ResultCode;
  145. CSimpleStringA Subjoin;
  146. void Serialize(SpBuffer &Buf)
  147. {
  148. auto & buf = Buf & ResultCode & Subjoin;
  149. }
  150. };
  151. struct WirelessDevService_SwitchDefaultSlot_Req
  152. {
  153. int SlotIdx;
  154. CSimpleStringA Subjoin;
  155. void Serialize(SpBuffer &Buf)
  156. {
  157. auto & buf = Buf & SlotIdx & Subjoin;
  158. }
  159. };
  160. struct WirelessDevService_SwitchDefaultSlot_Ans
  161. {
  162. int ResultCode;
  163. CSimpleStringA Subjoin;
  164. void Serialize(SpBuffer &Buf)
  165. {
  166. auto & buf = Buf & ResultCode & Subjoin;
  167. }
  168. };
  169. struct WirelessDevService_GetAPNConfigs_Req
  170. {
  171. int FilterSlotNum;
  172. CSimpleStringA FilterName;
  173. int ComponentType;
  174. int reserved1;
  175. CSimpleStringA reserved2;
  176. void Serialize(SpBuffer &Buf)
  177. {
  178. auto & buf = Buf & FilterSlotNum & FilterName & ComponentType & reserved1 & reserved2;
  179. }
  180. };
  181. struct WirelessDevService_GetAPNConfigs_Ans
  182. {
  183. int ResultCode;
  184. CSimpleStringA Subjoin;
  185. CAutoArray<int> SlotName;
  186. CAutoArray<int> OperatorName;
  187. CAutoArray<CSimpleStringA> IMSI;
  188. CAutoArray<CSimpleStringA> IMEI;
  189. CAutoArray<CSimpleStringA> MCCMNC;
  190. CAutoArray<int> SIMState;
  191. CAutoArray<int> ActiveState;
  192. CAutoArray<int> ProfileCount;
  193. CAutoArray<int> ProfileID;
  194. CAutoArray<CSimpleStringA> Name;
  195. CAutoArray<CSimpleStringA> APNString;
  196. CAutoArray<CSimpleStringA> Numeric;
  197. CAutoArray<CSimpleStringA> User;
  198. CAutoArray<CSimpleStringA> Password;
  199. CAutoArray<CSimpleStringA> Server;
  200. CAutoArray<CSimpleStringA> Type;
  201. CAutoArray<int> AuthType;
  202. CAutoArray<int> Port;
  203. CAutoArray<int> APNProtocol;
  204. CAutoArray<int> SlotNum;
  205. CAutoArray<int> ProfileState;
  206. CAutoArray<int> reserved1;
  207. CAutoArray<CSimpleStringA> reserved2;
  208. void Serialize(SpBuffer &Buf)
  209. {
  210. auto & buf = Buf & ResultCode & Subjoin & SlotName & OperatorName & IMSI & IMEI & MCCMNC & SIMState & ActiveState & ProfileCount & ProfileID & Name & APNString & Numeric & User & Password & Server & Type & AuthType & Port & APNProtocol & SlotNum & ProfileState & reserved1 & reserved2;
  211. }
  212. };
  213. ///////////////////////////
  214. } // namespace WirelessDevAgent
  215. #endif // __WIRELESSDEVAGENT_DEF_G_H