Diff to HTML by rtfpessoa

Files changed (237) hide show
  1. generated/generated/Debug/ThunderInterfaces/definitions/generated/JAVSController.h +111 -0
  2. generated/generated/Debug/ThunderInterfaces/definitions/generated/JAmazonPrime.h +91 -0
  3. generated/generated/Debug/ThunderInterfaces/definitions/generated/JAppManager.h +580 -0
  4. generated/generated/Debug/ThunderInterfaces/definitions/generated/JApplication.h +206 -0
  5. generated/generated/Debug/ThunderInterfaces/definitions/generated/JBluetoothAudioSink.h +260 -0
  6. generated/generated/Debug/ThunderInterfaces/definitions/generated/JBluetoothControl.h +831 -0
  7. generated/generated/Debug/ThunderInterfaces/definitions/generated/JBluetoothRemoteControl.h +26 -0
  8. generated/generated/Debug/ThunderInterfaces/definitions/generated/JBrowser.h +26 -0
  9. generated/generated/Debug/ThunderInterfaces/definitions/generated/JBrowserCookieJar.h +97 -0
  10. generated/generated/Debug/ThunderInterfaces/definitions/generated/JBrowserResources.h +134 -0
  11. generated/generated/Debug/ThunderInterfaces/definitions/generated/JBrowserScripting.h +102 -0
  12. generated/generated/Debug/ThunderInterfaces/definitions/generated/JBrowserSecurity.h +104 -0
  13. generated/generated/Debug/ThunderInterfaces/definitions/generated/JButler.h +26 -0
  14. generated/generated/Debug/ThunderInterfaces/definitions/generated/JCobalt.h +25 -0
  15. generated/generated/Debug/ThunderInterfaces/definitions/generated/JCompositor.h +26 -0
  16. generated/generated/Debug/ThunderInterfaces/definitions/generated/JConnectionProperties.h +279 -0
  17. generated/generated/Debug/ThunderInterfaces/definitions/generated/JContainers.h +26 -0
  18. generated/generated/Debug/ThunderInterfaces/definitions/generated/JCustomerCareOperations.h +62 -0
  19. generated/generated/Debug/ThunderInterfaces/definitions/generated/JDHCPServer.h +26 -0
  20. generated/generated/Debug/ThunderInterfaces/definitions/generated/JDIALServer.h +26 -0
  21. generated/generated/Debug/ThunderInterfaces/definitions/generated/JDTV.h +26 -0
  22. generated/generated/Debug/ThunderInterfaces/definitions/generated/JDeviceIdentification.h +26 -0
  23. generated/generated/Debug/ThunderInterfaces/definitions/generated/JDeviceInfo.h +26 -0
  24. generated/generated/Debug/ThunderInterfaces/definitions/generated/JDisplayInfo.h +26 -0
  25. generated/generated/Debug/ThunderInterfaces/definitions/generated/JDisplayProperties.h +160 -0
  26. generated/generated/Debug/ThunderInterfaces/definitions/generated/JDolbyOutput.h +248 -0
  27. generated/generated/Debug/ThunderInterfaces/definitions/generated/JFirmwareControl.h +26 -0
  28. generated/generated/Debug/ThunderInterfaces/definitions/generated/JGraphicsProperties.h +85 -0
  29. generated/generated/Debug/ThunderInterfaces/definitions/generated/JHDRProperties.h +115 -0
  30. generated/generated/Debug/ThunderInterfaces/definitions/generated/JIOConnector.h +26 -0
  31. generated/generated/Debug/ThunderInterfaces/definitions/generated/JIOControl.h +26 -0
  32. generated/generated/Debug/ThunderInterfaces/definitions/generated/JInputSwitch.h +26 -0
  33. generated/generated/Debug/ThunderInterfaces/definitions/generated/JLISA.h +26 -0
  34. generated/generated/Debug/ThunderInterfaces/definitions/generated/JLanguageTag.h +98 -0
  35. generated/generated/Debug/ThunderInterfaces/definitions/generated/JLocationSync.h +26 -0
  36. generated/generated/Debug/ThunderInterfaces/definitions/generated/JMath.h +100 -0
  37. generated/generated/Debug/ThunderInterfaces/definitions/generated/JMessageControl.h +97 -0
  38. generated/generated/Debug/ThunderInterfaces/definitions/generated/JMessenger.h +26 -0
  39. generated/generated/Debug/ThunderInterfaces/definitions/generated/JMonitor.h +26 -0
  40. generated/generated/Debug/ThunderInterfaces/definitions/generated/JNetflix.h +26 -0
  41. generated/generated/Debug/ThunderInterfaces/definitions/generated/JNetworkControl.h +291 -0
  42. generated/generated/Debug/ThunderInterfaces/definitions/generated/JNetworkTools.h +126 -0
  43. generated/generated/Debug/ThunderInterfaces/definitions/generated/JOCDM.h +26 -0
  44. generated/generated/Debug/ThunderInterfaces/definitions/generated/JPackageManager.h +458 -0
  45. generated/generated/Debug/ThunderInterfaces/definitions/generated/JPackager.h +26 -0
  46. generated/generated/Debug/ThunderInterfaces/definitions/generated/JPerformanceMonitor.h +26 -0
  47. generated/generated/Debug/ThunderInterfaces/definitions/generated/JPersistentStore.h +26 -0
  48. generated/generated/Debug/ThunderInterfaces/definitions/generated/JPlayerInfo.h +26 -0
  49. generated/generated/Debug/ThunderInterfaces/definitions/generated/JPlayerProperties.h +132 -0
  50. generated/generated/Debug/ThunderInterfaces/definitions/generated/JPower.h +26 -0
  51. generated/generated/Debug/ThunderInterfaces/definitions/generated/JProvisioning.h +26 -0
  52. generated/generated/Debug/ThunderInterfaces/definitions/generated/JRemoteControl.h +26 -0
  53. generated/generated/Debug/ThunderInterfaces/definitions/generated/JScriptEngine.h +116 -0
  54. generated/generated/Debug/ThunderInterfaces/definitions/generated/JSecureShellServer.h +26 -0
  55. generated/generated/Debug/ThunderInterfaces/definitions/generated/JSecurityAgent.h +26 -0
  56. generated/generated/Debug/ThunderInterfaces/definitions/generated/JSpark.h +25 -0
  57. generated/generated/Debug/ThunderInterfaces/definitions/generated/JStateControl.h +26 -0
  58. generated/generated/Debug/ThunderInterfaces/definitions/generated/JStreamer.h +26 -0
  59. generated/generated/Debug/ThunderInterfaces/definitions/generated/JSubsystemControl.h +26 -0
  60. generated/generated/Debug/ThunderInterfaces/definitions/generated/JSystemCommands.h +26 -0
  61. generated/generated/Debug/ThunderInterfaces/definitions/generated/JTestController.h +26 -0
  62. generated/generated/Debug/ThunderInterfaces/definitions/generated/JTestUtility.h +26 -0
  63. generated/generated/Debug/ThunderInterfaces/definitions/generated/JTimeSync.h +26 -0
  64. generated/generated/Debug/ThunderInterfaces/definitions/generated/JTimeZone.h +98 -0
  65. generated/generated/Debug/ThunderInterfaces/definitions/generated/JTraceControl.h +26 -0
  66. generated/generated/Debug/ThunderInterfaces/definitions/generated/JUserSettings.h +497 -0
  67. generated/generated/Debug/ThunderInterfaces/definitions/generated/JVolumeControl.h +162 -0
  68. generated/generated/Debug/ThunderInterfaces/definitions/generated/JWatchDog.h +71 -0
  69. generated/generated/Debug/ThunderInterfaces/definitions/generated/JWebBrowser.h +371 -0
  70. generated/generated/Debug/ThunderInterfaces/definitions/generated/JWebKitBrowser.h +26 -0
  71. generated/generated/Debug/ThunderInterfaces/definitions/generated/JWifiControl.h +285 -0
  72. generated/generated/Debug/ThunderInterfaces/definitions/generated/JZigWave.h +222 -0
  73. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_AVSController.h +32 -0
  74. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_AppManager.h +364 -0
  75. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Application.h +33 -0
  76. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_BluetoothAudioSink.h +357 -0
  77. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_BluetoothControl.h +555 -0
  78. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_BluetoothRemoteControl.h +210 -0
  79. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Browser.h +121 -0
  80. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_BrowserCookieJar.h +124 -0
  81. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_BrowserResources.h +33 -0
  82. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_BrowserScripting.h +88 -0
  83. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_BrowserSecurity.h +34 -0
  84. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Butler.h +395 -0
  85. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Compositor.h +154 -0
  86. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_ConnectionProperties.h +113 -0
  87. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Containers.h +200 -0
  88. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_DHCPServer.h +211 -0
  89. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_DIALServer.h +129 -0
  90. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_DTV.h +1571 -0
  91. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_DeviceIdentification.h +58 -0
  92. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_DeviceInfo.h +1186 -0
  93. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_DisplayInfo.h +89 -0
  94. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_DisplayProperties.h +40 -0
  95. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_DolbyOutput.h +65 -0
  96. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_FirmwareControl.h +168 -0
  97. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_HDRProperties.h +34 -0
  98. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_IOConnector.h +54 -0
  99. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_IOControl.h +54 -0
  100. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_InputSwitch.h +115 -0
  101. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_LISA.h +733 -0
  102. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_LocationSync.h +62 -0
  103. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Math.h +60 -0
  104. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_MessageControl.h +134 -0
  105. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Messenger.h +230 -0
  106. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Monitor.h +389 -0
  107. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Netflix.h +93 -0
  108. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_NetworkControl.h +265 -0
  109. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_NetworkTools.h +115 -0
  110. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_OCDM.h +180 -0
  111. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_PackageManager.h +941 -0
  112. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Packager.h +58 -0
  113. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_PerformanceMonitor.h +129 -0
  114. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_PersistentStore.h +446 -0
  115. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_PlayerInfo.h +125 -0
  116. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_PlayerProperties.h +34 -0
  117. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Power.h +73 -0
  118. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Provisioning.h +112 -0
  119. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_RemoteControl.h +244 -0
  120. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_ScriptEngine.h +81 -0
  121. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_SecureShellServer.h +118 -0
  122. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_SecurityAgent.h +113 -0
  123. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_StateControl.h +67 -0
  124. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Streamer.h +324 -0
  125. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_SubsystemControl.h +82 -0
  126. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_SystemCommands.h +54 -0
  127. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_TestController.h +142 -0
  128. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_TestUtility.h +253 -0
  129. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_TimeSync.h +56 -0
  130. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_TraceControl.h +195 -0
  131. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_UserSettings.h +214 -0
  132. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_VolumeControl.h +81 -0
  133. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_WatchDog.h +55 -0
  134. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_WebBrowser.h +141 -0
  135. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_WebKitBrowser.h +112 -0
  136. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_WifiControl.h +461 -0
  137. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_ZigWave.h +86 -0
  138. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_AVSController.cpp +20 -0
  139. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_Application.cpp +49 -0
  140. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_BluetoothAudioSink.cpp +40 -0
  141. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_BluetoothControl.cpp +58 -0
  142. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_BluetoothRemoteControl.cpp +16 -0
  143. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_Browser.cpp +16 -0
  144. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_BrowserSecurity.cpp +17 -0
  145. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_Butler.cpp +47 -0
  146. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_Compositor.cpp +36 -0
  147. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_ConnectionProperties.cpp +26 -0
  148. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_DIALServer.cpp +17 -0
  149. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_DTV.cpp +201 -0
  150. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_DeviceInfo.cpp +192 -0
  151. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_DisplayInfo.cpp +25 -0
  152. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_DisplayProperties.cpp +73 -0
  153. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_DolbyOutput.cpp +32 -0
  154. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_FirmwareControl.cpp +47 -0
  155. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_HDRProperties.cpp +21 -0
  156. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_MessageControl.cpp +20 -0
  157. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_Messenger.cpp +26 -0
  158. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_Netflix.cpp +16 -0
  159. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_NetworkControl.cpp +22 -0
  160. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_OCDM.cpp +17 -0
  161. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_PersistentStore.cpp +16 -0
  162. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_PlayerInfo.cpp +45 -0
  163. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_PlayerProperties.cpp +87 -0
  164. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_Power.cpp +20 -0
  165. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_RemoteControl.cpp +20 -0
  166. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_StateControl.cpp +16 -0
  167. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_Streamer.cpp +48 -0
  168. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_SubsystemControl.cpp +29 -0
  169. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_TestUtility.cpp +19 -0
  170. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_TraceControl.cpp +17 -0
  171. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_WebBrowser.cpp +24 -0
  172. generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_WifiControl.cpp +35 -0
  173. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_BluetoothControl.h +7 -0
  174. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_BluetoothRemoteControl.h +7 -0
  175. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Browser.h +7 -0
  176. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Butler.h +7 -0
  177. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Cobalt.h +6 -0
  178. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Compositor.h +7 -0
  179. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Containers.h +7 -0
  180. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_DHCPServer.h +7 -0
  181. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_DIALServer.h +7 -0
  182. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_DTV.h +7 -0
  183. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_DeviceIdentification.h +7 -0
  184. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_DeviceInfo.h +7 -0
  185. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_DisplayInfo.h +7 -0
  186. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_FirmwareControl.h +7 -0
  187. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IAVSClient.h +7 -0
  188. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IAmazonPrime.h +6 -0
  189. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IAppManager.h +7 -0
  190. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IApplication.h +7 -0
  191. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IBluetoothAudio.h +7 -0
  192. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IBrowser.h +15 -0
  193. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_ICustomerCareOperations.h +6 -0
  194. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IDisplayInfo.h +12 -0
  195. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IDolby.h +7 -0
  196. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_ILanguageTag.h +6 -0
  197. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IMath.h +7 -0
  198. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IMessageControl.h +7 -0
  199. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_INetworkControl.h +7 -0
  200. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_INetworkTools.h +7 -0
  201. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IOConnector.h +7 -0
  202. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IOControl.h +7 -0
  203. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IPackageManager.h +7 -0
  204. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IPlayerInfo.h +7 -0
  205. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IScriptEngine.h +7 -0
  206. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_ITimeZone.h +6 -0
  207. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IUserSettings.h +7 -0
  208. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IVolumeControl.h +7 -0
  209. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IWatchDog.h +7 -0
  210. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IWifiControl.h +7 -0
  211. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IZigWave.h +7 -0
  212. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_InputSwitch.h +7 -0
  213. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_LISA.h +7 -0
  214. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_LocationSync.h +7 -0
  215. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Messenger.h +7 -0
  216. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Monitor.h +7 -0
  217. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Netflix.h +7 -0
  218. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_OCDM.h +7 -0
  219. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Packager.h +7 -0
  220. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_PerformanceMonitor.h +7 -0
  221. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_PersistentStore.h +7 -0
  222. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_PlayerInfo.h +7 -0
  223. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Power.h +7 -0
  224. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Provisioning.h +7 -0
  225. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_RemoteControl.h +7 -0
  226. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_SecureShellServer.h +7 -0
  227. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_SecurityAgent.h +7 -0
  228. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Spark.h +6 -0
  229. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_StateControl.h +7 -0
  230. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Streamer.h +7 -0
  231. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_SubsystemControl.h +7 -0
  232. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_SystemCommands.h +7 -0
  233. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_TestController.h +7 -0
  234. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_TestUtility.h +7 -0
  235. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_TimeSync.h +7 -0
  236. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_TraceControl.h +7 -0
  237. generated/generated/Debug/ThunderInterfaces/definitions/generated/json_WebKitBrowser.h +7 -0
generated/generated/Debug/ThunderInterfaces/definitions/generated/JAVSController.h ADDED
@@ -0,0 +1,111 @@
1
+ // Generated automatically from 'IAVSClient.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_AVSController.h"
6
+ #include <interfaces/IAVSClient.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JAVSController {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IAVSController* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JAVSController"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Method: 'mute' - Mutes the audio output of AVS
36
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::Boolean, void>(_T("mute"),
37
+ [_implementation__](const Core::JSON::Boolean& muted) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ if (muted.IsSet() == false) {
41
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
42
+ }
43
+ else {
44
+ const bool _muted_{muted};
45
+
46
+ _errorCode__ = _implementation__->Mute(_muted_);
47
+
48
+ }
49
+
50
+ return (_errorCode__);
51
+ });
52
+
53
+ // Method: 'record' - Starts or stops the voice recording, skipping keyword detection
54
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::Boolean, void>(_T("record"),
55
+ [_implementation__](const Core::JSON::Boolean& started) -> uint32_t {
56
+ uint32_t _errorCode__ = Core::ERROR_NONE;
57
+
58
+ if (started.IsSet() == false) {
59
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
60
+ }
61
+ else {
62
+ const bool _started_{started};
63
+
64
+ _errorCode__ = _implementation__->Record(_started_);
65
+
66
+ }
67
+
68
+ return (_errorCode__);
69
+ });
70
+
71
+ }
72
+
73
+ template<typename MODULE>
74
+ static void Unregister(MODULE& _module__)
75
+ {
76
+ // Unregister methods and properties...
77
+ _module__.PluginHost::JSONRPC::Unregister(_T("mute"));
78
+ _module__.PluginHost::JSONRPC::Unregister(_T("record"));
79
+ }
80
+
81
+ namespace Event {
82
+
83
+ // Event: 'dialoguestatechange' - notifies about dialogue state changes
84
+ template<typename MODULE>
85
+ static void DialogueStateChange(const MODULE& module_, const Core::JSON::EnumType<Exchange::IAVSController::INotification::dialoguestate>& state, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
86
+ {
87
+ module_.Notify(_T("dialoguestatechange"), state, sendIfMethod_);
88
+ }
89
+
90
+ // Event: 'dialoguestatechange' - notifies about dialogue state changes
91
+ template<typename MODULE>
92
+ static void DialogueStateChange(const MODULE& module_, const IAVSController::INotification::dialoguestate state, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
93
+ {
94
+ Core::JSON::EnumType<Exchange::IAVSController::INotification::dialoguestate> params_;
95
+ params_ = state;
96
+
97
+ DialogueStateChange(module_, params_, sendIfMethod_);
98
+ }
99
+
100
+ } // namespace Event
101
+
102
+ POP_WARNING()
103
+ POP_WARNING()
104
+ POP_WARNING()
105
+
106
+ } // namespace JAVSController
107
+
108
+ } // namespace Exchange
109
+
110
+ } // namespace WPEFramework
111
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JAmazonPrime.h ADDED
@@ -0,0 +1,91 @@
1
+ // Generated automatically from 'IAmazonPrime.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include <interfaces/IAmazonPrime.h>
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JAmazonPrime {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
22
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
23
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
24
+
25
+ template<typename MODULE>
26
+ static void Register(MODULE& _module__, IAmazonPrime* _implementation__)
27
+ {
28
+ ASSERT(_implementation__ != nullptr);
29
+
30
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JAmazonPrime"), Version::Major, Version::Minor, Version::Patch);
31
+
32
+ // Register methods and properties...
33
+
34
+ // Method: 'send' - Send a message over the message bus to ignition
35
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::String, void>(_T("send"),
36
+ [_implementation__](const Core::JSON::String& message) -> uint32_t {
37
+ uint32_t _errorCode__ = Core::ERROR_NONE;
38
+
39
+ if (message.IsSet() == false) {
40
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
41
+ }
42
+ else {
43
+ const string _message_{message};
44
+
45
+ _errorCode__ = _implementation__->Send(_message_);
46
+
47
+ }
48
+
49
+ return (_errorCode__);
50
+ });
51
+
52
+ }
53
+
54
+ template<typename MODULE>
55
+ static void Unregister(MODULE& _module__)
56
+ {
57
+ // Unregister methods and properties...
58
+ _module__.PluginHost::JSONRPC::Unregister(_T("send"));
59
+ }
60
+
61
+ namespace Event {
62
+
63
+ // Event: 'receive' - Receive a message from the generic message bus
64
+ template<typename MODULE>
65
+ static void Receive(const MODULE& module_, const Core::JSON::String& message, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
66
+ {
67
+ module_.Notify(_T("receive"), message, sendIfMethod_);
68
+ }
69
+
70
+ // Event: 'receive' - Receive a message from the generic message bus
71
+ template<typename MODULE>
72
+ static void Receive(const MODULE& module_, const string& message, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
73
+ {
74
+ Core::JSON::String params_;
75
+ params_ = message;
76
+
77
+ Receive(module_, params_, sendIfMethod_);
78
+ }
79
+
80
+ } // namespace Event
81
+
82
+ POP_WARNING()
83
+ POP_WARNING()
84
+ POP_WARNING()
85
+
86
+ } // namespace JAmazonPrime
87
+
88
+ } // namespace Exchange
89
+
90
+ } // namespace WPEFramework
91
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JAppManager.h ADDED
@@ -0,0 +1,580 @@
1
+ // Generated automatically from 'IAppManager.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_AppManager.h"
6
+ #include <interfaces/IAppManager.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JAppManager {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IAppManager* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JAppManager"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Method: 'getLaunchableApps'
36
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::ArrayType<Core::JSON::String>>(_T("getLaunchableApps"),
37
+ [_implementation__](Core::JSON::ArrayType<Core::JSON::String>& result) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ ::WPEFramework::RPC::IIteratorType<string, ::WPEFramework::RPC::ID_STRINGITERATOR>* _result_{};
41
+
42
+ _errorCode__ = _implementation__->GetLaunchableApps(_result_);
43
+
44
+ if (_errorCode__ == Core::ERROR_NONE) {
45
+ result.Set(true);
46
+
47
+ if (_result_ != nullptr) {
48
+ string _resultItem__{};
49
+ while (_result_->Next(_resultItem__) == true) { result.Add() = _resultItem__; }
50
+ _result_->Release();
51
+ }
52
+ }
53
+
54
+ return (_errorCode__);
55
+ });
56
+
57
+ // Method: 'getLoadedApps'
58
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::ArrayType<Core::JSON::String>>(_T("getLoadedApps"),
59
+ [_implementation__](Core::JSON::ArrayType<Core::JSON::String>& result) -> uint32_t {
60
+ uint32_t _errorCode__ = Core::ERROR_NONE;
61
+
62
+ ::WPEFramework::RPC::IIteratorType<string, ::WPEFramework::RPC::ID_STRINGITERATOR>* _result_{};
63
+
64
+ _errorCode__ = _implementation__->GetLoadedApps(_result_);
65
+
66
+ if (_errorCode__ == Core::ERROR_NONE) {
67
+ result.Set(true);
68
+
69
+ if (_result_ != nullptr) {
70
+ string _resultItem__{};
71
+ while (_result_->Next(_resultItem__) == true) { result.Add() = _resultItem__; }
72
+ _result_->Release();
73
+ }
74
+ }
75
+
76
+ return (_errorCode__);
77
+ });
78
+
79
+ // Method: 'launchApp'
80
+ _module__.PluginHost::JSONRPC::Register<JsonData::AppManager::LaunchAppParamsInfo, void>(_T("launchApp"),
81
+ [_implementation__](const JsonData::AppManager::LaunchAppParamsInfo& params) -> uint32_t {
82
+ uint32_t _errorCode__ = Core::ERROR_NONE;
83
+
84
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
85
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
86
+ }
87
+ else {
88
+ const string _appId_{params.AppId};
89
+ const string _intent_{params.Intent};
90
+ const string _launchArgs_{params.LaunchArgs};
91
+
92
+ _errorCode__ = _implementation__->LaunchApp(_appId_, _intent_, _launchArgs_);
93
+
94
+ }
95
+
96
+ return (_errorCode__);
97
+ });
98
+
99
+ // Method: 'loadApp'
100
+ _module__.PluginHost::JSONRPC::Register<JsonData::AppManager::LaunchAppParamsInfo, void>(_T("loadApp"),
101
+ [_implementation__](const JsonData::AppManager::LaunchAppParamsInfo& params) -> uint32_t {
102
+ uint32_t _errorCode__ = Core::ERROR_NONE;
103
+
104
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
105
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
106
+ }
107
+ else {
108
+ const string _appId_{params.AppId};
109
+ const string _intent_{params.Intent};
110
+ const string _launchArgs_{params.LaunchArgs};
111
+
112
+ _errorCode__ = _implementation__->LoadApp(_appId_, _intent_, _launchArgs_);
113
+
114
+ }
115
+
116
+ return (_errorCode__);
117
+ });
118
+
119
+ // Method: 'prepareApp'
120
+ _module__.PluginHost::JSONRPC::Register<JsonData::AppManager::PrepareAppParamsInfo, void>(_T("prepareApp"),
121
+ [_implementation__](const JsonData::AppManager::PrepareAppParamsInfo& params) -> uint32_t {
122
+ uint32_t _errorCode__ = Core::ERROR_NONE;
123
+
124
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
125
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
126
+ }
127
+ else {
128
+ const string _appId_{params.AppId};
129
+
130
+ _errorCode__ = _implementation__->PrepareApp(_appId_);
131
+
132
+ }
133
+
134
+ return (_errorCode__);
135
+ });
136
+
137
+ // Method: 'sendMessage'
138
+ _module__.PluginHost::JSONRPC::Register<JsonData::AppManager::SendMessageParamsData, void>(_T("sendMessage"),
139
+ [_implementation__](const JsonData::AppManager::SendMessageParamsData& params) -> uint32_t {
140
+ uint32_t _errorCode__ = Core::ERROR_NONE;
141
+
142
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
143
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
144
+ }
145
+ else {
146
+ const string _appId_{params.AppId};
147
+ const string _messagae_{params.Messagae};
148
+
149
+ _errorCode__ = _implementation__->SendMessage(_appId_, _messagae_);
150
+
151
+ }
152
+
153
+ return (_errorCode__);
154
+ });
155
+
156
+ // Method: 'closeApp'
157
+ _module__.PluginHost::JSONRPC::Register<JsonData::AppManager::PrepareAppParamsInfo, void>(_T("closeApp"),
158
+ [_implementation__](const JsonData::AppManager::PrepareAppParamsInfo& params) -> uint32_t {
159
+ uint32_t _errorCode__ = Core::ERROR_NONE;
160
+
161
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
162
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
163
+ }
164
+ else {
165
+ const string _appId_{params.AppId};
166
+
167
+ _errorCode__ = _implementation__->CloseApp(_appId_);
168
+
169
+ }
170
+
171
+ return (_errorCode__);
172
+ });
173
+
174
+ // Method: 'terminateApp'
175
+ _module__.PluginHost::JSONRPC::Register<JsonData::AppManager::PrepareAppParamsInfo, void>(_T("terminateApp"),
176
+ [_implementation__](const JsonData::AppManager::PrepareAppParamsInfo& params) -> uint32_t {
177
+ uint32_t _errorCode__ = Core::ERROR_NONE;
178
+
179
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
180
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
181
+ }
182
+ else {
183
+ const string _appId_{params.AppId};
184
+
185
+ _errorCode__ = _implementation__->TerminateApp(_appId_);
186
+
187
+ }
188
+
189
+ return (_errorCode__);
190
+ });
191
+
192
+ // Method: 'clearAppData'
193
+ _module__.PluginHost::JSONRPC::Register<JsonData::AppManager::PrepareAppParamsInfo, void>(_T("clearAppData"),
194
+ [_implementation__](const JsonData::AppManager::PrepareAppParamsInfo& params) -> uint32_t {
195
+ uint32_t _errorCode__ = Core::ERROR_NONE;
196
+
197
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
198
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
199
+ }
200
+ else {
201
+ const string _appId_{params.AppId};
202
+
203
+ _errorCode__ = _implementation__->ClearAppData(_appId_);
204
+
205
+ }
206
+
207
+ return (_errorCode__);
208
+ });
209
+
210
+ // Method: 'setAppFocus'
211
+ _module__.PluginHost::JSONRPC::Register<JsonData::AppManager::PrepareAppParamsInfo, void>(_T("setAppFocus"),
212
+ [_implementation__](const JsonData::AppManager::PrepareAppParamsInfo& params) -> uint32_t {
213
+ uint32_t _errorCode__ = Core::ERROR_NONE;
214
+
215
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
216
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
217
+ }
218
+ else {
219
+ const string _appId_{params.AppId};
220
+
221
+ _errorCode__ = _implementation__->SetAppFocus(_appId_);
222
+
223
+ }
224
+
225
+ return (_errorCode__);
226
+ });
227
+
228
+ // Method: 'getAppMetaData'
229
+ _module__.PluginHost::JSONRPC::Register<JsonData::AppManager::GetAppMetaInfoParamsInfo, void>(_T("getAppMetaData"),
230
+ [_implementation__](const JsonData::AppManager::GetAppMetaInfoParamsInfo& params) -> uint32_t {
231
+ uint32_t _errorCode__ = Core::ERROR_NONE;
232
+
233
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
234
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
235
+ }
236
+ else {
237
+ const string _appId_{params.AppId};
238
+ const string _key_{params.Key};
239
+
240
+ _errorCode__ = _implementation__->GetAppMetaData(_appId_, _key_);
241
+
242
+ }
243
+
244
+ return (_errorCode__);
245
+ });
246
+
247
+ // Method: 'getAppProperty'
248
+ _module__.PluginHost::JSONRPC::Register<JsonData::AppManager::GetAppMetaInfoParamsInfo, void>(_T("getAppProperty"),
249
+ [_implementation__](const JsonData::AppManager::GetAppMetaInfoParamsInfo& params) -> uint32_t {
250
+ uint32_t _errorCode__ = Core::ERROR_NONE;
251
+
252
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
253
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
254
+ }
255
+ else {
256
+ const string _appId_{params.AppId};
257
+ const string _key_{params.Key};
258
+
259
+ _errorCode__ = _implementation__->GetAppProperty(_appId_, _key_);
260
+
261
+ }
262
+
263
+ return (_errorCode__);
264
+ });
265
+
266
+ // Method: 'setAppProperty'
267
+ _module__.PluginHost::JSONRPC::Register<JsonData::AppManager::SetAppPropertyParamsData, void>(_T("setAppProperty"),
268
+ [_implementation__](const JsonData::AppManager::SetAppPropertyParamsData& params) -> uint32_t {
269
+ uint32_t _errorCode__ = Core::ERROR_NONE;
270
+
271
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
272
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
273
+ }
274
+ else {
275
+ const string _appId_{params.AppId};
276
+ const string _key_{params.Key};
277
+ const string _value_{params.Value};
278
+
279
+ _errorCode__ = _implementation__->SetAppProperty(_appId_, _key_, _value_);
280
+
281
+ }
282
+
283
+ return (_errorCode__);
284
+ });
285
+
286
+ // Property: 'setMaxInactiveApps' (w/o)
287
+ _module__.PluginHost::JSONRPC::Register<JsonData::AppManager::SetMaxInactiveAppsData, void>(_T("setMaxInactiveApps"),
288
+ [_implementation__](const JsonData::AppManager::SetMaxInactiveAppsData& params) -> uint32_t {
289
+ uint32_t _errorCode__ = Core::ERROR_NONE;
290
+
291
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
292
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
293
+ }
294
+ else {
295
+ const uint32_t _maxInteractiveApps_{params.MaxInteractiveApps};
296
+
297
+ _errorCode__ = _implementation__->SetMaxInactiveApps(_maxInteractiveApps_);
298
+
299
+ }
300
+
301
+ return (_errorCode__);
302
+ });
303
+
304
+ // Property: 'getMaxInactiveApps' (r/o)
305
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::DecUInt32>(_T("getMaxInactiveApps"),
306
+ [_implementation__](Core::JSON::DecUInt32& result) -> uint32_t {
307
+ uint32_t _errorCode__ = Core::ERROR_NONE;
308
+
309
+ uint32_t _result_{};
310
+
311
+ _errorCode__ = _implementation__->GetMaxInactiveApps(_result_);
312
+
313
+ if (_errorCode__ == Core::ERROR_NONE) {
314
+ result = _result_;
315
+ }
316
+
317
+ return (_errorCode__);
318
+ });
319
+
320
+ // Property: 'setMaxHibernatedApps' (w/o)
321
+ _module__.PluginHost::JSONRPC::Register<JsonData::AppManager::SetMaxHibernatedAppsData, void>(_T("setMaxHibernatedApps"),
322
+ [_implementation__](const JsonData::AppManager::SetMaxHibernatedAppsData& params) -> uint32_t {
323
+ uint32_t _errorCode__ = Core::ERROR_NONE;
324
+
325
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
326
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
327
+ }
328
+ else {
329
+ const uint32_t _maxHibernatedApps_{params.MaxHibernatedApps};
330
+
331
+ _errorCode__ = _implementation__->SetMaxHibernatedApps(_maxHibernatedApps_);
332
+
333
+ }
334
+
335
+ return (_errorCode__);
336
+ });
337
+
338
+ // Property: 'getMaxHibernatedApps' (r/o)
339
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::DecUInt32>(_T("getMaxHibernatedApps"),
340
+ [_implementation__](Core::JSON::DecUInt32& result) -> uint32_t {
341
+ uint32_t _errorCode__ = Core::ERROR_NONE;
342
+
343
+ uint32_t _result_{};
344
+
345
+ _errorCode__ = _implementation__->GetMaxHibernatedApps(_result_);
346
+
347
+ if (_errorCode__ == Core::ERROR_NONE) {
348
+ result = _result_;
349
+ }
350
+
351
+ return (_errorCode__);
352
+ });
353
+
354
+ // Property: 'setMaxHibernatedFlashUsage' (w/o)
355
+ _module__.PluginHost::JSONRPC::Register<JsonData::AppManager::SetMaxHibernatedFlashUsageData, void>(_T("setMaxHibernatedFlashUsage"),
356
+ [_implementation__](const JsonData::AppManager::SetMaxHibernatedFlashUsageData& params) -> uint32_t {
357
+ uint32_t _errorCode__ = Core::ERROR_NONE;
358
+
359
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
360
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
361
+ }
362
+ else {
363
+ const uint32_t _maxHibernatedFlashUsage_{params.MaxHibernatedFlashUsage};
364
+
365
+ _errorCode__ = _implementation__->SetMaxHibernatedFlashUsage(_maxHibernatedFlashUsage_);
366
+
367
+ }
368
+
369
+ return (_errorCode__);
370
+ });
371
+
372
+ // Property: 'getMaxHibernatedFlashUsage' (r/o)
373
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::DecUInt32>(_T("getMaxHibernatedFlashUsage"),
374
+ [_implementation__](Core::JSON::DecUInt32& result) -> uint32_t {
375
+ uint32_t _errorCode__ = Core::ERROR_NONE;
376
+
377
+ uint32_t _result_{};
378
+
379
+ _errorCode__ = _implementation__->GetMaxHibernatedFlashUsage(_result_);
380
+
381
+ if (_errorCode__ == Core::ERROR_NONE) {
382
+ result = _result_;
383
+ }
384
+
385
+ return (_errorCode__);
386
+ });
387
+
388
+ // Property: 'setMaxInactiveRamUsage' (w/o)
389
+ _module__.PluginHost::JSONRPC::Register<JsonData::AppManager::SetMaxInactiveRamUsageData, void>(_T("setMaxInactiveRamUsage"),
390
+ [_implementation__](const JsonData::AppManager::SetMaxInactiveRamUsageData& params) -> uint32_t {
391
+ uint32_t _errorCode__ = Core::ERROR_NONE;
392
+
393
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
394
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
395
+ }
396
+ else {
397
+ const uint32_t _maxInactiveRamUsage_{params.MaxInactiveRamUsage};
398
+
399
+ _errorCode__ = _implementation__->SetMaxInactiveRamUsage(_maxInactiveRamUsage_);
400
+
401
+ }
402
+
403
+ return (_errorCode__);
404
+ });
405
+
406
+ // Property: 'getMaxInactiveRamUsage' (r/o)
407
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::DecUInt32>(_T("getMaxInactiveRamUsage"),
408
+ [_implementation__](Core::JSON::DecUInt32& result) -> uint32_t {
409
+ uint32_t _errorCode__ = Core::ERROR_NONE;
410
+
411
+ uint32_t _result_{};
412
+
413
+ _errorCode__ = _implementation__->GetMaxInactiveRamUsage(_result_);
414
+
415
+ if (_errorCode__ == Core::ERROR_NONE) {
416
+ result = _result_;
417
+ }
418
+
419
+ return (_errorCode__);
420
+ });
421
+
422
+ }
423
+
424
+ template<typename MODULE>
425
+ static void Unregister(MODULE& _module__)
426
+ {
427
+ // Unregister methods and properties...
428
+ _module__.PluginHost::JSONRPC::Unregister(_T("getLaunchableApps"));
429
+ _module__.PluginHost::JSONRPC::Unregister(_T("getLoadedApps"));
430
+ _module__.PluginHost::JSONRPC::Unregister(_T("launchApp"));
431
+ _module__.PluginHost::JSONRPC::Unregister(_T("loadApp"));
432
+ _module__.PluginHost::JSONRPC::Unregister(_T("prepareApp"));
433
+ _module__.PluginHost::JSONRPC::Unregister(_T("sendMessage"));
434
+ _module__.PluginHost::JSONRPC::Unregister(_T("closeApp"));
435
+ _module__.PluginHost::JSONRPC::Unregister(_T("terminateApp"));
436
+ _module__.PluginHost::JSONRPC::Unregister(_T("clearAppData"));
437
+ _module__.PluginHost::JSONRPC::Unregister(_T("setAppFocus"));
438
+ _module__.PluginHost::JSONRPC::Unregister(_T("getAppMetaData"));
439
+ _module__.PluginHost::JSONRPC::Unregister(_T("getAppProperty"));
440
+ _module__.PluginHost::JSONRPC::Unregister(_T("setAppProperty"));
441
+ _module__.PluginHost::JSONRPC::Unregister(_T("setMaxInactiveApps"));
442
+ _module__.PluginHost::JSONRPC::Unregister(_T("getMaxInactiveApps"));
443
+ _module__.PluginHost::JSONRPC::Unregister(_T("setMaxHibernatedApps"));
444
+ _module__.PluginHost::JSONRPC::Unregister(_T("getMaxHibernatedApps"));
445
+ _module__.PluginHost::JSONRPC::Unregister(_T("setMaxHibernatedFlashUsage"));
446
+ _module__.PluginHost::JSONRPC::Unregister(_T("getMaxHibernatedFlashUsage"));
447
+ _module__.PluginHost::JSONRPC::Unregister(_T("setMaxInactiveRamUsage"));
448
+ _module__.PluginHost::JSONRPC::Unregister(_T("getMaxInactiveRamUsage"));
449
+ }
450
+
451
+ namespace Event {
452
+
453
+ // Event: 'onAppInstalled' - Triggered when a new launchable app is installed for the first time or a different version is installed
454
+ template<typename MODULE>
455
+ static void OnAppInstalled(const MODULE& module_, const JsonData::AppManager::OnAppInstalledParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
456
+ {
457
+ module_.Notify(_T("onAppInstalled"), params, sendIfMethod_);
458
+ }
459
+
460
+ // Event: 'onAppInstalled' - Triggered when a new launchable app is installed for the first time or a different version is installed
461
+ template<typename MODULE>
462
+ static void OnAppInstalled(const MODULE& module_, const Core::JSON::String& appId, const Core::JSON::String& version, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
463
+ {
464
+ JsonData::AppManager::OnAppInstalledParamsData params_;
465
+ params_.AppId = appId;
466
+ params_.Version = version;
467
+
468
+ OnAppInstalled(module_, params_, sendIfMethod_);
469
+ }
470
+
471
+ // Event: 'onAppInstalled' - Triggered when a new launchable app is installed for the first time or a different version is installed
472
+ template<typename MODULE>
473
+ static void OnAppInstalled(const MODULE& module_, const string& appId, const string& version, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
474
+ {
475
+ JsonData::AppManager::OnAppInstalledParamsData params_;
476
+ params_.AppId = appId;
477
+ params_.Version = version;
478
+
479
+ OnAppInstalled(module_, params_, sendIfMethod_);
480
+ }
481
+
482
+ // Event: 'onAppUninstalled' - Triggered when a launchable app has been uninstalled
483
+ template<typename MODULE>
484
+ static void OnAppUninstalled(const MODULE& module_, const JsonData::AppManager::PrepareAppParamsInfo& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
485
+ {
486
+ module_.Notify(_T("onAppUninstalled"), params, sendIfMethod_);
487
+ }
488
+
489
+ // Event: 'onAppUninstalled' - Triggered when a launchable app has been uninstalled
490
+ template<typename MODULE>
491
+ static void OnAppUninstalled(const MODULE& module_, const Core::JSON::String& appId, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
492
+ {
493
+ JsonData::AppManager::PrepareAppParamsInfo params_;
494
+ params_.AppId = appId;
495
+
496
+ OnAppUninstalled(module_, params_, sendIfMethod_);
497
+ }
498
+
499
+ // Event: 'onAppUninstalled' - Triggered when a launchable app has been uninstalled
500
+ template<typename MODULE>
501
+ static void OnAppUninstalled(const MODULE& module_, const string& appId, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
502
+ {
503
+ JsonData::AppManager::PrepareAppParamsInfo params_;
504
+ params_.AppId = appId;
505
+
506
+ OnAppUninstalled(module_, params_, sendIfMethod_);
507
+ }
508
+
509
+ // Event: 'onAppStateChanged' - Triggered whenever there is a change in the lifecycle state of a running app
510
+ template<typename MODULE>
511
+ static void OnAppStateChanged(const MODULE& module_, const JsonData::AppManager::OnAppStateChangedParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
512
+ {
513
+ module_.Notify(_T("onAppStateChanged"), params, sendIfMethod_);
514
+ }
515
+
516
+ // Event: 'onAppStateChanged' - Triggered whenever there is a change in the lifecycle state of a running app
517
+ template<typename MODULE>
518
+ static void OnAppStateChanged(const MODULE& module_, const Core::JSON::String& appId, const Core::JSON::String& state, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
519
+ {
520
+ JsonData::AppManager::OnAppStateChangedParamsData params_;
521
+ params_.AppId = appId;
522
+ params_.State = state;
523
+
524
+ OnAppStateChanged(module_, params_, sendIfMethod_);
525
+ }
526
+
527
+ // Event: 'onAppStateChanged' - Triggered whenever there is a change in the lifecycle state of a running app
528
+ template<typename MODULE>
529
+ static void OnAppStateChanged(const MODULE& module_, const string& appId, const string& state, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
530
+ {
531
+ JsonData::AppManager::OnAppStateChangedParamsData params_;
532
+ params_.AppId = appId;
533
+ params_.State = state;
534
+
535
+ OnAppStateChanged(module_, params_, sendIfMethod_);
536
+ }
537
+
538
+ // Event: 'onAppLaunchRequest' - This event is a stop-gap and expected to be deprecated in the future
539
+ template<typename MODULE>
540
+ static void OnAppLaunchRequest(const MODULE& module_, const JsonData::AppManager::OnAppLaunchRequestParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
541
+ {
542
+ module_.Notify(_T("onAppLaunchRequest"), params, sendIfMethod_);
543
+ }
544
+
545
+ // Event: 'onAppLaunchRequest' - This event is a stop-gap and expected to be deprecated in the future
546
+ template<typename MODULE>
547
+ static void OnAppLaunchRequest(const MODULE& module_, const Core::JSON::String& appId, const Core::JSON::String& intent, const Core::JSON::String& source, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
548
+ {
549
+ JsonData::AppManager::OnAppLaunchRequestParamsData params_;
550
+ params_.AppId = appId;
551
+ params_.Intent = intent;
552
+ params_.Source = source;
553
+
554
+ OnAppLaunchRequest(module_, params_, sendIfMethod_);
555
+ }
556
+
557
+ // Event: 'onAppLaunchRequest' - This event is a stop-gap and expected to be deprecated in the future
558
+ template<typename MODULE>
559
+ static void OnAppLaunchRequest(const MODULE& module_, const string& appId, const string& intent, const string& source, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
560
+ {
561
+ JsonData::AppManager::OnAppLaunchRequestParamsData params_;
562
+ params_.AppId = appId;
563
+ params_.Intent = intent;
564
+ params_.Source = source;
565
+
566
+ OnAppLaunchRequest(module_, params_, sendIfMethod_);
567
+ }
568
+
569
+ } // namespace Event
570
+
571
+ POP_WARNING()
572
+ POP_WARNING()
573
+ POP_WARNING()
574
+
575
+ } // namespace JAppManager
576
+
577
+ } // namespace Exchange
578
+
579
+ } // namespace WPEFramework
580
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JApplication.h ADDED
@@ -0,0 +1,206 @@
1
+ // Generated automatically from 'IApplication.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_Application.h"
6
+ #include <interfaces/IApplication.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JApplication {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IApplication* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JApplication"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Method: 'reset' - Resets application data
36
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::EnumType<Exchange::IApplication::resettype>, void>(_T("reset"),
37
+ [_implementation__](const Core::JSON::EnumType<Exchange::IApplication::resettype>& type) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ if (type.IsSet() == false) {
41
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
42
+ }
43
+ else {
44
+ const Exchange::IApplication::resettype _type_{type};
45
+
46
+ _errorCode__ = _implementation__->Reset(_type_);
47
+
48
+ }
49
+
50
+ return (_errorCode__);
51
+ });
52
+
53
+ // Property: 'identifier' - Application-specific identification string (r/o)
54
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::String>(_T("identifier"),
55
+ [_implementation__](Core::JSON::String& result) -> uint32_t {
56
+ uint32_t _errorCode__ = Core::ERROR_NONE;
57
+
58
+ string _result_{};
59
+
60
+ _errorCode__ = _implementation__->Identifier(_result_);
61
+
62
+ if (_errorCode__ == Core::ERROR_NONE) {
63
+ result = _result_;
64
+ }
65
+
66
+ return (_errorCode__);
67
+ });
68
+
69
+ // Property: 'contentlink' - URI of the associated application-specific content (w/o)
70
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::String, void>(_T("contentlink"),
71
+ [_implementation__](const Core::JSON::String& params) -> uint32_t {
72
+ uint32_t _errorCode__ = Core::ERROR_NONE;
73
+
74
+ if (params.IsSet() == false) {
75
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
76
+ }
77
+ else {
78
+ const string _params_{params};
79
+
80
+ _errorCode__ = _implementation__->ContentLink(_params_);
81
+
82
+ }
83
+
84
+ return (_errorCode__);
85
+ });
86
+
87
+ // Property: 'launchpoint' - Application launching point
88
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::EnumType<Exchange::IApplication::launchpointtype>, Core::JSON::EnumType<Exchange::IApplication::launchpointtype>>(_T("launchpoint"),
89
+ [_implementation__](const Core::JSON::EnumType<Exchange::IApplication::launchpointtype>& params, Core::JSON::EnumType<Exchange::IApplication::launchpointtype>& result) -> uint32_t {
90
+ uint32_t _errorCode__ = Core::ERROR_NONE;
91
+
92
+ if (params.IsSet() == false) {
93
+ Exchange::IApplication::launchpointtype _result_{};
94
+
95
+ _errorCode__ = (static_cast<const IApplication*>(_implementation__))->LaunchPoint(_result_);
96
+
97
+ if (_errorCode__ == Core::ERROR_NONE) {
98
+ result = _result_;
99
+ }
100
+ }
101
+ else {
102
+ const Exchange::IApplication::launchpointtype _params_{params};
103
+
104
+ _errorCode__ = _implementation__->LaunchPoint(_params_);
105
+
106
+ result.Null(true);
107
+ }
108
+
109
+ return (_errorCode__);
110
+ });
111
+
112
+ // Property: 'visible' - Current application visibility
113
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::Boolean, Core::JSON::Boolean>(_T("visible"),
114
+ [_implementation__](const Core::JSON::Boolean& params, Core::JSON::Boolean& result) -> uint32_t {
115
+ uint32_t _errorCode__ = Core::ERROR_NONE;
116
+
117
+ if (params.IsSet() == false) {
118
+ bool _result_{};
119
+
120
+ _errorCode__ = (static_cast<const IApplication*>(_implementation__))->Visible(_result_);
121
+
122
+ if (_errorCode__ == Core::ERROR_NONE) {
123
+ result = _result_;
124
+ }
125
+ }
126
+ else {
127
+ const bool _params_{params};
128
+
129
+ _errorCode__ = _implementation__->Visible(_params_);
130
+
131
+ result.Null(true);
132
+ }
133
+
134
+ return (_errorCode__);
135
+ });
136
+
137
+ // Property: 'language' - Current application user interface language
138
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::String, Core::JSON::String>(_T("language"),
139
+ [_implementation__](const Core::JSON::String& params, Core::JSON::String& result) -> uint32_t {
140
+ uint32_t _errorCode__ = Core::ERROR_NONE;
141
+
142
+ if (params.IsSet() == false) {
143
+ string _result_{};
144
+
145
+ _errorCode__ = (static_cast<const IApplication*>(_implementation__))->Language(_result_);
146
+
147
+ if (_errorCode__ == Core::ERROR_NONE) {
148
+ result = _result_;
149
+ }
150
+ }
151
+ else {
152
+ const string _params_{params};
153
+
154
+ _errorCode__ = _implementation__->Language(_params_);
155
+
156
+ result.Null(true);
157
+ }
158
+
159
+ return (_errorCode__);
160
+ });
161
+
162
+ }
163
+
164
+ template<typename MODULE>
165
+ static void Unregister(MODULE& _module__)
166
+ {
167
+ // Unregister methods and properties...
168
+ _module__.PluginHost::JSONRPC::Unregister(_T("reset"));
169
+ _module__.PluginHost::JSONRPC::Unregister(_T("identifier"));
170
+ _module__.PluginHost::JSONRPC::Unregister(_T("contentlink"));
171
+ _module__.PluginHost::JSONRPC::Unregister(_T("launchpoint"));
172
+ _module__.PluginHost::JSONRPC::Unregister(_T("visible"));
173
+ _module__.PluginHost::JSONRPC::Unregister(_T("language"));
174
+ }
175
+
176
+ namespace Event {
177
+
178
+ // Event: 'visibilitychange' - Application visibility changes
179
+ template<typename MODULE>
180
+ static void VisibilityChange(const MODULE& module_, const Core::JSON::Boolean& hidden, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
181
+ {
182
+ module_.Notify(_T("visibilitychange"), hidden, sendIfMethod_);
183
+ }
184
+
185
+ // Event: 'visibilitychange' - Application visibility changes
186
+ template<typename MODULE>
187
+ static void VisibilityChange(const MODULE& module_, const bool hidden, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
188
+ {
189
+ Core::JSON::Boolean params_;
190
+ params_ = hidden;
191
+
192
+ VisibilityChange(module_, params_, sendIfMethod_);
193
+ }
194
+
195
+ } // namespace Event
196
+
197
+ POP_WARNING()
198
+ POP_WARNING()
199
+ POP_WARNING()
200
+
201
+ } // namespace JApplication
202
+
203
+ } // namespace Exchange
204
+
205
+ } // namespace WPEFramework
206
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JBluetoothAudioSink.h ADDED
@@ -0,0 +1,260 @@
1
+ // Generated automatically from 'IBluetoothAudio.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_BluetoothAudioSink.h"
6
+ #include <interfaces/IBluetoothAudio.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JBluetoothAudioSink {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IBluetoothAudioSink* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JBluetoothAudioSink"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Method: 'assign' - Assigns a Bluetooth device for audio playback
36
+ _module__.PluginHost::JSONRPC::Register<JsonData::BluetoothAudioSink::AssignParamsData, void>(_T("assign"),
37
+ [_implementation__](const JsonData::BluetoothAudioSink::AssignParamsData& params) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
41
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
42
+ }
43
+ else {
44
+ const string _address_{params.Address};
45
+
46
+ _errorCode__ = _implementation__->Assign(_address_);
47
+
48
+ }
49
+
50
+ return (_errorCode__);
51
+ });
52
+
53
+ // Method: 'revoke' - Revokes a Bluetooth device from audio playback
54
+ _module__.PluginHost::JSONRPC::Register<void, void>(_T("revoke"),
55
+ [_implementation__]() -> uint32_t {
56
+ uint32_t _errorCode__ = Core::ERROR_NONE;
57
+
58
+ _errorCode__ = _implementation__->Revoke();
59
+
60
+ return (_errorCode__);
61
+ });
62
+
63
+ // Property: 'latency' - Sink audio latency
64
+ _module__.PluginHost::JSONRPC::Register<JsonData::BluetoothAudioSink::LatencyData, Core::JSON::DecSInt16>(_T("latency"),
65
+ [_implementation__](const JsonData::BluetoothAudioSink::LatencyData& params, Core::JSON::DecSInt16& result) -> uint32_t {
66
+ uint32_t _errorCode__ = Core::ERROR_NONE;
67
+
68
+ if (params.IsSet() == false) {
69
+ int16_t _result_{};
70
+
71
+ _errorCode__ = (static_cast<const IBluetoothAudioSink*>(_implementation__))->Latency(_result_);
72
+
73
+ if (_errorCode__ == Core::ERROR_NONE) {
74
+ result = _result_;
75
+ }
76
+ }
77
+ else {
78
+
79
+ if (params.IsDataValid() == false) {
80
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
81
+ }
82
+ else {
83
+ const int16_t _value_{params.Value};
84
+
85
+ _errorCode__ = _implementation__->Latency(_value_);
86
+
87
+ }
88
+
89
+ result.Null(true);
90
+ }
91
+
92
+ return (_errorCode__);
93
+ });
94
+
95
+ // Property: 'state' - Current audio sink state (r/o)
96
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::EnumType<Exchange::IBluetoothAudioSink::state>>(_T("state"),
97
+ [_implementation__](Core::JSON::EnumType<Exchange::IBluetoothAudioSink::state>& result) -> uint32_t {
98
+ uint32_t _errorCode__ = Core::ERROR_NONE;
99
+
100
+ Exchange::IBluetoothAudioSink::state _result_{};
101
+
102
+ _errorCode__ = _implementation__->State(_result_);
103
+
104
+ if (_errorCode__ == Core::ERROR_NONE) {
105
+ result = _result_;
106
+ }
107
+
108
+ return (_errorCode__);
109
+ });
110
+
111
+ // Property: 'type' - Audio sink type (r/o)
112
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::EnumType<Exchange::IBluetoothAudioSink::devicetype>>(_T("type"),
113
+ [_implementation__](Core::JSON::EnumType<Exchange::IBluetoothAudioSink::devicetype>& result) -> uint32_t {
114
+ uint32_t _errorCode__ = Core::ERROR_NONE;
115
+
116
+ Exchange::IBluetoothAudioSink::devicetype _result_{};
117
+
118
+ _errorCode__ = _implementation__->Type(_result_);
119
+
120
+ if (_errorCode__ == Core::ERROR_NONE) {
121
+ result = _result_;
122
+ }
123
+
124
+ return (_errorCode__);
125
+ });
126
+
127
+ // Property: 'supportedcodecs' - Audio codecs supported by the sink (r/o)
128
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::ArrayType<Core::JSON::EnumType<Exchange::IBluetoothAudioSink::audiocodec>>>(_T("supportedcodecs"),
129
+ [_implementation__](Core::JSON::ArrayType<Core::JSON::EnumType<Exchange::IBluetoothAudioSink::audiocodec>>& result) -> uint32_t {
130
+ uint32_t _errorCode__ = Core::ERROR_NONE;
131
+
132
+ ::WPEFramework::RPC::IIteratorType<IBluetoothAudioSink::audiocodec, ID_BLUETOOTHAUDIOSINK_AUDIOCODECITERATOR>* _result_{};
133
+
134
+ _errorCode__ = _implementation__->SupportedCodecs(_result_);
135
+
136
+ if (_errorCode__ == Core::ERROR_NONE) {
137
+ result.Set(true);
138
+
139
+ if (_result_ != nullptr) {
140
+ Exchange::IBluetoothAudioSink::audiocodec _resultItem__{};
141
+ while (_result_->Next(_resultItem__) == true) { result.Add() = _resultItem__; }
142
+ _result_->Release();
143
+ }
144
+ }
145
+
146
+ return (_errorCode__);
147
+ });
148
+
149
+ // Property: 'supporteddrms' - DRM schemes supported by the sink (r/o)
150
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::ArrayType<Core::JSON::EnumType<Exchange::IBluetoothAudioSink::drmscheme>>>(_T("supporteddrms"),
151
+ [_implementation__](Core::JSON::ArrayType<Core::JSON::EnumType<Exchange::IBluetoothAudioSink::drmscheme>>& result) -> uint32_t {
152
+ uint32_t _errorCode__ = Core::ERROR_NONE;
153
+
154
+ ::WPEFramework::RPC::IIteratorType<IBluetoothAudioSink::drmscheme, ID_BLUETOOTHAUDIOSINK_DRMSCHEMEITERATOR>* _result_{};
155
+
156
+ _errorCode__ = _implementation__->SupportedDRMs(_result_);
157
+
158
+ if (_errorCode__ == Core::ERROR_NONE) {
159
+ result.Set(true);
160
+
161
+ if (_result_ != nullptr) {
162
+ Exchange::IBluetoothAudioSink::drmscheme _resultItem__{};
163
+ while (_result_->Next(_resultItem__) == true) { result.Add() = _resultItem__; }
164
+ _result_->Release();
165
+ }
166
+ }
167
+
168
+ return (_errorCode__);
169
+ });
170
+
171
+ // Property: 'codec' - Properites of the currently used codec (r/o)
172
+ _module__.PluginHost::JSONRPC::Register<void, JsonData::BluetoothAudioSink::CodecPropertiesData>(_T("codec"),
173
+ [_implementation__](JsonData::BluetoothAudioSink::CodecPropertiesData& result) -> uint32_t {
174
+ uint32_t _errorCode__ = Core::ERROR_NONE;
175
+
176
+ Exchange::IBluetoothAudioSink::CodecProperties _result_{};
177
+
178
+ _errorCode__ = _implementation__->Codec(_result_);
179
+
180
+ if (_errorCode__ == Core::ERROR_NONE) {
181
+ result.Set(true);
182
+ result = _result_;
183
+ }
184
+
185
+ return (_errorCode__);
186
+ });
187
+
188
+ // Property: 'drm' - Properties of the currently used DRM scheme (r/o)
189
+ _module__.PluginHost::JSONRPC::Register<void, JsonData::BluetoothAudioSink::DRMPropertiesData>(_T("drm"),
190
+ [_implementation__](JsonData::BluetoothAudioSink::DRMPropertiesData& result) -> uint32_t {
191
+ uint32_t _errorCode__ = Core::ERROR_NONE;
192
+
193
+ Exchange::IBluetoothAudioSink::DRMProperties _result_{};
194
+
195
+ _errorCode__ = _implementation__->DRM(_result_);
196
+
197
+ if (_errorCode__ == Core::ERROR_NONE) {
198
+ result.Set(true);
199
+ result = _result_;
200
+ }
201
+
202
+ return (_errorCode__);
203
+ });
204
+
205
+ // Property: 'stream' - Properties of the current output stream (r/o)
206
+ _module__.PluginHost::JSONRPC::Register<void, JsonData::BluetoothAudioSink::StreamPropertiesData>(_T("stream"),
207
+ [_implementation__](JsonData::BluetoothAudioSink::StreamPropertiesData& result) -> uint32_t {
208
+ uint32_t _errorCode__ = Core::ERROR_NONE;
209
+
210
+ Exchange::IBluetoothAudioSink::StreamProperties _result_{};
211
+
212
+ _errorCode__ = _implementation__->Stream(_result_);
213
+
214
+ if (_errorCode__ == Core::ERROR_NONE) {
215
+ result.Set(true);
216
+ result = _result_;
217
+ }
218
+
219
+ return (_errorCode__);
220
+ });
221
+
222
+ }
223
+
224
+ template<typename MODULE>
225
+ static void Unregister(MODULE& _module__)
226
+ {
227
+ // Unregister methods and properties...
228
+ _module__.PluginHost::JSONRPC::Unregister(_T("assign"));
229
+ _module__.PluginHost::JSONRPC::Unregister(_T("revoke"));
230
+ _module__.PluginHost::JSONRPC::Unregister(_T("latency"));
231
+ _module__.PluginHost::JSONRPC::Unregister(_T("state"));
232
+ _module__.PluginHost::JSONRPC::Unregister(_T("type"));
233
+ _module__.PluginHost::JSONRPC::Unregister(_T("supportedcodecs"));
234
+ _module__.PluginHost::JSONRPC::Unregister(_T("supporteddrms"));
235
+ _module__.PluginHost::JSONRPC::Unregister(_T("codec"));
236
+ _module__.PluginHost::JSONRPC::Unregister(_T("drm"));
237
+ _module__.PluginHost::JSONRPC::Unregister(_T("stream"));
238
+ }
239
+
240
+ namespace Event {
241
+
242
+ // Event: 'updated' - Signals audio sink state change or stream properties update
243
+ template<typename MODULE>
244
+ static void Updated(const MODULE& module_, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
245
+ {
246
+ module_.Notify(_T("updated"), sendIfMethod_);
247
+ }
248
+
249
+ } // namespace Event
250
+
251
+ POP_WARNING()
252
+ POP_WARNING()
253
+ POP_WARNING()
254
+
255
+ } // namespace JBluetoothAudioSink
256
+
257
+ } // namespace Exchange
258
+
259
+ } // namespace WPEFramework
260
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JBluetoothControl.h ADDED
@@ -0,0 +1,831 @@
1
+ // Generated automatically from 'BluetoothControl.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+
5
+ #if _IMPLEMENTATION_STUB
6
+ // sample implementation class
7
+ class JSONRPCImplementation {
8
+ public:
9
+ uint32_t SetDiscoverable(const Core::JSON::EnumType<JsonData::BluetoothControl::scantype>& type, const Core::JSON::EnumType<JsonData::BluetoothControl::scanmode>& mode, const Core::JSON::Boolean& connectable, const Core::JSON::DecUInt16& duration) { return (Core::ERROR_NONE); }
10
+ uint32_t StopDiscoverable(const Core::JSON::EnumType<JsonData::BluetoothControl::scantype>& type) { return (Core::ERROR_NONE); }
11
+ uint32_t Scan(const Core::JSON::EnumType<JsonData::BluetoothControl::scantype>& type, const Core::JSON::EnumType<JsonData::BluetoothControl::scanmode>& mode, const Core::JSON::DecUInt16& timeout, const Core::JSON::DecUInt16& duration) { return (Core::ERROR_NONE); }
12
+ uint32_t StopScanning(const Core::JSON::EnumType<JsonData::BluetoothControl::scantype>& type) { return (Core::ERROR_NONE); }
13
+ uint32_t Connect(const Core::JSON::String& address, const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& type) { return (Core::ERROR_NONE); }
14
+ uint32_t Disconnect(const Core::JSON::String& address, const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& type) { return (Core::ERROR_NONE); }
15
+ uint32_t Pair(const Core::JSON::String& address, const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& type, const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::pairingcapabilities>& capabilities, const Core::JSON::DecUInt16& timeout) { return (Core::ERROR_NONE); }
16
+ uint32_t Unpair(const Core::JSON::String& address, const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& type) { return (Core::ERROR_NONE); }
17
+ uint32_t AbortPairing(const Core::JSON::String& address, const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& type) { return (Core::ERROR_NONE); }
18
+ uint32_t ProvidePINCode(const Core::JSON::String& address, const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& type, const Core::JSON::String& secret) { return (Core::ERROR_NONE); }
19
+ uint32_t ProvidePasskey(const Core::JSON::String& address, const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& type, const Core::JSON::DecUInt32& secret) { return (Core::ERROR_NONE); }
20
+ uint32_t ConfirmPasskey(const Core::JSON::String& address, const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& type, const Core::JSON::Boolean& iscorrect) { return (Core::ERROR_NONE); }
21
+ uint32_t Forget(const Core::JSON::String& address, const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& type) { return (Core::ERROR_NONE); }
22
+ uint32_t GetDeviceList(Core::JSON::ArrayType<JsonData::BluetoothControl::ConnectParamsInfo>& result) { return (Core::ERROR_NONE); }
23
+ uint32_t GetDeviceInfo(Core::JSON::String& address, Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& type, Core::JSON::String& name, Core::JSON::DecUInt32& class_, Core::JSON::DecUInt32& appearance, Core::JSON::ArrayType<Core::JSON::String>& services, Core::JSON::Boolean& connected, Core::JSON::Boolean& paired) { return (Core::ERROR_NONE); }
24
+ uint32_t Adapters(Core::JSON::ArrayType<Core::JSON::DecUInt16>& result) const { return (Core::ERROR_NONE); }
25
+ uint32_t Adapter(const string& index, Core::JSON::DecUInt16& id, Core::JSON::String& address, Core::JSON::String& interface, Core::JSON::EnumType<JsonData::BluetoothControl::AdapterData::adaptertype>& type, Core::JSON::DecUInt8& version, Core::JSON::DecUInt16& manufacturer, Core::JSON::DecUInt32& class_, Core::JSON::String& name, Core::JSON::String& shortname) const { return (Core::ERROR_NONE); }
26
+ uint32_t Devices(Core::JSON::ArrayType<Core::JSON::String>& result) const { return (Core::ERROR_NONE); }
27
+ uint32_t Device(const string& index, Core::JSON::String& address, Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& type, Core::JSON::String& name, Core::JSON::DecUInt32& class_, Core::JSON::DecUInt32& appearance, Core::JSON::ArrayType<Core::JSON::String>& services, Core::JSON::Boolean& connected, Core::JSON::Boolean& paired) const { return (Core::ERROR_NONE); }
28
+ void OnDiscoverableStartedEventRegistration(const string& client, const string& index, const PluginHost::JSONRPCSupportsEventStatus::Status status) { }
29
+ void OnScanStartedEventRegistration(const string& client, const string& index, const PluginHost::JSONRPCSupportsEventStatus::Status status) { }
30
+ void OnDeviceStateChangedEventRegistration(const string& client, const string& index, const PluginHost::JSONRPCSupportsEventStatus::Status status) { }
31
+ }; // class JSONRPCImplementation
32
+ #endif // _IMPLEMENTATION_STUB
33
+
34
+ #include "Module.h"
35
+ #include "JsonData_BluetoothControl.h"
36
+
37
+ namespace WPEFramework {
38
+
39
+ namespace Exchange {
40
+
41
+ namespace JBluetoothControl {
42
+
43
+ namespace Version {
44
+
45
+ constexpr uint8_t Major = 1;
46
+ constexpr uint8_t Minor = 0;
47
+ constexpr uint8_t Patch = 0;
48
+
49
+ } // namespace Version
50
+
51
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
52
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
53
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
54
+
55
+ using JSONRPC = PluginHost::JSONRPCSupportsEventStatus;
56
+
57
+ template<typename IMPLEMENTATION>
58
+ static void Register(JSONRPC& _module__, IMPLEMENTATION& _implementation__)
59
+ {
60
+
61
+ // Register methods and properties...
62
+
63
+ // Method: 'setdiscoverable' - Starts advertising (or inquiry scanning), making the local interface visible by nearby Bluetooth devices
64
+ _module__.PluginHost::JSONRPC::Register<JsonData::BluetoothControl::SetdiscoverableParamsData, void>(_T("setdiscoverable"),
65
+ [&_implementation__](const JsonData::BluetoothControl::SetdiscoverableParamsData& params) -> uint32_t {
66
+ uint32_t _errorCode__ = Core::ERROR_NONE;
67
+
68
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
69
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
70
+ }
71
+ else {
72
+ const Core::JSON::EnumType<JsonData::BluetoothControl::scantype>& _type_{params.Type};
73
+ const Core::JSON::EnumType<JsonData::BluetoothControl::scanmode>& _mode_{params.Mode};
74
+ const Core::JSON::Boolean& _connectable_{params.Connectable};
75
+ const Core::JSON::DecUInt16& _duration_{params.Duration};
76
+ _errorCode__ = _implementation__.SetDiscoverable(_type_, _mode_, _connectable_, _duration_);
77
+
78
+ }
79
+
80
+ return (_errorCode__);
81
+ });
82
+
83
+ // Method: 'stopdiscoverable' - Stops advertising (or inquiry scanning) operation
84
+ _module__.PluginHost::JSONRPC::Register<JsonData::BluetoothControl::StopdiscoverableParamsInfo, void>(_T("stopdiscoverable"),
85
+ [&_implementation__](const JsonData::BluetoothControl::StopdiscoverableParamsInfo& params) -> uint32_t {
86
+ uint32_t _errorCode__ = Core::ERROR_NONE;
87
+
88
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
89
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
90
+ }
91
+ else {
92
+ const Core::JSON::EnumType<JsonData::BluetoothControl::scantype>& _type_{params.Type};
93
+ _errorCode__ = _implementation__.StopDiscoverable(_type_);
94
+
95
+ }
96
+
97
+ return (_errorCode__);
98
+ });
99
+
100
+ // Method: 'scan' - Starts active discovery (or inquiry) of nearby Bluetooth devices
101
+ _module__.PluginHost::JSONRPC::Register<JsonData::BluetoothControl::ScanParamsData, void>(_T("scan"),
102
+ [&_implementation__](const JsonData::BluetoothControl::ScanParamsData& params) -> uint32_t {
103
+ uint32_t _errorCode__ = Core::ERROR_NONE;
104
+
105
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
106
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
107
+ }
108
+ else {
109
+ const Core::JSON::EnumType<JsonData::BluetoothControl::scantype>& _type_{params.Type};
110
+ const Core::JSON::EnumType<JsonData::BluetoothControl::scanmode>& _mode_{params.Mode};
111
+ const Core::JSON::DecUInt16& _timeout_{params.Timeout};
112
+ const Core::JSON::DecUInt16& _duration_{params.Duration};
113
+ _errorCode__ = _implementation__.Scan(_type_, _mode_, _timeout_, _duration_);
114
+
115
+ }
116
+
117
+ return (_errorCode__);
118
+ });
119
+
120
+ // Method: 'stopscanning' - Stops discovery (or inquiry) operation
121
+ _module__.PluginHost::JSONRPC::Register<JsonData::BluetoothControl::StopdiscoverableParamsInfo, void>(_T("stopscanning"),
122
+ [&_implementation__](const JsonData::BluetoothControl::StopdiscoverableParamsInfo& params) -> uint32_t {
123
+ uint32_t _errorCode__ = Core::ERROR_NONE;
124
+
125
+ if ((params.IsSet() == true) && (params.IsDataValid() == false)) {
126
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
127
+ }
128
+ else {
129
+ const Core::JSON::EnumType<JsonData::BluetoothControl::scantype>& _type_{params.Type};
130
+ _errorCode__ = _implementation__.StopScanning(_type_);
131
+
132
+ }
133
+
134
+ return (_errorCode__);
135
+ });
136
+
137
+ // Method: 'connect' - Connects to a Bluetooth device
138
+ _module__.PluginHost::JSONRPC::Register<JsonData::BluetoothControl::ConnectParamsInfo, void>(_T("connect"),
139
+ [&_implementation__](const JsonData::BluetoothControl::ConnectParamsInfo& params) -> uint32_t {
140
+ uint32_t _errorCode__ = Core::ERROR_NONE;
141
+
142
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
143
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
144
+ }
145
+ else {
146
+ const Core::JSON::String& _address_{params.Address};
147
+ const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& _type_{params.Type};
148
+ _errorCode__ = _implementation__.Connect(_address_, _type_);
149
+
150
+ }
151
+
152
+ return (_errorCode__);
153
+ });
154
+
155
+ // Method: 'disconnect' - Disconnects from a connected Bluetooth device
156
+ _module__.PluginHost::JSONRPC::Register<JsonData::BluetoothControl::ConnectParamsInfo, void>(_T("disconnect"),
157
+ [&_implementation__](const JsonData::BluetoothControl::ConnectParamsInfo& params) -> uint32_t {
158
+ uint32_t _errorCode__ = Core::ERROR_NONE;
159
+
160
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
161
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
162
+ }
163
+ else {
164
+ const Core::JSON::String& _address_{params.Address};
165
+ const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& _type_{params.Type};
166
+ _errorCode__ = _implementation__.Disconnect(_address_, _type_);
167
+
168
+ }
169
+
170
+ return (_errorCode__);
171
+ });
172
+
173
+ // Method: 'pair' - Pairs a Bluetooth device
174
+ _module__.PluginHost::JSONRPC::Register<JsonData::BluetoothControl::PairParamsData, void>(_T("pair"),
175
+ [&_implementation__](const JsonData::BluetoothControl::PairParamsData& params) -> uint32_t {
176
+ uint32_t _errorCode__ = Core::ERROR_NONE;
177
+
178
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
179
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
180
+ }
181
+ else {
182
+ const Core::JSON::String& _address_{params.Address};
183
+ const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& _type_{params.Type};
184
+ const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::pairingcapabilities>& _capabilities_{params.Capabilities};
185
+ const Core::JSON::DecUInt16& _timeout_{params.Timeout};
186
+ _errorCode__ = _implementation__.Pair(_address_, _type_, _capabilities_, _timeout_);
187
+
188
+ }
189
+
190
+ return (_errorCode__);
191
+ });
192
+
193
+ // Method: 'unpair' - Unpairs a paired Bluetooth device
194
+ _module__.PluginHost::JSONRPC::Register<JsonData::BluetoothControl::ConnectParamsInfo, void>(_T("unpair"),
195
+ [&_implementation__](const JsonData::BluetoothControl::ConnectParamsInfo& params) -> uint32_t {
196
+ uint32_t _errorCode__ = Core::ERROR_NONE;
197
+
198
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
199
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
200
+ }
201
+ else {
202
+ const Core::JSON::String& _address_{params.Address};
203
+ const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& _type_{params.Type};
204
+ _errorCode__ = _implementation__.Unpair(_address_, _type_);
205
+
206
+ }
207
+
208
+ return (_errorCode__);
209
+ });
210
+
211
+ // Method: 'abortpairing' - Aborts pairing operation
212
+ _module__.PluginHost::JSONRPC::Register<JsonData::BluetoothControl::ConnectParamsInfo, void>(_T("abortpairing"),
213
+ [&_implementation__](const JsonData::BluetoothControl::ConnectParamsInfo& params) -> uint32_t {
214
+ uint32_t _errorCode__ = Core::ERROR_NONE;
215
+
216
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
217
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
218
+ }
219
+ else {
220
+ const Core::JSON::String& _address_{params.Address};
221
+ const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& _type_{params.Type};
222
+ _errorCode__ = _implementation__.AbortPairing(_address_, _type_);
223
+
224
+ }
225
+
226
+ return (_errorCode__);
227
+ });
228
+
229
+ // Method: 'providepincode' - Provides a PIN-code for authentication during a legacy pairing process
230
+ _module__.PluginHost::JSONRPC::Register<JsonData::BluetoothControl::ProvidepincodeParamsData, void>(_T("providepincode"),
231
+ [&_implementation__](const JsonData::BluetoothControl::ProvidepincodeParamsData& params) -> uint32_t {
232
+ uint32_t _errorCode__ = Core::ERROR_NONE;
233
+
234
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
235
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
236
+ }
237
+ else {
238
+ const Core::JSON::String& _address_{params.Address};
239
+ const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& _type_{params.Type};
240
+ const Core::JSON::String& _secret_{params.Secret};
241
+ _errorCode__ = _implementation__.ProvidePINCode(_address_, _type_, _secret_);
242
+
243
+ }
244
+
245
+ return (_errorCode__);
246
+ });
247
+
248
+ // Method: 'providepasskey' - Provides a passkey for authentication during a pairing process
249
+ _module__.PluginHost::JSONRPC::Register<JsonData::BluetoothControl::ProvidepasskeyParamsData, void>(_T("providepasskey"),
250
+ [&_implementation__](const JsonData::BluetoothControl::ProvidepasskeyParamsData& params) -> uint32_t {
251
+ uint32_t _errorCode__ = Core::ERROR_NONE;
252
+
253
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
254
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
255
+ }
256
+ else {
257
+ const Core::JSON::String& _address_{params.Address};
258
+ const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& _type_{params.Type};
259
+ const Core::JSON::DecUInt32& _secret_{params.Secret};
260
+ _errorCode__ = _implementation__.ProvidePasskey(_address_, _type_, _secret_);
261
+
262
+ }
263
+
264
+ return (_errorCode__);
265
+ });
266
+
267
+ // Method: 'confirmpasskey' - Confirms a passkey for authentication during a pairing process
268
+ _module__.PluginHost::JSONRPC::Register<JsonData::BluetoothControl::ConfirmpasskeyParamsData, void>(_T("confirmpasskey"),
269
+ [&_implementation__](const JsonData::BluetoothControl::ConfirmpasskeyParamsData& params) -> uint32_t {
270
+ uint32_t _errorCode__ = Core::ERROR_NONE;
271
+
272
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
273
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
274
+ }
275
+ else {
276
+ const Core::JSON::String& _address_{params.Address};
277
+ const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& _type_{params.Type};
278
+ const Core::JSON::Boolean& _iscorrect_{params.Iscorrect};
279
+ _errorCode__ = _implementation__.ConfirmPasskey(_address_, _type_, _iscorrect_);
280
+
281
+ }
282
+
283
+ return (_errorCode__);
284
+ });
285
+
286
+ // Method: 'forget' - Forgets a known Bluetooth device
287
+ _module__.PluginHost::JSONRPC::Register<JsonData::BluetoothControl::ConnectParamsInfo, void>(_T("forget"),
288
+ [&_implementation__](const JsonData::BluetoothControl::ConnectParamsInfo& params) -> uint32_t {
289
+ uint32_t _errorCode__ = Core::ERROR_NONE;
290
+
291
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
292
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
293
+ }
294
+ else {
295
+ const Core::JSON::String& _address_{params.Address};
296
+ const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& _type_{params.Type};
297
+ _errorCode__ = _implementation__.Forget(_address_, _type_);
298
+
299
+ }
300
+
301
+ return (_errorCode__);
302
+ });
303
+
304
+ // Method: 'getdevicelist' - Retrieves a list of known remote Bluetooth devices
305
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::ArrayType<JsonData::BluetoothControl::ConnectParamsInfo>>(_T("getdevicelist"),
306
+ [&_implementation__](Core::JSON::ArrayType<JsonData::BluetoothControl::ConnectParamsInfo>& result) -> uint32_t {
307
+ uint32_t _errorCode__ = Core::ERROR_NONE;
308
+
309
+ Core::JSON::ArrayType<JsonData::BluetoothControl::ConnectParamsInfo>& _result_{result};
310
+ _errorCode__ = _implementation__.GetDeviceList(_result_);
311
+
312
+ return (_errorCode__);
313
+ });
314
+
315
+ // Method: 'getdeviceinfo' - Retrieves detailed information about a known Bluetooth device
316
+ _module__.PluginHost::JSONRPC::Register<JsonData::BluetoothControl::ConnectParamsInfo, JsonData::BluetoothControl::DeviceData>(_T("getdeviceinfo"),
317
+ [&_implementation__](const JsonData::BluetoothControl::ConnectParamsInfo& params, JsonData::BluetoothControl::DeviceData& result) -> uint32_t {
318
+ uint32_t _errorCode__ = Core::ERROR_NONE;
319
+
320
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
321
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
322
+ }
323
+ else {
324
+ result.Address = params.Address;
325
+ Core::JSON::String& _address_{result.Address};
326
+ result.Type = params.Type;
327
+ Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& _type_{result.Type};
328
+ Core::JSON::String& _name_{result.Name};
329
+ Core::JSON::DecUInt32& _class__{result.Class};
330
+ Core::JSON::DecUInt32& _appearance_{result.Appearance};
331
+ Core::JSON::ArrayType<Core::JSON::String>& _services_{result.Services};
332
+ Core::JSON::Boolean& _connected_{result.Connected};
333
+ Core::JSON::Boolean& _paired_{result.Paired};
334
+ _errorCode__ = _implementation__.GetDeviceInfo(_address_, _type_, _name_, _class__, _appearance_, _services_, _connected_, _paired_);
335
+
336
+ }
337
+
338
+ return (_errorCode__);
339
+ });
340
+
341
+ // Property: 'adapters' - List of local Bluetooth adapters (r/o)
342
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::ArrayType<Core::JSON::DecUInt16>>(_T("adapters"),
343
+ [&_implementation__](Core::JSON::ArrayType<Core::JSON::DecUInt16>& result) -> uint32_t {
344
+ uint32_t _errorCode__ = Core::ERROR_NONE;
345
+
346
+ Core::JSON::ArrayType<Core::JSON::DecUInt16>& _result_{result};
347
+ _errorCode__ = _implementation__.Adapters(_result_);
348
+
349
+ return (_errorCode__);
350
+ });
351
+
352
+ // Indexed Property: 'adapter' - Local Bluetooth adapter information (r/o)
353
+ _module__.PluginHost::JSONRPC::Register<void, JsonData::BluetoothControl::AdapterData, std::function<uint32_t(const string&, JsonData::BluetoothControl::AdapterData&)>>(_T("adapter"),
354
+ [&_implementation__](const string& index, JsonData::BluetoothControl::AdapterData& result) -> uint32_t {
355
+ uint32_t _errorCode__ = Core::ERROR_NONE;
356
+
357
+ if (index.empty() == true) {
358
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
359
+ }
360
+
361
+ if (_errorCode__ == Core::ERROR_NONE) {
362
+ Core::JSON::DecUInt16& _id_{result.Id};
363
+ Core::JSON::String& _address_{result.Address};
364
+ Core::JSON::String& _interface_{result.Interface};
365
+ Core::JSON::EnumType<JsonData::BluetoothControl::AdapterData::adaptertype>& _type_{result.Type};
366
+ Core::JSON::DecUInt8& _version_{result.Version};
367
+ Core::JSON::DecUInt16& _manufacturer_{result.Manufacturer};
368
+ Core::JSON::DecUInt32& _class__{result.Class};
369
+ Core::JSON::String& _name_{result.Name};
370
+ Core::JSON::String& _shortname_{result.Shortname};
371
+ _errorCode__ = _implementation__.Adapter(index, _id_, _address_, _interface_, _type_, _version_, _manufacturer_, _class__, _name_, _shortname_);
372
+
373
+ }
374
+
375
+ return (_errorCode__);
376
+ });
377
+
378
+ // Property: 'devices' - List of known remote Bluetooth devices (DEPRECATED) (r/o)
379
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::ArrayType<Core::JSON::String>>(_T("devices"),
380
+ [&_implementation__](Core::JSON::ArrayType<Core::JSON::String>& result) -> uint32_t {
381
+ uint32_t _errorCode__ = Core::ERROR_NONE;
382
+
383
+ Core::JSON::ArrayType<Core::JSON::String>& _result_{result};
384
+ _errorCode__ = _implementation__.Devices(_result_);
385
+
386
+ return (_errorCode__);
387
+ });
388
+
389
+ // Indexed Property: 'device' - Remote Bluetooth device information (DEPRECATED) (r/o)
390
+ _module__.PluginHost::JSONRPC::Register<void, JsonData::BluetoothControl::DeviceData, std::function<uint32_t(const string&, JsonData::BluetoothControl::DeviceData&)>>(_T("device"),
391
+ [&_implementation__](const string& index, JsonData::BluetoothControl::DeviceData& result) -> uint32_t {
392
+ uint32_t _errorCode__ = Core::ERROR_NONE;
393
+
394
+ if (index.empty() == true) {
395
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
396
+ }
397
+
398
+ if (_errorCode__ == Core::ERROR_NONE) {
399
+ Core::JSON::String& _address_{result.Address};
400
+ Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& _type_{result.Type};
401
+ Core::JSON::String& _name_{result.Name};
402
+ Core::JSON::DecUInt32& _class__{result.Class};
403
+ Core::JSON::DecUInt32& _appearance_{result.Appearance};
404
+ Core::JSON::ArrayType<Core::JSON::String>& _services_{result.Services};
405
+ Core::JSON::Boolean& _connected_{result.Connected};
406
+ Core::JSON::Boolean& _paired_{result.Paired};
407
+ _errorCode__ = _implementation__.Device(index, _address_, _type_, _name_, _class__, _appearance_, _services_, _connected_, _paired_);
408
+
409
+ }
410
+
411
+ return (_errorCode__);
412
+ });
413
+
414
+ // Register event status listeners...
415
+
416
+ _module__.PluginHost::JSONRPCSupportsEventStatus::RegisterEventStatusListener(_T("discoverablestarted"),
417
+ [&_implementation__](const uint32_t, const string& client_, const string&, const PluginHost::JSONRPCSupportsEventStatus::Status status_) {
418
+ _implementation__.OnDiscoverableStartedEventRegistration(client_, status_);
419
+ });
420
+
421
+ _module__.PluginHost::JSONRPCSupportsEventStatus::RegisterEventStatusListener(_T("scanstarted"),
422
+ [&_implementation__](const uint32_t, const string& client_, const string&, const PluginHost::JSONRPCSupportsEventStatus::Status status_) {
423
+ _implementation__.OnScanStartedEventRegistration(client_, status_);
424
+ });
425
+
426
+ _module__.PluginHost::JSONRPCSupportsEventStatus::RegisterEventStatusListener(_T("devicestatechange"),
427
+ [&_implementation__](const uint32_t, const string& client_, const string&, const PluginHost::JSONRPCSupportsEventStatus::Status status_) {
428
+ _implementation__.OnDeviceStateChangedEventRegistration(client_, status_);
429
+ });
430
+
431
+ }
432
+
433
+ template<typename MODULE>
434
+ static void Unregister(MODULE& _module__)
435
+ {
436
+ // Unregister methods and properties...
437
+ _module__.PluginHost::JSONRPC::Unregister(_T("setdiscoverable"));
438
+ _module__.PluginHost::JSONRPC::Unregister(_T("stopdiscoverable"));
439
+ _module__.PluginHost::JSONRPC::Unregister(_T("scan"));
440
+ _module__.PluginHost::JSONRPC::Unregister(_T("stopscanning"));
441
+ _module__.PluginHost::JSONRPC::Unregister(_T("connect"));
442
+ _module__.PluginHost::JSONRPC::Unregister(_T("disconnect"));
443
+ _module__.PluginHost::JSONRPC::Unregister(_T("pair"));
444
+ _module__.PluginHost::JSONRPC::Unregister(_T("unpair"));
445
+ _module__.PluginHost::JSONRPC::Unregister(_T("abortpairing"));
446
+ _module__.PluginHost::JSONRPC::Unregister(_T("providepincode"));
447
+ _module__.PluginHost::JSONRPC::Unregister(_T("providepasskey"));
448
+ _module__.PluginHost::JSONRPC::Unregister(_T("confirmpasskey"));
449
+ _module__.PluginHost::JSONRPC::Unregister(_T("forget"));
450
+ _module__.PluginHost::JSONRPC::Unregister(_T("getdevicelist"));
451
+ _module__.PluginHost::JSONRPC::Unregister(_T("getdeviceinfo"));
452
+ _module__.PluginHost::JSONRPC::Unregister(_T("adapters"));
453
+ _module__.PluginHost::JSONRPC::Unregister(_T("adapter"));
454
+ _module__.PluginHost::JSONRPC::Unregister(_T("devices"));
455
+ _module__.PluginHost::JSONRPC::Unregister(_T("device"));
456
+
457
+ // Unregister event status listeners...
458
+ _module__.PluginHost::JSONRPCSupportsEventStatus::UnregisterEventStatusListener(_T("discoverablestarted"));
459
+ _module__.PluginHost::JSONRPCSupportsEventStatus::UnregisterEventStatusListener(_T("scanstarted"));
460
+ _module__.PluginHost::JSONRPCSupportsEventStatus::UnregisterEventStatusListener(_T("devicestatechange"));
461
+ }
462
+
463
+ namespace Event {
464
+
465
+ // Event: 'discoverablestarted' - Notifies of entering the discoverable state
466
+ template<typename MODULE>
467
+ static void DiscoverableStarted(const MODULE& module_, const JsonData::BluetoothControl::DiscoverablestartedParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
468
+ {
469
+ module_.Notify(_T("discoverablestarted"), params, sendIfMethod_);
470
+ }
471
+
472
+ // Event: 'discoverablestarted' - Notifies of entering the discoverable state
473
+ template<typename MODULE>
474
+ static void DiscoverableStarted(const MODULE& module_, const JsonData::BluetoothControl::DiscoverablestartedParamsData& params, const string& client_)
475
+ {
476
+ module_.Notify(_T("discoverablestarted"), params, [&client_](const string& designator_) -> bool {
477
+ return ((client_ == designator_));
478
+ });
479
+ }
480
+
481
+ // Event: 'discoverablestarted' - Notifies of entering the discoverable state
482
+ template<typename MODULE>
483
+ static void DiscoverableStarted(const MODULE& module_, const Core::JSON::EnumType<JsonData::BluetoothControl::scantype>& type, const Core::JSON::EnumType<JsonData::BluetoothControl::scanmode>& mode, const Core::JSON::Boolean& connectable, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
484
+ {
485
+ JsonData::BluetoothControl::DiscoverablestartedParamsData params_;
486
+ params_.Type = type;
487
+ params_.Mode = mode;
488
+ params_.Connectable = connectable;
489
+
490
+ DiscoverableStarted(module_, params_, sendIfMethod_);
491
+ }
492
+
493
+ // Event: 'discoverablestarted' - Notifies of entering the discoverable state
494
+ template<typename MODULE>
495
+ static void DiscoverableStarted(const MODULE& module_, const Core::JSON::EnumType<JsonData::BluetoothControl::scantype>& type, const Core::JSON::EnumType<JsonData::BluetoothControl::scanmode>& mode, const Core::JSON::Boolean& connectable, const string& client_)
496
+ {
497
+ JsonData::BluetoothControl::DiscoverablestartedParamsData params_;
498
+ params_.Type = type;
499
+ params_.Mode = mode;
500
+ params_.Connectable = connectable;
501
+
502
+ DiscoverableStarted(module_, params_, client_);
503
+ }
504
+
505
+ // Event: 'discoverablestarted' - Notifies of entering the discoverable state
506
+ template<typename MODULE>
507
+ static void DiscoverableStarted(const MODULE& module_, JsonData::BluetoothControl::scantype type, JsonData::BluetoothControl::scanmode mode, bool connectable, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
508
+ {
509
+ JsonData::BluetoothControl::DiscoverablestartedParamsData params_;
510
+ params_.Type = type;
511
+ params_.Mode = mode;
512
+ params_.Connectable = connectable;
513
+
514
+ DiscoverableStarted(module_, params_, sendIfMethod_);
515
+ }
516
+
517
+ // Event: 'discoverablestarted' - Notifies of entering the discoverable state
518
+ template<typename MODULE>
519
+ static void DiscoverableStarted(const MODULE& module_, JsonData::BluetoothControl::scantype type, JsonData::BluetoothControl::scanmode mode, bool connectable, const string& client_)
520
+ {
521
+ JsonData::BluetoothControl::DiscoverablestartedParamsData params_;
522
+ params_.Type = type;
523
+ params_.Mode = mode;
524
+ params_.Connectable = connectable;
525
+
526
+ DiscoverableStarted(module_, params_, client_);
527
+ }
528
+
529
+ // Event: 'discoverablecomplete' - Notifies of leaving the discoverable state
530
+ template<typename MODULE>
531
+ static void DiscoverableComplete(const MODULE& module_, const JsonData::BluetoothControl::StopdiscoverableParamsInfo& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
532
+ {
533
+ module_.Notify(_T("discoverablecomplete"), params, sendIfMethod_);
534
+ }
535
+
536
+ // Event: 'discoverablecomplete' - Notifies of leaving the discoverable state
537
+ template<typename MODULE>
538
+ static void DiscoverableComplete(const MODULE& module_, const Core::JSON::EnumType<JsonData::BluetoothControl::scantype>& type, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
539
+ {
540
+ JsonData::BluetoothControl::StopdiscoverableParamsInfo params_;
541
+ params_.Type = type;
542
+
543
+ DiscoverableComplete(module_, params_, sendIfMethod_);
544
+ }
545
+
546
+ // Event: 'discoverablecomplete' - Notifies of leaving the discoverable state
547
+ template<typename MODULE>
548
+ static void DiscoverableComplete(const MODULE& module_, JsonData::BluetoothControl::scantype type, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
549
+ {
550
+ JsonData::BluetoothControl::StopdiscoverableParamsInfo params_;
551
+ params_.Type = type;
552
+
553
+ DiscoverableComplete(module_, params_, sendIfMethod_);
554
+ }
555
+
556
+ // Event: 'scanstarted' - Notifies of scan start
557
+ template<typename MODULE>
558
+ static void ScanStarted(const MODULE& module_, const JsonData::BluetoothControl::ScanstartedParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
559
+ {
560
+ module_.Notify(_T("scanstarted"), params, sendIfMethod_);
561
+ }
562
+
563
+ // Event: 'scanstarted' - Notifies of scan start
564
+ template<typename MODULE>
565
+ static void ScanStarted(const MODULE& module_, const JsonData::BluetoothControl::ScanstartedParamsData& params, const string& client_)
566
+ {
567
+ module_.Notify(_T("scanstarted"), params, [&client_](const string& designator_) -> bool {
568
+ return ((client_ == designator_));
569
+ });
570
+ }
571
+
572
+ // Event: 'scanstarted' - Notifies of scan start
573
+ template<typename MODULE>
574
+ static void ScanStarted(const MODULE& module_, const Core::JSON::EnumType<JsonData::BluetoothControl::scantype>& type, const Core::JSON::EnumType<JsonData::BluetoothControl::scanmode>& mode, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
575
+ {
576
+ JsonData::BluetoothControl::ScanstartedParamsData params_;
577
+ params_.Type = type;
578
+ params_.Mode = mode;
579
+
580
+ ScanStarted(module_, params_, sendIfMethod_);
581
+ }
582
+
583
+ // Event: 'scanstarted' - Notifies of scan start
584
+ template<typename MODULE>
585
+ static void ScanStarted(const MODULE& module_, const Core::JSON::EnumType<JsonData::BluetoothControl::scantype>& type, const Core::JSON::EnumType<JsonData::BluetoothControl::scanmode>& mode, const string& client_)
586
+ {
587
+ JsonData::BluetoothControl::ScanstartedParamsData params_;
588
+ params_.Type = type;
589
+ params_.Mode = mode;
590
+
591
+ ScanStarted(module_, params_, client_);
592
+ }
593
+
594
+ // Event: 'scanstarted' - Notifies of scan start
595
+ template<typename MODULE>
596
+ static void ScanStarted(const MODULE& module_, JsonData::BluetoothControl::scantype type, JsonData::BluetoothControl::scanmode mode, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
597
+ {
598
+ JsonData::BluetoothControl::ScanstartedParamsData params_;
599
+ params_.Type = type;
600
+ params_.Mode = mode;
601
+
602
+ ScanStarted(module_, params_, sendIfMethod_);
603
+ }
604
+
605
+ // Event: 'scanstarted' - Notifies of scan start
606
+ template<typename MODULE>
607
+ static void ScanStarted(const MODULE& module_, JsonData::BluetoothControl::scantype type, JsonData::BluetoothControl::scanmode mode, const string& client_)
608
+ {
609
+ JsonData::BluetoothControl::ScanstartedParamsData params_;
610
+ params_.Type = type;
611
+ params_.Mode = mode;
612
+
613
+ ScanStarted(module_, params_, client_);
614
+ }
615
+
616
+ // Event: 'scancomplete' - Notifies of scan completion
617
+ template<typename MODULE>
618
+ static void ScanComplete(const MODULE& module_, const JsonData::BluetoothControl::StopdiscoverableParamsInfo& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
619
+ {
620
+ module_.Notify(_T("scancomplete"), params, sendIfMethod_);
621
+ }
622
+
623
+ // Event: 'scancomplete' - Notifies of scan completion
624
+ template<typename MODULE>
625
+ static void ScanComplete(const MODULE& module_, const Core::JSON::EnumType<JsonData::BluetoothControl::scantype>& type, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
626
+ {
627
+ JsonData::BluetoothControl::StopdiscoverableParamsInfo params_;
628
+ params_.Type = type;
629
+
630
+ ScanComplete(module_, params_, sendIfMethod_);
631
+ }
632
+
633
+ // Event: 'scancomplete' - Notifies of scan completion
634
+ template<typename MODULE>
635
+ static void ScanComplete(const MODULE& module_, JsonData::BluetoothControl::scantype type, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
636
+ {
637
+ JsonData::BluetoothControl::StopdiscoverableParamsInfo params_;
638
+ params_.Type = type;
639
+
640
+ ScanComplete(module_, params_, sendIfMethod_);
641
+ }
642
+
643
+ // Event: 'devicestatechange' - Notifies of device state changes
644
+ template<typename MODULE>
645
+ static void DeviceStateChanged(const MODULE& module_, const string& id_, const JsonData::BluetoothControl::DevicestatechangeParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
646
+ {
647
+ if (sendIfMethod_ == nullptr) {
648
+ module_.Notify(_T("devicestatechange"), params, [&id_](const string& designator_) -> bool {
649
+ Core::hresult _errorCode__ = Core::ERROR_NONE;
650
+ const string index_ = designator_.substr(0, designator_.find('.'));
651
+
652
+ if (index_.empty() == true) {
653
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
654
+ }
655
+ return ((_errorCode__ == Core::ERROR_NONE) && (id_ == index_));
656
+ });
657
+ }
658
+ else {
659
+ module_.Notify(_T("devicestatechange"), params, sendIfMethod_);
660
+ }
661
+ }
662
+
663
+ // Event: 'devicestatechange' - Notifies of device state changes
664
+ template<typename MODULE>
665
+ static void DeviceStateChanged(const MODULE& module_, const string& id_, const JsonData::BluetoothControl::DevicestatechangeParamsData& params, const string& client_)
666
+ {
667
+ module_.Notify(_T("devicestatechange"), params, [&id_, &client_](const string& designator_) -> bool {
668
+ Core::hresult _errorCode__ = Core::ERROR_NONE;
669
+ const size_t _dot = designator_.find('.');
670
+ const string index_ = designator_.substr(0, _dot);
671
+
672
+ if (index_.empty() == true) {
673
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
674
+ }
675
+ return ((_errorCode__ == Core::ERROR_NONE) && ((client_.empty() == true) || (client_ == designator_.substr(_dot + 1))) && (id_ == index_));
676
+ });
677
+ }
678
+
679
+ // Event: 'devicestatechange' - Notifies of device state changes
680
+ template<typename MODULE>
681
+ static void DeviceStateChanged(const MODULE& module_, const string& id_, const Core::JSON::String& address, const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& type, const Core::JSON::EnumType<JsonData::BluetoothControl::DevicestatechangeParamsData::devicestate>& state, const Core::JSON::EnumType<JsonData::BluetoothControl::DevicestatechangeParamsData::disconnectreason>& disconnectreason, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
682
+ {
683
+ JsonData::BluetoothControl::DevicestatechangeParamsData params_;
684
+ params_.Address = address;
685
+ params_.Type = type;
686
+ params_.State = state;
687
+ params_.Disconnectreason = disconnectreason;
688
+
689
+ DeviceStateChanged(module_, id_, params_, sendIfMethod_);
690
+ }
691
+
692
+ // Event: 'devicestatechange' - Notifies of device state changes
693
+ template<typename MODULE>
694
+ static void DeviceStateChanged(const MODULE& module_, const string& id_, const Core::JSON::String& address, const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& type, const Core::JSON::EnumType<JsonData::BluetoothControl::DevicestatechangeParamsData::devicestate>& state, const Core::JSON::EnumType<JsonData::BluetoothControl::DevicestatechangeParamsData::disconnectreason>& disconnectreason, const string& client_)
695
+ {
696
+ JsonData::BluetoothControl::DevicestatechangeParamsData params_;
697
+ params_.Address = address;
698
+ params_.Type = type;
699
+ params_.State = state;
700
+ params_.Disconnectreason = disconnectreason;
701
+
702
+ DeviceStateChanged(module_, id_, params_, client_);
703
+ }
704
+
705
+ // Event: 'devicestatechange' - Notifies of device state changes
706
+ template<typename MODULE>
707
+ static void DeviceStateChanged(const MODULE& module_, const string& id_, string address, const IBluetooth::IDevice::type type, JsonData::BluetoothControl::DevicestatechangeParamsData::devicestate state, JsonData::BluetoothControl::DevicestatechangeParamsData::disconnectreason disconnectreason, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
708
+ {
709
+ JsonData::BluetoothControl::DevicestatechangeParamsData params_;
710
+ params_.Address = address;
711
+ params_.Type = type;
712
+ params_.State = state;
713
+ params_.Disconnectreason = disconnectreason;
714
+
715
+ DeviceStateChanged(module_, id_, params_, sendIfMethod_);
716
+ }
717
+
718
+ // Event: 'devicestatechange' - Notifies of device state changes
719
+ template<typename MODULE>
720
+ static void DeviceStateChanged(const MODULE& module_, const string& id_, string address, const IBluetooth::IDevice::type type, JsonData::BluetoothControl::DevicestatechangeParamsData::devicestate state, JsonData::BluetoothControl::DevicestatechangeParamsData::disconnectreason disconnectreason, const string& client_)
721
+ {
722
+ JsonData::BluetoothControl::DevicestatechangeParamsData params_;
723
+ params_.Address = address;
724
+ params_.Type = type;
725
+ params_.State = state;
726
+ params_.Disconnectreason = disconnectreason;
727
+
728
+ DeviceStateChanged(module_, id_, params_, client_);
729
+ }
730
+
731
+ // Event: 'pincoderequest' - Notifies of a PIN code request
732
+ template<typename MODULE>
733
+ static void PINCodeRequest(const MODULE& module_, const JsonData::BluetoothControl::ConnectParamsInfo& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
734
+ {
735
+ module_.Notify(_T("pincoderequest"), params, sendIfMethod_);
736
+ }
737
+
738
+ // Event: 'pincoderequest' - Notifies of a PIN code request
739
+ template<typename MODULE>
740
+ static void PINCodeRequest(const MODULE& module_, const Core::JSON::String& address, const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& type, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
741
+ {
742
+ JsonData::BluetoothControl::ConnectParamsInfo params_;
743
+ params_.Address = address;
744
+ params_.Type = type;
745
+
746
+ PINCodeRequest(module_, params_, sendIfMethod_);
747
+ }
748
+
749
+ // Event: 'pincoderequest' - Notifies of a PIN code request
750
+ template<typename MODULE>
751
+ static void PINCodeRequest(const MODULE& module_, string address, const IBluetooth::IDevice::type type, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
752
+ {
753
+ JsonData::BluetoothControl::ConnectParamsInfo params_;
754
+ params_.Address = address;
755
+ params_.Type = type;
756
+
757
+ PINCodeRequest(module_, params_, sendIfMethod_);
758
+ }
759
+
760
+ // Event: 'passkeyrequest' - Notifies of a passkey request
761
+ template<typename MODULE>
762
+ static void PasskeyRequest(const MODULE& module_, const JsonData::BluetoothControl::ConnectParamsInfo& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
763
+ {
764
+ module_.Notify(_T("passkeyrequest"), params, sendIfMethod_);
765
+ }
766
+
767
+ // Event: 'passkeyrequest' - Notifies of a passkey request
768
+ template<typename MODULE>
769
+ static void PasskeyRequest(const MODULE& module_, const Core::JSON::String& address, const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& type, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
770
+ {
771
+ JsonData::BluetoothControl::ConnectParamsInfo params_;
772
+ params_.Address = address;
773
+ params_.Type = type;
774
+
775
+ PasskeyRequest(module_, params_, sendIfMethod_);
776
+ }
777
+
778
+ // Event: 'passkeyrequest' - Notifies of a passkey request
779
+ template<typename MODULE>
780
+ static void PasskeyRequest(const MODULE& module_, string address, const IBluetooth::IDevice::type type, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
781
+ {
782
+ JsonData::BluetoothControl::ConnectParamsInfo params_;
783
+ params_.Address = address;
784
+ params_.Type = type;
785
+
786
+ PasskeyRequest(module_, params_, sendIfMethod_);
787
+ }
788
+
789
+ // Event: 'passkeyconfirmrequest' - Notifies of a passkey confirmation request
790
+ template<typename MODULE>
791
+ static void PasskeyConfirmRequest(const MODULE& module_, const JsonData::BluetoothControl::PasskeyconfirmrequestParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
792
+ {
793
+ module_.Notify(_T("passkeyconfirmrequest"), params, sendIfMethod_);
794
+ }
795
+
796
+ // Event: 'passkeyconfirmrequest' - Notifies of a passkey confirmation request
797
+ template<typename MODULE>
798
+ static void PasskeyConfirmRequest(const MODULE& module_, const Core::JSON::String& address, const Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type>& type, const Core::JSON::DecUInt32& secret, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
799
+ {
800
+ JsonData::BluetoothControl::PasskeyconfirmrequestParamsData params_;
801
+ params_.Address = address;
802
+ params_.Type = type;
803
+ params_.Secret = secret;
804
+
805
+ PasskeyConfirmRequest(module_, params_, sendIfMethod_);
806
+ }
807
+
808
+ // Event: 'passkeyconfirmrequest' - Notifies of a passkey confirmation request
809
+ template<typename MODULE>
810
+ static void PasskeyConfirmRequest(const MODULE& module_, string address, const IBluetooth::IDevice::type type, uint32_t secret, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
811
+ {
812
+ JsonData::BluetoothControl::PasskeyconfirmrequestParamsData params_;
813
+ params_.Address = address;
814
+ params_.Type = type;
815
+ params_.Secret = secret;
816
+
817
+ PasskeyConfirmRequest(module_, params_, sendIfMethod_);
818
+ }
819
+
820
+ } // namespace Event
821
+
822
+ POP_WARNING()
823
+ POP_WARNING()
824
+ POP_WARNING()
825
+
826
+ } // namespace JBluetoothControl
827
+
828
+ } // namespace Exchange
829
+
830
+ } // namespace WPEFramework
831
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JBluetoothRemoteControl.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'BluetoothRemoteControl.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_BluetoothRemoteControl.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JBluetoothRemoteControl {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JBluetoothRemoteControl
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JBrowser.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'Browser.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_Browser.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JBrowser {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JBrowser
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JBrowserCookieJar.h ADDED
@@ -0,0 +1,97 @@
1
+ // Generated automatically from 'IBrowser.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_BrowserCookieJar.h"
6
+ #include <interfaces/IBrowser.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JBrowserCookieJar {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IBrowserCookieJar* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JBrowserCookieJar"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Property: 'cookiejar'
36
+ _module__.PluginHost::JSONRPC::Register<JsonData::BrowserCookieJar::ConfigData, JsonData::BrowserCookieJar::ConfigData>(_T("cookiejar"),
37
+ [_implementation__](const JsonData::BrowserCookieJar::ConfigData& params, JsonData::BrowserCookieJar::ConfigData& result) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ if (params.IsSet() == false) {
41
+ Exchange::IBrowserCookieJar::Config _result_{};
42
+
43
+ _errorCode__ = (static_cast<const IBrowserCookieJar*>(_implementation__))->CookieJar(_result_);
44
+
45
+ if (_errorCode__ == Core::ERROR_NONE) {
46
+ result.Set(true);
47
+ result = _result_;
48
+ }
49
+ }
50
+ else {
51
+
52
+ if (params.IsDataValid() == false) {
53
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
54
+ }
55
+ else {
56
+ const Exchange::IBrowserCookieJar::Config _params_(params);
57
+
58
+ _errorCode__ = _implementation__->CookieJar(_params_);
59
+
60
+ }
61
+
62
+ result.Null(true);
63
+ }
64
+
65
+ return (_errorCode__);
66
+ });
67
+
68
+ }
69
+
70
+ template<typename MODULE>
71
+ static void Unregister(MODULE& _module__)
72
+ {
73
+ // Unregister methods and properties...
74
+ _module__.PluginHost::JSONRPC::Unregister(_T("cookiejar"));
75
+ }
76
+
77
+ namespace Event {
78
+
79
+ // Event: 'cookiejarchanged' - Notifies that cookies were added, removed or modified
80
+ template<typename MODULE>
81
+ static void CookieJarChanged(const MODULE& module_, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
82
+ {
83
+ module_.Notify(_T("cookiejarchanged"), sendIfMethod_);
84
+ }
85
+
86
+ } // namespace Event
87
+
88
+ POP_WARNING()
89
+ POP_WARNING()
90
+ POP_WARNING()
91
+
92
+ } // namespace JBrowserCookieJar
93
+
94
+ } // namespace Exchange
95
+
96
+ } // namespace WPEFramework
97
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JBrowserResources.h ADDED
@@ -0,0 +1,134 @@
1
+ // Generated automatically from 'IBrowser.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_BrowserResources.h"
6
+ #include <interfaces/IBrowser.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JBrowserResources {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IBrowserResources* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JBrowserResources"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Property: 'userscripts' - User scripts used by the browser
36
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::ArrayType<Core::JSON::String>, Core::JSON::ArrayType<Core::JSON::String>>(_T("userscripts"),
37
+ [_implementation__](const Core::JSON::ArrayType<Core::JSON::String>& params, Core::JSON::ArrayType<Core::JSON::String>& result) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ if (params.IsSet() == false) {
41
+ ::WPEFramework::RPC::IIteratorType<string, ::WPEFramework::RPC::ID_STRINGITERATOR>* _result_{};
42
+
43
+ _errorCode__ = (static_cast<const IBrowserResources*>(_implementation__))->UserScripts(_result_);
44
+
45
+ if (_errorCode__ == Core::ERROR_NONE) {
46
+ result.Set(true);
47
+
48
+ if (_result_ != nullptr) {
49
+ string _resultItem__{};
50
+ while (_result_->Next(_resultItem__) == true) { result.Add() = _resultItem__; }
51
+ _result_->Release();
52
+ }
53
+ }
54
+ }
55
+ else {
56
+ ::WPEFramework::RPC::IIteratorType<string, ::WPEFramework::RPC::ID_STRINGITERATOR>* _params_{};
57
+ std::list<string> _paramsElements_{};
58
+ auto _paramsIterator_ = params.Elements();
59
+ while (_paramsIterator_.Next() == true) { _paramsElements_.push_back(_paramsIterator_.Current()); }
60
+ using _paramsIteratorImplType_ = ::WPEFramework::RPC::IteratorType<::WPEFramework::RPC::IIteratorType<string, ::WPEFramework::RPC::ID_STRINGITERATOR>>;
61
+ _params_ = Core::ServiceType<_paramsIteratorImplType_>::Create<::WPEFramework::RPC::IIteratorType<string, ::WPEFramework::RPC::ID_STRINGITERATOR>>(std::move(_paramsElements_));
62
+ ASSERT(_params_ != nullptr);
63
+
64
+ _errorCode__ = _implementation__->UserScripts(static_cast<::WPEFramework::RPC::IIteratorType<string, ::WPEFramework::RPC::ID_STRINGITERATOR>* const&>(_params_));
65
+ if (_params_ != nullptr) {
66
+ _params_->Release();
67
+ }
68
+
69
+ result.Null(true);
70
+ }
71
+
72
+ return (_errorCode__);
73
+ });
74
+
75
+ // Property: 'userstylesheets' - User style sheets used by the browser
76
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::ArrayType<Core::JSON::String>, Core::JSON::ArrayType<Core::JSON::String>>(_T("userstylesheets"),
77
+ [_implementation__](const Core::JSON::ArrayType<Core::JSON::String>& params, Core::JSON::ArrayType<Core::JSON::String>& result) -> uint32_t {
78
+ uint32_t _errorCode__ = Core::ERROR_NONE;
79
+
80
+ if (params.IsSet() == false) {
81
+ ::WPEFramework::RPC::IIteratorType<string, ::WPEFramework::RPC::ID_STRINGITERATOR>* _result_{};
82
+
83
+ _errorCode__ = (static_cast<const IBrowserResources*>(_implementation__))->UserStyleSheets(_result_);
84
+
85
+ if (_errorCode__ == Core::ERROR_NONE) {
86
+ result.Set(true);
87
+
88
+ if (_result_ != nullptr) {
89
+ string _resultItem__{};
90
+ while (_result_->Next(_resultItem__) == true) { result.Add() = _resultItem__; }
91
+ _result_->Release();
92
+ }
93
+ }
94
+ }
95
+ else {
96
+ ::WPEFramework::RPC::IIteratorType<string, ::WPEFramework::RPC::ID_STRINGITERATOR>* _params_{};
97
+ std::list<string> _paramsElements_{};
98
+ auto _paramsIterator_ = params.Elements();
99
+ while (_paramsIterator_.Next() == true) { _paramsElements_.push_back(_paramsIterator_.Current()); }
100
+ using _paramsIteratorImplType_ = ::WPEFramework::RPC::IteratorType<::WPEFramework::RPC::IIteratorType<string, ::WPEFramework::RPC::ID_STRINGITERATOR>>;
101
+ _params_ = Core::ServiceType<_paramsIteratorImplType_>::Create<::WPEFramework::RPC::IIteratorType<string, ::WPEFramework::RPC::ID_STRINGITERATOR>>(std::move(_paramsElements_));
102
+ ASSERT(_params_ != nullptr);
103
+
104
+ _errorCode__ = _implementation__->UserStyleSheets(static_cast<::WPEFramework::RPC::IIteratorType<string, ::WPEFramework::RPC::ID_STRINGITERATOR>* const&>(_params_));
105
+ if (_params_ != nullptr) {
106
+ _params_->Release();
107
+ }
108
+
109
+ result.Null(true);
110
+ }
111
+
112
+ return (_errorCode__);
113
+ });
114
+
115
+ }
116
+
117
+ template<typename MODULE>
118
+ static void Unregister(MODULE& _module__)
119
+ {
120
+ // Unregister methods and properties...
121
+ _module__.PluginHost::JSONRPC::Unregister(_T("userscripts"));
122
+ _module__.PluginHost::JSONRPC::Unregister(_T("userstylesheets"));
123
+ }
124
+
125
+ POP_WARNING()
126
+ POP_WARNING()
127
+ POP_WARNING()
128
+
129
+ } // namespace JBrowserResources
130
+
131
+ } // namespace Exchange
132
+
133
+ } // namespace WPEFramework
134
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JBrowserScripting.h ADDED
@@ -0,0 +1,102 @@
1
+ // Generated automatically from 'IBrowser.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_BrowserScripting.h"
6
+ #include <interfaces/IBrowser.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JBrowserScripting {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IBrowserScripting* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JBrowserScripting"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Method: 'runjavascript' - Run javascript in main frame
36
+ _module__.PluginHost::JSONRPC::Register<JsonData::BrowserScripting::RunJavaScriptParamsData, void>(_T("runjavascript"),
37
+ [_implementation__](const JsonData::BrowserScripting::RunJavaScriptParamsData& params) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
41
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
42
+ }
43
+ else {
44
+ const string _script_{params.Script};
45
+
46
+ _errorCode__ = _implementation__->RunJavaScript(_script_);
47
+
48
+ }
49
+
50
+ return (_errorCode__);
51
+ });
52
+
53
+ // Method: 'adduserscript' - Add user script to be executed at document start
54
+ _module__.PluginHost::JSONRPC::Register<JsonData::BrowserScripting::AddUserScriptParamsData, void>(_T("adduserscript"),
55
+ [_implementation__](const JsonData::BrowserScripting::AddUserScriptParamsData& params) -> uint32_t {
56
+ uint32_t _errorCode__ = Core::ERROR_NONE;
57
+
58
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
59
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
60
+ }
61
+ else {
62
+ const string _script_{params.Script};
63
+ const bool _topFrameOnly_{params.TopFrameOnly};
64
+
65
+ _errorCode__ = _implementation__->AddUserScript(_script_, _topFrameOnly_);
66
+
67
+ }
68
+
69
+ return (_errorCode__);
70
+ });
71
+
72
+ // Method: 'removealluserscripts' - Remove all user scripts
73
+ _module__.PluginHost::JSONRPC::Register<void, void>(_T("removealluserscripts"),
74
+ [_implementation__]() -> uint32_t {
75
+ uint32_t _errorCode__ = Core::ERROR_NONE;
76
+
77
+ _errorCode__ = _implementation__->RemoveAllUserScripts();
78
+
79
+ return (_errorCode__);
80
+ });
81
+
82
+ }
83
+
84
+ template<typename MODULE>
85
+ static void Unregister(MODULE& _module__)
86
+ {
87
+ // Unregister methods and properties...
88
+ _module__.PluginHost::JSONRPC::Unregister(_T("runjavascript"));
89
+ _module__.PluginHost::JSONRPC::Unregister(_T("adduserscript"));
90
+ _module__.PluginHost::JSONRPC::Unregister(_T("removealluserscripts"));
91
+ }
92
+
93
+ POP_WARNING()
94
+ POP_WARNING()
95
+ POP_WARNING()
96
+
97
+ } // namespace JBrowserScripting
98
+
99
+ } // namespace Exchange
100
+
101
+ } // namespace WPEFramework
102
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JBrowserSecurity.h ADDED
@@ -0,0 +1,104 @@
1
+ // Generated automatically from 'IBrowser.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_BrowserSecurity.h"
6
+ #include <interfaces/IBrowser.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JBrowserSecurity {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IBrowserSecurity* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JBrowserSecurity"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Property: 'securityprofile' - Security profile for secure connections
36
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::String, Core::JSON::String>(_T("securityprofile"),
37
+ [_implementation__](const Core::JSON::String& params, Core::JSON::String& result) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ if (params.IsSet() == false) {
41
+ string _result_{};
42
+
43
+ _errorCode__ = (static_cast<const IBrowserSecurity*>(_implementation__))->SecurityProfile(_result_);
44
+
45
+ if (_errorCode__ == Core::ERROR_NONE) {
46
+ result = _result_;
47
+ }
48
+ }
49
+ else {
50
+ const string _params_{params};
51
+
52
+ _errorCode__ = _implementation__->SecurityProfile(_params_);
53
+
54
+ result.Null(true);
55
+ }
56
+
57
+ return (_errorCode__);
58
+ });
59
+
60
+ // Property: 'mixedcontentpolicy' - Mixed content policy
61
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::EnumType<Exchange::IBrowserSecurity::MixedContentPolicyType>, Core::JSON::EnumType<Exchange::IBrowserSecurity::MixedContentPolicyType>>(_T("mixedcontentpolicy"),
62
+ [_implementation__](const Core::JSON::EnumType<Exchange::IBrowserSecurity::MixedContentPolicyType>& params, Core::JSON::EnumType<Exchange::IBrowserSecurity::MixedContentPolicyType>& result) -> uint32_t {
63
+ uint32_t _errorCode__ = Core::ERROR_NONE;
64
+
65
+ if (params.IsSet() == false) {
66
+ Exchange::IBrowserSecurity::MixedContentPolicyType _result_{};
67
+
68
+ _errorCode__ = (static_cast<const IBrowserSecurity*>(_implementation__))->MixedContentPolicy(_result_);
69
+
70
+ if (_errorCode__ == Core::ERROR_NONE) {
71
+ result = _result_;
72
+ }
73
+ }
74
+ else {
75
+ const Exchange::IBrowserSecurity::MixedContentPolicyType _params_{params};
76
+
77
+ _errorCode__ = _implementation__->MixedContentPolicy(_params_);
78
+
79
+ result.Null(true);
80
+ }
81
+
82
+ return (_errorCode__);
83
+ });
84
+
85
+ }
86
+
87
+ template<typename MODULE>
88
+ static void Unregister(MODULE& _module__)
89
+ {
90
+ // Unregister methods and properties...
91
+ _module__.PluginHost::JSONRPC::Unregister(_T("securityprofile"));
92
+ _module__.PluginHost::JSONRPC::Unregister(_T("mixedcontentpolicy"));
93
+ }
94
+
95
+ POP_WARNING()
96
+ POP_WARNING()
97
+ POP_WARNING()
98
+
99
+ } // namespace JBrowserSecurity
100
+
101
+ } // namespace Exchange
102
+
103
+ } // namespace WPEFramework
104
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JButler.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'Butler.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_Butler.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JButler {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JButler
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JCobalt.h ADDED
@@ -0,0 +1,25 @@
1
+ // Generated automatically from 'Cobalt.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+
6
+ namespace WPEFramework {
7
+
8
+ namespace Exchange {
9
+
10
+ namespace JCobalt {
11
+
12
+ namespace Version {
13
+
14
+ constexpr uint8_t Major = 1;
15
+ constexpr uint8_t Minor = 0;
16
+ constexpr uint8_t Patch = 0;
17
+
18
+ } // namespace Version
19
+
20
+ } // namespace JCobalt
21
+
22
+ } // namespace Exchange
23
+
24
+ } // namespace WPEFramework
25
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JCompositor.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'Compositor.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_Compositor.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JCompositor {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JCompositor
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JConnectionProperties.h ADDED
@@ -0,0 +1,279 @@
1
+ // Generated automatically from 'IDisplayInfo.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_ConnectionProperties.h"
6
+ #include <interfaces/IDisplayInfo.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JConnectionProperties {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IConnectionProperties* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JConnectionProperties"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Method: 'edid' - TV's Extended Display Identification Data
36
+ _module__.PluginHost::JSONRPC::Register<JsonData::ConnectionProperties::EDIDParamsData, JsonData::ConnectionProperties::EDIDResultData>(_T("edid"),
37
+ [_implementation__](const JsonData::ConnectionProperties::EDIDParamsData& params, JsonData::ConnectionProperties::EDIDResultData& result) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
41
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
42
+ }
43
+ else {
44
+ uint16_t _length_{params.Length.Value()};
45
+ uint8_t* _data_{};
46
+
47
+ if (_length_ != 0) {
48
+ _data_ = reinterpret_cast<uint8_t*>(ALLOCA(_length_));
49
+ ASSERT(_data_ != nullptr);
50
+ }
51
+
52
+ _errorCode__ = _implementation__->EDID(_length_, _data_);
53
+
54
+ if (_errorCode__ == Core::ERROR_NONE) {
55
+ result.Length = _length_;
56
+
57
+ if ((_length_ != 0) && (_data_ != nullptr)) {
58
+ string _dataEncoded__;
59
+ Core::ToString(_data_, _length_, true, _dataEncoded__);
60
+ result.Data = std::move(_dataEncoded__);
61
+ }
62
+ }
63
+ }
64
+
65
+ return (_errorCode__);
66
+ });
67
+
68
+ // Method: 'widthincentimeters' - Horizontal size in centimeters
69
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::DecUInt8>(_T("widthincentimeters"),
70
+ [_implementation__](Core::JSON::DecUInt8& width) -> uint32_t {
71
+ uint32_t _errorCode__ = Core::ERROR_NONE;
72
+
73
+ uint8_t _width_{};
74
+
75
+ _errorCode__ = _implementation__->WidthInCentimeters(_width_);
76
+
77
+ if (_errorCode__ == Core::ERROR_NONE) {
78
+ width = _width_;
79
+ }
80
+
81
+ return (_errorCode__);
82
+ });
83
+
84
+ // Method: 'heightincentimeters' - Vertical size in centimeters
85
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::DecUInt8>(_T("heightincentimeters"),
86
+ [_implementation__](Core::JSON::DecUInt8& height) -> uint32_t {
87
+ uint32_t _errorCode__ = Core::ERROR_NONE;
88
+
89
+ uint8_t _height_{};
90
+
91
+ _errorCode__ = _implementation__->HeightInCentimeters(_height_);
92
+
93
+ if (_errorCode__ == Core::ERROR_NONE) {
94
+ height = _height_;
95
+ }
96
+
97
+ return (_errorCode__);
98
+ });
99
+
100
+ // Property: 'isaudiopassthrough' - Current audio passthrough status on HDMI (r/o)
101
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::Boolean>(_T("isaudiopassthrough"),
102
+ [_implementation__](Core::JSON::Boolean& result) -> uint32_t {
103
+ uint32_t _errorCode__ = Core::ERROR_NONE;
104
+
105
+ bool _result_{};
106
+
107
+ _errorCode__ = _implementation__->IsAudioPassthrough(_result_);
108
+
109
+ if (_errorCode__ == Core::ERROR_NONE) {
110
+ result = _result_;
111
+ }
112
+
113
+ return (_errorCode__);
114
+ });
115
+
116
+ // Property: 'connected' - Current HDMI connection status (r/o)
117
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::Boolean>(_T("connected"),
118
+ [_implementation__](Core::JSON::Boolean& result) -> uint32_t {
119
+ uint32_t _errorCode__ = Core::ERROR_NONE;
120
+
121
+ bool _result_{};
122
+
123
+ _errorCode__ = _implementation__->Connected(_result_);
124
+
125
+ if (_errorCode__ == Core::ERROR_NONE) {
126
+ result = _result_;
127
+ }
128
+
129
+ return (_errorCode__);
130
+ });
131
+
132
+ // Property: 'width' - Horizontal resolution of TV (r/o)
133
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::DecUInt32>(_T("width"),
134
+ [_implementation__](Core::JSON::DecUInt32& result) -> uint32_t {
135
+ uint32_t _errorCode__ = Core::ERROR_NONE;
136
+
137
+ uint32_t _result_{};
138
+
139
+ _errorCode__ = _implementation__->Width(_result_);
140
+
141
+ if (_errorCode__ == Core::ERROR_NONE) {
142
+ result = _result_;
143
+ }
144
+
145
+ return (_errorCode__);
146
+ });
147
+
148
+ // Property: 'height' - Vertical resolution of TV (r/o)
149
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::DecUInt32>(_T("height"),
150
+ [_implementation__](Core::JSON::DecUInt32& result) -> uint32_t {
151
+ uint32_t _errorCode__ = Core::ERROR_NONE;
152
+
153
+ uint32_t _result_{};
154
+
155
+ _errorCode__ = _implementation__->Height(_result_);
156
+
157
+ if (_errorCode__ == Core::ERROR_NONE) {
158
+ result = _result_;
159
+ }
160
+
161
+ return (_errorCode__);
162
+ });
163
+
164
+ // Property: 'verticalfreq' - Vertical Frequency (r/o)
165
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::DecUInt32>(_T("verticalfreq"),
166
+ [_implementation__](Core::JSON::DecUInt32& result) -> uint32_t {
167
+ uint32_t _errorCode__ = Core::ERROR_NONE;
168
+
169
+ uint32_t _result_{};
170
+
171
+ _errorCode__ = _implementation__->VerticalFreq(_result_);
172
+
173
+ if (_errorCode__ == Core::ERROR_NONE) {
174
+ result = _result_;
175
+ }
176
+
177
+ return (_errorCode__);
178
+ });
179
+
180
+ // Property: 'hdcpprotection' - HDCP protocol used for transmission
181
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::EnumType<Exchange::IConnectionProperties::HDCPProtectionType>, Core::JSON::EnumType<Exchange::IConnectionProperties::HDCPProtectionType>>(_T("hdcpprotection"),
182
+ [_implementation__](const Core::JSON::EnumType<Exchange::IConnectionProperties::HDCPProtectionType>& params, Core::JSON::EnumType<Exchange::IConnectionProperties::HDCPProtectionType>& result) -> uint32_t {
183
+ uint32_t _errorCode__ = Core::ERROR_NONE;
184
+
185
+ if (params.IsSet() == false) {
186
+ Exchange::IConnectionProperties::HDCPProtectionType _result_{};
187
+
188
+ _errorCode__ = (static_cast<const IConnectionProperties*>(_implementation__))->HDCPProtection(_result_);
189
+
190
+ if (_errorCode__ == Core::ERROR_NONE) {
191
+ result = _result_;
192
+ }
193
+ }
194
+ else {
195
+ const Exchange::IConnectionProperties::HDCPProtectionType _params_{params};
196
+
197
+ _errorCode__ = _implementation__->HDCPProtection(_params_);
198
+
199
+ result.Null(true);
200
+ }
201
+
202
+ return (_errorCode__);
203
+ });
204
+
205
+ // Property: 'portname' - Video output port on the STB used for connection to TV (r/o)
206
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::String>(_T("portname"),
207
+ [_implementation__](Core::JSON::String& result) -> uint32_t {
208
+ uint32_t _errorCode__ = Core::ERROR_NONE;
209
+
210
+ string _result_{};
211
+
212
+ _errorCode__ = _implementation__->PortName(_result_);
213
+
214
+ if (_errorCode__ == Core::ERROR_NONE) {
215
+ result = _result_;
216
+ }
217
+
218
+ return (_errorCode__);
219
+ });
220
+
221
+ }
222
+
223
+ template<typename MODULE>
224
+ static void Unregister(MODULE& _module__)
225
+ {
226
+ // Unregister methods and properties...
227
+ _module__.PluginHost::JSONRPC::Unregister(_T("edid"));
228
+ _module__.PluginHost::JSONRPC::Unregister(_T("widthincentimeters"));
229
+ _module__.PluginHost::JSONRPC::Unregister(_T("heightincentimeters"));
230
+ _module__.PluginHost::JSONRPC::Unregister(_T("isaudiopassthrough"));
231
+ _module__.PluginHost::JSONRPC::Unregister(_T("connected"));
232
+ _module__.PluginHost::JSONRPC::Unregister(_T("width"));
233
+ _module__.PluginHost::JSONRPC::Unregister(_T("height"));
234
+ _module__.PluginHost::JSONRPC::Unregister(_T("verticalfreq"));
235
+ _module__.PluginHost::JSONRPC::Unregister(_T("hdcpprotection"));
236
+ _module__.PluginHost::JSONRPC::Unregister(_T("portname"));
237
+ }
238
+
239
+ namespace Event {
240
+
241
+ // Event: 'updated'
242
+ template<typename MODULE>
243
+ static void Updated(const MODULE& module_, const JsonData::ConnectionProperties::UpdatedParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
244
+ {
245
+ module_.Notify(_T("updated"), params, sendIfMethod_);
246
+ }
247
+
248
+ // Event: 'updated'
249
+ template<typename MODULE>
250
+ static void Updated(const MODULE& module_, const Core::JSON::EnumType<Exchange::IConnectionProperties::INotification::Source>& event, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
251
+ {
252
+ JsonData::ConnectionProperties::UpdatedParamsData params_;
253
+ params_.Event = event;
254
+
255
+ Updated(module_, params_, sendIfMethod_);
256
+ }
257
+
258
+ // Event: 'updated'
259
+ template<typename MODULE>
260
+ static void Updated(const MODULE& module_, const IConnectionProperties::INotification::Source event, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
261
+ {
262
+ JsonData::ConnectionProperties::UpdatedParamsData params_;
263
+ params_.Event = event;
264
+
265
+ Updated(module_, params_, sendIfMethod_);
266
+ }
267
+
268
+ } // namespace Event
269
+
270
+ POP_WARNING()
271
+ POP_WARNING()
272
+ POP_WARNING()
273
+
274
+ } // namespace JConnectionProperties
275
+
276
+ } // namespace Exchange
277
+
278
+ } // namespace WPEFramework
279
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JContainers.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'Containers.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_Containers.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JContainers {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JContainers
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JCustomerCareOperations.h ADDED
@@ -0,0 +1,62 @@
1
+ // Generated automatically from 'ICustomerCareOperations.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include <interfaces/ICustomerCareOperations.h>
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JCustomerCareOperations {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
22
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
23
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
24
+
25
+ template<typename MODULE>
26
+ static void Register(MODULE& _module__, ICustomerCareOperations* _implementation__)
27
+ {
28
+ ASSERT(_implementation__ != nullptr);
29
+
30
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JCustomerCareOperations"), Version::Major, Version::Minor, Version::Patch);
31
+
32
+ // Register methods and properties...
33
+
34
+ // Method: 'factoryreset' - Executes all operations needed for a plugin's factory reset
35
+ _module__.PluginHost::JSONRPC::Register<void, void>(_T("factoryreset"),
36
+ [_implementation__]() -> uint32_t {
37
+ uint32_t _errorCode__ = Core::ERROR_NONE;
38
+
39
+ _errorCode__ = _implementation__->FactoryReset();
40
+
41
+ return (_errorCode__);
42
+ });
43
+
44
+ }
45
+
46
+ template<typename MODULE>
47
+ static void Unregister(MODULE& _module__)
48
+ {
49
+ // Unregister methods and properties...
50
+ _module__.PluginHost::JSONRPC::Unregister(_T("factoryreset"));
51
+ }
52
+
53
+ POP_WARNING()
54
+ POP_WARNING()
55
+ POP_WARNING()
56
+
57
+ } // namespace JCustomerCareOperations
58
+
59
+ } // namespace Exchange
60
+
61
+ } // namespace WPEFramework
62
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JDHCPServer.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'DHCPServer.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_DHCPServer.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JDHCPServer {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JDHCPServer
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JDIALServer.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'DIALServer.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_DIALServer.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JDIALServer {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JDIALServer
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JDTV.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'DTV.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_DTV.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JDTV {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JDTV
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JDeviceIdentification.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'DeviceIdentification.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_DeviceIdentification.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JDeviceIdentification {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JDeviceIdentification
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JDeviceInfo.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'DeviceInfo.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_DeviceInfo.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JDeviceInfo {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JDeviceInfo
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JDisplayInfo.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'DisplayInfo.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_DisplayInfo.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JDisplayInfo {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JDisplayInfo
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JDisplayProperties.h ADDED
@@ -0,0 +1,160 @@
1
+ // Generated automatically from 'IDisplayInfo.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_DisplayProperties.h"
6
+ #include <interfaces/IDisplayInfo.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JDisplayProperties {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IDisplayProperties* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JDisplayProperties"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Property: 'colorspace' - Provides access to the display's Colour space (chroma subsampling format) (r/o)
36
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::EnumType<Exchange::IDisplayProperties::ColourSpaceType>>(_T("colorspace"),
37
+ [_implementation__](Core::JSON::EnumType<Exchange::IDisplayProperties::ColourSpaceType>& result) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ Exchange::IDisplayProperties::ColourSpaceType _result_{};
41
+
42
+ _errorCode__ = _implementation__->ColorSpace(_result_);
43
+
44
+ if (_errorCode__ == Core::ERROR_NONE) {
45
+ result = _result_;
46
+ }
47
+
48
+ return (_errorCode__);
49
+ });
50
+
51
+ // Property: 'framerate' - Provides access to Frame Rate (r/o)
52
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::EnumType<Exchange::IDisplayProperties::FrameRateType>>(_T("framerate"),
53
+ [_implementation__](Core::JSON::EnumType<Exchange::IDisplayProperties::FrameRateType>& result) -> uint32_t {
54
+ uint32_t _errorCode__ = Core::ERROR_NONE;
55
+
56
+ Exchange::IDisplayProperties::FrameRateType _result_{};
57
+
58
+ _errorCode__ = _implementation__->FrameRate(_result_);
59
+
60
+ if (_errorCode__ == Core::ERROR_NONE) {
61
+ result = _result_;
62
+ }
63
+
64
+ return (_errorCode__);
65
+ });
66
+
67
+ // Property: 'colourdepth' - Provides access to display's colour Depth (r/o)
68
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::EnumType<Exchange::IDisplayProperties::ColourDepthType>>(_T("colourdepth"),
69
+ [_implementation__](Core::JSON::EnumType<Exchange::IDisplayProperties::ColourDepthType>& result) -> uint32_t {
70
+ uint32_t _errorCode__ = Core::ERROR_NONE;
71
+
72
+ Exchange::IDisplayProperties::ColourDepthType _result_{};
73
+
74
+ _errorCode__ = _implementation__->ColourDepth(_result_);
75
+
76
+ if (_errorCode__ == Core::ERROR_NONE) {
77
+ result = _result_;
78
+ }
79
+
80
+ return (_errorCode__);
81
+ });
82
+
83
+ // Property: 'colorimetry' - Provides access to display's colorimetry (r/o)
84
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::ArrayType<Core::JSON::EnumType<Exchange::IDisplayProperties::ColorimetryType>>>(_T("colorimetry"),
85
+ [_implementation__](Core::JSON::ArrayType<Core::JSON::EnumType<Exchange::IDisplayProperties::ColorimetryType>>& result) -> uint32_t {
86
+ uint32_t _errorCode__ = Core::ERROR_NONE;
87
+
88
+ ::WPEFramework::RPC::IIteratorType<IDisplayProperties::ColorimetryType, ID_COLORIMETRY_ITERATOR>* _result_{};
89
+
90
+ _errorCode__ = _implementation__->Colorimetry(_result_);
91
+
92
+ if (_errorCode__ == Core::ERROR_NONE) {
93
+ result.Set(true);
94
+
95
+ if (_result_ != nullptr) {
96
+ Exchange::IDisplayProperties::ColorimetryType _resultItem__{};
97
+ while (_result_->Next(_resultItem__) == true) { result.Add() = _resultItem__; }
98
+ _result_->Release();
99
+ }
100
+ }
101
+
102
+ return (_errorCode__);
103
+ });
104
+
105
+ // Property: 'quantizationrange' - Provides access to display's Qauntization Range (r/o)
106
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::EnumType<Exchange::IDisplayProperties::QuantizationRangeType>>(_T("quantizationrange"),
107
+ [_implementation__](Core::JSON::EnumType<Exchange::IDisplayProperties::QuantizationRangeType>& result) -> uint32_t {
108
+ uint32_t _errorCode__ = Core::ERROR_NONE;
109
+
110
+ Exchange::IDisplayProperties::QuantizationRangeType _result_{};
111
+
112
+ _errorCode__ = _implementation__->QuantizationRange(_result_);
113
+
114
+ if (_errorCode__ == Core::ERROR_NONE) {
115
+ result = _result_;
116
+ }
117
+
118
+ return (_errorCode__);
119
+ });
120
+
121
+ // Property: 'eotf' - Provides access to display's Electro optical transfer function (r/o)
122
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::EnumType<Exchange::IDisplayProperties::EotfType>>(_T("eotf"),
123
+ [_implementation__](Core::JSON::EnumType<Exchange::IDisplayProperties::EotfType>& result) -> uint32_t {
124
+ uint32_t _errorCode__ = Core::ERROR_NONE;
125
+
126
+ Exchange::IDisplayProperties::EotfType _result_{};
127
+
128
+ _errorCode__ = _implementation__->EOTF(_result_);
129
+
130
+ if (_errorCode__ == Core::ERROR_NONE) {
131
+ result = _result_;
132
+ }
133
+
134
+ return (_errorCode__);
135
+ });
136
+
137
+ }
138
+
139
+ template<typename MODULE>
140
+ static void Unregister(MODULE& _module__)
141
+ {
142
+ // Unregister methods and properties...
143
+ _module__.PluginHost::JSONRPC::Unregister(_T("colorspace"));
144
+ _module__.PluginHost::JSONRPC::Unregister(_T("framerate"));
145
+ _module__.PluginHost::JSONRPC::Unregister(_T("colourdepth"));
146
+ _module__.PluginHost::JSONRPC::Unregister(_T("colorimetry"));
147
+ _module__.PluginHost::JSONRPC::Unregister(_T("quantizationrange"));
148
+ _module__.PluginHost::JSONRPC::Unregister(_T("eotf"));
149
+ }
150
+
151
+ POP_WARNING()
152
+ POP_WARNING()
153
+ POP_WARNING()
154
+
155
+ } // namespace JDisplayProperties
156
+
157
+ } // namespace Exchange
158
+
159
+ } // namespace WPEFramework
160
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JDolbyOutput.h ADDED
@@ -0,0 +1,248 @@
1
+ // Generated automatically from 'IDolby.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_DolbyOutput.h"
6
+ #include <interfaces/IDolby.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace Dolby {
13
+
14
+ namespace JOutput {
15
+
16
+ namespace Version {
17
+
18
+ constexpr uint8_t Major = 1;
19
+ constexpr uint8_t Minor = 0;
20
+ constexpr uint8_t Patch = 0;
21
+
22
+ } // namespace Version
23
+
24
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
25
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
26
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
27
+
28
+ template<typename MODULE>
29
+ static void Register(MODULE& _module__, Dolby::IOutput* _implementation__)
30
+ {
31
+ ASSERT(_implementation__ != nullptr);
32
+
33
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JOutput"), Version::Major, Version::Minor, Version::Patch);
34
+
35
+ // Register methods and properties...
36
+
37
+ // Property: 'dolbyatmossupported' - Atmos capabilities of Sink (r/o)
38
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::Boolean>(_T("dolbyatmossupported"),
39
+ [_implementation__](Core::JSON::Boolean& result) -> uint32_t {
40
+ uint32_t _errorCode__ = Core::ERROR_NONE;
41
+
42
+ bool _result_{};
43
+
44
+ _errorCode__ = _implementation__->AtmosMetadata(_result_);
45
+
46
+ if (_errorCode__ == Core::ERROR_NONE) {
47
+ result = _result_;
48
+ }
49
+
50
+ return (_errorCode__);
51
+ });
52
+
53
+ // Property: 'dolby_atmosmetadata' - Atmos capabilities of Sink (DEPRECATED) (r/o)
54
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::Boolean>(_T("dolby_atmosmetadata"),
55
+ [_implementation__](Core::JSON::Boolean& result) -> uint32_t {
56
+ uint32_t _errorCode__ = Core::ERROR_NONE;
57
+
58
+ bool _result_{};
59
+
60
+ _errorCode__ = _implementation__->AtmosMetadata(_result_);
61
+
62
+ if (_errorCode__ == Core::ERROR_NONE) {
63
+ result = _result_;
64
+ }
65
+
66
+ return (_errorCode__);
67
+ });
68
+
69
+ // Property: 'dolbysoundmode' - Sound Mode - Mono/Stereo/Surround (r/o)
70
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::EnumType<Exchange::Dolby::IOutput::SoundModes>>(_T("dolbysoundmode"),
71
+ [_implementation__](Core::JSON::EnumType<Exchange::Dolby::IOutput::SoundModes>& result) -> uint32_t {
72
+ uint32_t _errorCode__ = Core::ERROR_NONE;
73
+
74
+ Exchange::Dolby::IOutput::SoundModes _result_{};
75
+
76
+ _errorCode__ = _implementation__->SoundMode(_result_);
77
+
78
+ if (_errorCode__ == Core::ERROR_NONE) {
79
+ result = _result_;
80
+ }
81
+
82
+ return (_errorCode__);
83
+ });
84
+
85
+ // Property: 'dolby_soundmode' - Sound Mode - Mono/Stereo/Surround (DEPRECATED) (r/o)
86
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::EnumType<Exchange::Dolby::IOutput::SoundModes>>(_T("dolby_soundmode"),
87
+ [_implementation__](Core::JSON::EnumType<Exchange::Dolby::IOutput::SoundModes>& result) -> uint32_t {
88
+ uint32_t _errorCode__ = Core::ERROR_NONE;
89
+
90
+ Exchange::Dolby::IOutput::SoundModes _result_{};
91
+
92
+ _errorCode__ = _implementation__->SoundMode(_result_);
93
+
94
+ if (_errorCode__ == Core::ERROR_NONE) {
95
+ result = _result_;
96
+ }
97
+
98
+ return (_errorCode__);
99
+ });
100
+
101
+ // Property: 'dolbyatmosoutput' - Enable Atmos Audio Output (w/o)
102
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::Boolean, void>(_T("dolbyatmosoutput"),
103
+ [_implementation__](const Core::JSON::Boolean& params) -> uint32_t {
104
+ uint32_t _errorCode__ = Core::ERROR_NONE;
105
+
106
+ if (params.IsSet() == false) {
107
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
108
+ }
109
+ else {
110
+ const bool _params_{params};
111
+
112
+ _errorCode__ = _implementation__->EnableAtmosOutput(_params_);
113
+
114
+ }
115
+
116
+ return (_errorCode__);
117
+ });
118
+
119
+ // Property: 'dolby_enableatmosoutput' - Enable Atmos Audio Output (DEPRECATED) (w/o)
120
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::Boolean, void>(_T("dolby_enableatmosoutput"),
121
+ [_implementation__](const Core::JSON::Boolean& params) -> uint32_t {
122
+ uint32_t _errorCode__ = Core::ERROR_NONE;
123
+
124
+ if (params.IsSet() == false) {
125
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
126
+ }
127
+ else {
128
+ const bool _params_{params};
129
+
130
+ _errorCode__ = _implementation__->EnableAtmosOutput(_params_);
131
+
132
+ }
133
+
134
+ return (_errorCode__);
135
+ });
136
+
137
+ // Property: 'dolbymode' - Dolby Mode
138
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::EnumType<Exchange::Dolby::IOutput::Type>, Core::JSON::EnumType<Exchange::Dolby::IOutput::Type>>(_T("dolbymode"),
139
+ [_implementation__](const Core::JSON::EnumType<Exchange::Dolby::IOutput::Type>& params, Core::JSON::EnumType<Exchange::Dolby::IOutput::Type>& result) -> uint32_t {
140
+ uint32_t _errorCode__ = Core::ERROR_NONE;
141
+
142
+ if (params.IsSet() == false) {
143
+ Exchange::Dolby::IOutput::Type _result_{};
144
+
145
+ _errorCode__ = (static_cast<const Dolby::IOutput*>(_implementation__))->Mode(_result_);
146
+
147
+ if (_errorCode__ == Core::ERROR_NONE) {
148
+ result = _result_;
149
+ }
150
+ }
151
+ else {
152
+ const Exchange::Dolby::IOutput::Type _params_{params};
153
+
154
+ _errorCode__ = _implementation__->Mode(_params_);
155
+
156
+ result.Null(true);
157
+ }
158
+
159
+ return (_errorCode__);
160
+ });
161
+
162
+ // Property: 'dolby_mode' - Dolby Mode
163
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::EnumType<Exchange::Dolby::IOutput::Type>, Core::JSON::EnumType<Exchange::Dolby::IOutput::Type>>(_T("dolby_mode"),
164
+ [_implementation__](const Core::JSON::EnumType<Exchange::Dolby::IOutput::Type>& params, Core::JSON::EnumType<Exchange::Dolby::IOutput::Type>& result) -> uint32_t {
165
+ uint32_t _errorCode__ = Core::ERROR_NONE;
166
+
167
+ if (params.IsSet() == false) {
168
+ Exchange::Dolby::IOutput::Type _result_{};
169
+
170
+ _errorCode__ = (static_cast<const Dolby::IOutput*>(_implementation__))->Mode(_result_);
171
+
172
+ if (_errorCode__ == Core::ERROR_NONE) {
173
+ result = _result_;
174
+ }
175
+ }
176
+ else {
177
+ const Exchange::Dolby::IOutput::Type _params_{params};
178
+
179
+ _errorCode__ = _implementation__->Mode(_params_);
180
+
181
+ result.Null(true);
182
+ }
183
+
184
+ return (_errorCode__);
185
+ });
186
+
187
+ }
188
+
189
+ template<typename MODULE>
190
+ static void Unregister(MODULE& _module__)
191
+ {
192
+ // Unregister methods and properties...
193
+ _module__.PluginHost::JSONRPC::Unregister(_T("dolbyatmossupported"));
194
+ _module__.PluginHost::JSONRPC::Unregister(_T("dolby_atmosmetadata"));
195
+ _module__.PluginHost::JSONRPC::Unregister(_T("dolbysoundmode"));
196
+ _module__.PluginHost::JSONRPC::Unregister(_T("dolby_soundmode"));
197
+ _module__.PluginHost::JSONRPC::Unregister(_T("dolbyatmosoutput"));
198
+ _module__.PluginHost::JSONRPC::Unregister(_T("dolby_enableatmosoutput"));
199
+ _module__.PluginHost::JSONRPC::Unregister(_T("dolbymode"));
200
+ _module__.PluginHost::JSONRPC::Unregister(_T("dolby_mode"));
201
+ }
202
+
203
+ namespace Event {
204
+
205
+ // Event: 'soundmodechanged' - Signal audio mode change
206
+ template<typename MODULE>
207
+ static void AudioModeChanged(const MODULE& module_, const JsonData::Dolby::Output::AudioModeChangedParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
208
+ {
209
+ module_.Notify(_T("soundmodechanged"), params, sendIfMethod_);
210
+ module_.Notify(_T("dolby_audiomodechanged"), params, sendIfMethod_);
211
+ }
212
+
213
+ // Event: 'soundmodechanged' - Signal audio mode change
214
+ template<typename MODULE>
215
+ static void AudioModeChanged(const MODULE& module_, const Core::JSON::EnumType<Exchange::Dolby::IOutput::SoundModes>& mode, const Core::JSON::Boolean& enabled, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
216
+ {
217
+ JsonData::Dolby::Output::AudioModeChangedParamsData params_;
218
+ params_.Mode = mode;
219
+ params_.Enabled = enabled;
220
+
221
+ AudioModeChanged(module_, params_, sendIfMethod_);
222
+ }
223
+
224
+ // Event: 'soundmodechanged' - Signal audio mode change
225
+ template<typename MODULE>
226
+ static void AudioModeChanged(const MODULE& module_, const Dolby::IOutput::SoundModes mode, const bool enabled, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
227
+ {
228
+ JsonData::Dolby::Output::AudioModeChangedParamsData params_;
229
+ params_.Mode = mode;
230
+ params_.Enabled = enabled;
231
+
232
+ AudioModeChanged(module_, params_, sendIfMethod_);
233
+ }
234
+
235
+ } // namespace Event
236
+
237
+ POP_WARNING()
238
+ POP_WARNING()
239
+ POP_WARNING()
240
+
241
+ } // namespace JOutput
242
+
243
+ } // namespace Dolby
244
+
245
+ } // namespace Exchange
246
+
247
+ } // namespace WPEFramework
248
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JFirmwareControl.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'FirmwareControl.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_FirmwareControl.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JFirmwareControl {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JFirmwareControl
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JGraphicsProperties.h ADDED
@@ -0,0 +1,85 @@
1
+ // Generated automatically from 'IDisplayInfo.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include <interfaces/IDisplayInfo.h>
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JGraphicsProperties {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
22
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
23
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
24
+
25
+ template<typename MODULE>
26
+ static void Register(MODULE& _module__, IGraphicsProperties* _implementation__)
27
+ {
28
+ ASSERT(_implementation__ != nullptr);
29
+
30
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JGraphicsProperties"), Version::Major, Version::Minor, Version::Patch);
31
+
32
+ // Register methods and properties...
33
+
34
+ // Property: 'totalgpuram' - Total GPU DRAM memory (in bytes) (r/o)
35
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::DecUInt64>(_T("totalgpuram"),
36
+ [_implementation__](Core::JSON::DecUInt64& result) -> uint32_t {
37
+ uint32_t _errorCode__ = Core::ERROR_NONE;
38
+
39
+ uint64_t _result_{};
40
+
41
+ _errorCode__ = _implementation__->TotalGpuRam(_result_);
42
+
43
+ if (_errorCode__ == Core::ERROR_NONE) {
44
+ result = _result_;
45
+ }
46
+
47
+ return (_errorCode__);
48
+ });
49
+
50
+ // Property: 'freegpuram' - Free GPU DRAM memory (in bytes) (r/o)
51
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::DecUInt64>(_T("freegpuram"),
52
+ [_implementation__](Core::JSON::DecUInt64& result) -> uint32_t {
53
+ uint32_t _errorCode__ = Core::ERROR_NONE;
54
+
55
+ uint64_t _result_{};
56
+
57
+ _errorCode__ = _implementation__->FreeGpuRam(_result_);
58
+
59
+ if (_errorCode__ == Core::ERROR_NONE) {
60
+ result = _result_;
61
+ }
62
+
63
+ return (_errorCode__);
64
+ });
65
+
66
+ }
67
+
68
+ template<typename MODULE>
69
+ static void Unregister(MODULE& _module__)
70
+ {
71
+ // Unregister methods and properties...
72
+ _module__.PluginHost::JSONRPC::Unregister(_T("totalgpuram"));
73
+ _module__.PluginHost::JSONRPC::Unregister(_T("freegpuram"));
74
+ }
75
+
76
+ POP_WARNING()
77
+ POP_WARNING()
78
+ POP_WARNING()
79
+
80
+ } // namespace JGraphicsProperties
81
+
82
+ } // namespace Exchange
83
+
84
+ } // namespace WPEFramework
85
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JHDRProperties.h ADDED
@@ -0,0 +1,115 @@
1
+ // Generated automatically from 'IDisplayInfo.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_HDRProperties.h"
6
+ #include <interfaces/IDisplayInfo.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JHDRProperties {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IHDRProperties* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JHDRProperties"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Property: 'tvcapabilities' - HDR formats supported by TV (r/o)
36
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::ArrayType<Core::JSON::EnumType<Exchange::IHDRProperties::HDRType>>>(_T("tvcapabilities"),
37
+ [_implementation__](Core::JSON::ArrayType<Core::JSON::EnumType<Exchange::IHDRProperties::HDRType>>& result) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ ::WPEFramework::RPC::IIteratorType<IHDRProperties::HDRType, ID_HDR_ITERATOR>* _result_{};
41
+
42
+ _errorCode__ = _implementation__->TVCapabilities(_result_);
43
+
44
+ if (_errorCode__ == Core::ERROR_NONE) {
45
+ result.Set(true);
46
+
47
+ if (_result_ != nullptr) {
48
+ Exchange::IHDRProperties::HDRType _resultItem__{};
49
+ while (_result_->Next(_resultItem__) == true) { result.Add() = _resultItem__; }
50
+ _result_->Release();
51
+ }
52
+ }
53
+
54
+ return (_errorCode__);
55
+ });
56
+
57
+ // Property: 'stbcapabilities' - HDR formats supported by STB (r/o)
58
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::ArrayType<Core::JSON::EnumType<Exchange::IHDRProperties::HDRType>>>(_T("stbcapabilities"),
59
+ [_implementation__](Core::JSON::ArrayType<Core::JSON::EnumType<Exchange::IHDRProperties::HDRType>>& result) -> uint32_t {
60
+ uint32_t _errorCode__ = Core::ERROR_NONE;
61
+
62
+ ::WPEFramework::RPC::IIteratorType<IHDRProperties::HDRType, ID_HDR_ITERATOR>* _result_{};
63
+
64
+ _errorCode__ = _implementation__->STBCapabilities(_result_);
65
+
66
+ if (_errorCode__ == Core::ERROR_NONE) {
67
+ result.Set(true);
68
+
69
+ if (_result_ != nullptr) {
70
+ Exchange::IHDRProperties::HDRType _resultItem__{};
71
+ while (_result_->Next(_resultItem__) == true) { result.Add() = _resultItem__; }
72
+ _result_->Release();
73
+ }
74
+ }
75
+
76
+ return (_errorCode__);
77
+ });
78
+
79
+ // Property: 'hdrsetting' - HDR format in use (r/o)
80
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::EnumType<Exchange::IHDRProperties::HDRType>>(_T("hdrsetting"),
81
+ [_implementation__](Core::JSON::EnumType<Exchange::IHDRProperties::HDRType>& result) -> uint32_t {
82
+ uint32_t _errorCode__ = Core::ERROR_NONE;
83
+
84
+ Exchange::IHDRProperties::HDRType _result_{};
85
+
86
+ _errorCode__ = _implementation__->HDRSetting(_result_);
87
+
88
+ if (_errorCode__ == Core::ERROR_NONE) {
89
+ result = _result_;
90
+ }
91
+
92
+ return (_errorCode__);
93
+ });
94
+
95
+ }
96
+
97
+ template<typename MODULE>
98
+ static void Unregister(MODULE& _module__)
99
+ {
100
+ // Unregister methods and properties...
101
+ _module__.PluginHost::JSONRPC::Unregister(_T("tvcapabilities"));
102
+ _module__.PluginHost::JSONRPC::Unregister(_T("stbcapabilities"));
103
+ _module__.PluginHost::JSONRPC::Unregister(_T("hdrsetting"));
104
+ }
105
+
106
+ POP_WARNING()
107
+ POP_WARNING()
108
+ POP_WARNING()
109
+
110
+ } // namespace JHDRProperties
111
+
112
+ } // namespace Exchange
113
+
114
+ } // namespace WPEFramework
115
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JIOConnector.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'IOConnector.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_IOConnector.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JIOConnector {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JIOConnector
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JIOControl.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'IOControl.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_IOControl.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JIOControl {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JIOControl
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JInputSwitch.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'InputSwitch.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_InputSwitch.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JInputSwitch {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JInputSwitch
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JLISA.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'LISA.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_LISA.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JLISA {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JLISA
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JLanguageTag.h ADDED
@@ -0,0 +1,98 @@
1
+ // Generated automatically from 'ILanguageTag.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include <interfaces/ILanguageTag.h>
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JLanguageTag {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
22
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
23
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
24
+
25
+ template<typename MODULE>
26
+ static void Register(MODULE& _module__, ILanguageTag* _implementation__)
27
+ {
28
+ ASSERT(_implementation__ != nullptr);
29
+
30
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JLanguageTag"), Version::Major, Version::Minor, Version::Patch);
31
+
32
+ // Register methods and properties...
33
+
34
+ // Property: 'language' - Current application user interface language tag
35
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::String, Core::JSON::String>(_T("language"),
36
+ [_implementation__](const Core::JSON::String& params, Core::JSON::String& result) -> uint32_t {
37
+ uint32_t _errorCode__ = Core::ERROR_NONE;
38
+
39
+ if (params.IsSet() == false) {
40
+ string _result_{};
41
+
42
+ _errorCode__ = (static_cast<const ILanguageTag*>(_implementation__))->Language(_result_);
43
+
44
+ if (_errorCode__ == Core::ERROR_NONE) {
45
+ result = _result_;
46
+ }
47
+ }
48
+ else {
49
+ const string _params_{params};
50
+
51
+ _errorCode__ = _implementation__->Language(_params_);
52
+
53
+ result.Null(true);
54
+ }
55
+
56
+ return (_errorCode__);
57
+ });
58
+
59
+ }
60
+
61
+ template<typename MODULE>
62
+ static void Unregister(MODULE& _module__)
63
+ {
64
+ // Unregister methods and properties...
65
+ _module__.PluginHost::JSONRPC::Unregister(_T("language"));
66
+ }
67
+
68
+ namespace Event {
69
+
70
+ // Event: 'languagechanged' - Notify that the Language tag has been changed
71
+ template<typename MODULE>
72
+ static void LanguageChanged(const MODULE& module_, const Core::JSON::String& language, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
73
+ {
74
+ module_.Notify(_T("languagechanged"), language, sendIfMethod_);
75
+ }
76
+
77
+ // Event: 'languagechanged' - Notify that the Language tag has been changed
78
+ template<typename MODULE>
79
+ static void LanguageChanged(const MODULE& module_, const string& language, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
80
+ {
81
+ Core::JSON::String params_;
82
+ params_ = language;
83
+
84
+ LanguageChanged(module_, params_, sendIfMethod_);
85
+ }
86
+
87
+ } // namespace Event
88
+
89
+ POP_WARNING()
90
+ POP_WARNING()
91
+ POP_WARNING()
92
+
93
+ } // namespace JLanguageTag
94
+
95
+ } // namespace Exchange
96
+
97
+ } // namespace WPEFramework
98
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JLocationSync.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'LocationSync.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_LocationSync.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JLocationSync {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JLocationSync
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JMath.h ADDED
@@ -0,0 +1,100 @@
1
+ // Generated automatically from 'IMath.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_Math.h"
6
+ #include <interfaces/IMath.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JMath {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IMath* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JMath"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Method: 'add'
36
+ _module__.PluginHost::JSONRPC::Register<JsonData::Math::AddParamsInfo, Core::JSON::DecUInt16>(_T("add"),
37
+ [_implementation__](const JsonData::Math::AddParamsInfo& params, Core::JSON::DecUInt16& sum) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
41
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
42
+ }
43
+ else {
44
+ const uint16_t _a_{params.A};
45
+ const uint16_t _b_{params.B};
46
+ uint16_t _sum_{};
47
+
48
+ _errorCode__ = _implementation__->Add(_a_, _b_, _sum_);
49
+
50
+ if (_errorCode__ == Core::ERROR_NONE) {
51
+ sum = _sum_;
52
+ }
53
+ }
54
+
55
+ return (_errorCode__);
56
+ });
57
+
58
+ // Method: 'sub'
59
+ _module__.PluginHost::JSONRPC::Register<JsonData::Math::AddParamsInfo, Core::JSON::DecUInt16>(_T("sub"),
60
+ [_implementation__](const JsonData::Math::AddParamsInfo& params, Core::JSON::DecUInt16& sum) -> uint32_t {
61
+ uint32_t _errorCode__ = Core::ERROR_NONE;
62
+
63
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
64
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
65
+ }
66
+ else {
67
+ const uint16_t _a_{params.A};
68
+ const uint16_t _b_{params.B};
69
+ uint16_t _sum_{};
70
+
71
+ _errorCode__ = _implementation__->Sub(_a_, _b_, _sum_);
72
+
73
+ if (_errorCode__ == Core::ERROR_NONE) {
74
+ sum = _sum_;
75
+ }
76
+ }
77
+
78
+ return (_errorCode__);
79
+ });
80
+
81
+ }
82
+
83
+ template<typename MODULE>
84
+ static void Unregister(MODULE& _module__)
85
+ {
86
+ // Unregister methods and properties...
87
+ _module__.PluginHost::JSONRPC::Unregister(_T("add"));
88
+ _module__.PluginHost::JSONRPC::Unregister(_T("sub"));
89
+ }
90
+
91
+ POP_WARNING()
92
+ POP_WARNING()
93
+ POP_WARNING()
94
+
95
+ } // namespace JMath
96
+
97
+ } // namespace Exchange
98
+
99
+ } // namespace WPEFramework
100
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JMessageControl.h ADDED
@@ -0,0 +1,97 @@
1
+ // Generated automatically from 'IMessageControl.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_MessageControl.h"
6
+ #include <interfaces/IMessageControl.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JMessageControl {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IMessageControl* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JMessageControl"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Method: 'enable' - Enables/disables a message control
36
+ _module__.PluginHost::JSONRPC::Register<JsonData::MessageControl::ControlInfo, void>(_T("enable"),
37
+ [_implementation__](const JsonData::MessageControl::ControlInfo& params) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
41
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
42
+ }
43
+ else {
44
+ const Exchange::IMessageControl::messagetype _type_{params.Type};
45
+ const string _category_{params.Category};
46
+ const string _module_{params.Module};
47
+ const bool _enabled_{params.Enabled};
48
+
49
+ _errorCode__ = _implementation__->Enable(_type_, _category_, _module_, _enabled_);
50
+
51
+ }
52
+
53
+ return (_errorCode__);
54
+ });
55
+
56
+ // Property: 'controls' - Retrieves a list of current message controls (r/o)
57
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::ArrayType<JsonData::MessageControl::ControlInfo>>(_T("controls"),
58
+ [_implementation__](Core::JSON::ArrayType<JsonData::MessageControl::ControlInfo>& result) -> uint32_t {
59
+ uint32_t _errorCode__ = Core::ERROR_NONE;
60
+
61
+ ::WPEFramework::RPC::IIteratorType<IMessageControl::Control, ID_MESSAGE_CONTROL_ITERATOR>* _result_{};
62
+
63
+ _errorCode__ = _implementation__->Controls(_result_);
64
+
65
+ if (_errorCode__ == Core::ERROR_NONE) {
66
+ result.Set(true);
67
+
68
+ if (_result_ != nullptr) {
69
+ Exchange::IMessageControl::Control _resultItem__{};
70
+ while (_result_->Next(_resultItem__) == true) { result.Add() = _resultItem__; }
71
+ _result_->Release();
72
+ }
73
+ }
74
+
75
+ return (_errorCode__);
76
+ });
77
+
78
+ }
79
+
80
+ template<typename MODULE>
81
+ static void Unregister(MODULE& _module__)
82
+ {
83
+ // Unregister methods and properties...
84
+ _module__.PluginHost::JSONRPC::Unregister(_T("enable"));
85
+ _module__.PluginHost::JSONRPC::Unregister(_T("controls"));
86
+ }
87
+
88
+ POP_WARNING()
89
+ POP_WARNING()
90
+ POP_WARNING()
91
+
92
+ } // namespace JMessageControl
93
+
94
+ } // namespace Exchange
95
+
96
+ } // namespace WPEFramework
97
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JMessenger.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'Messenger.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_Messenger.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JMessenger {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JMessenger
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JMonitor.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'Monitor.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_Monitor.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JMonitor {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JMonitor
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JNetflix.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'Netflix.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_Netflix.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JNetflix {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JNetflix
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JNetworkControl.h ADDED
@@ -0,0 +1,291 @@
1
+ // Generated automatically from 'INetworkControl.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_NetworkControl.h"
6
+ #include <interfaces/INetworkControl.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JNetworkControl {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, INetworkControl* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JNetworkControl"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Method: 'flush' - Flush and reload requested interface
36
+ _module__.PluginHost::JSONRPC::Register<JsonData::NetworkControl::FlushParamsData, void>(_T("flush"),
37
+ [_implementation__](const JsonData::NetworkControl::FlushParamsData& params) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
41
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
42
+ }
43
+ else {
44
+ const string _interface_{params.Interface};
45
+
46
+ _errorCode__ = _implementation__->Flush(_interface_);
47
+
48
+ }
49
+
50
+ return (_errorCode__);
51
+ });
52
+
53
+ // Property: 'interfaces' - Currently available interfaces (r/o)
54
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::ArrayType<Core::JSON::String>>(_T("interfaces"),
55
+ [_implementation__](Core::JSON::ArrayType<Core::JSON::String>& result) -> uint32_t {
56
+ uint32_t _errorCode__ = Core::ERROR_NONE;
57
+
58
+ ::WPEFramework::RPC::IIteratorType<string, ::WPEFramework::RPC::ID_STRINGITERATOR>* _result_{};
59
+
60
+ _errorCode__ = _implementation__->Interfaces(_result_);
61
+
62
+ if (_errorCode__ == Core::ERROR_NONE) {
63
+ result.Set(true);
64
+
65
+ if (_result_ != nullptr) {
66
+ string _resultItem__{};
67
+ while (_result_->Next(_resultItem__) == true) { result.Add() = _resultItem__; }
68
+ _result_->Release();
69
+ }
70
+ }
71
+
72
+ return (_errorCode__);
73
+ });
74
+
75
+ // Indexed Property: 'status' - Status of requested interface (r/o)
76
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::EnumType<Exchange::INetworkControl::StatusType>, std::function<uint32_t(const string&, Core::JSON::EnumType<Exchange::INetworkControl::StatusType>&)>>(_T("status"),
77
+ [_implementation__](const string& interface, Core::JSON::EnumType<Exchange::INetworkControl::StatusType>& result) -> uint32_t {
78
+ uint32_t _errorCode__ = Core::ERROR_NONE;
79
+
80
+ if (interface.empty() == true) {
81
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
82
+ }
83
+
84
+ if (_errorCode__ == Core::ERROR_NONE) {
85
+ Exchange::INetworkControl::StatusType _result_{};
86
+
87
+ _errorCode__ = _implementation__->Status(interface, _result_);
88
+
89
+ if (_errorCode__ == Core::ERROR_NONE) {
90
+ result = _result_;
91
+ }
92
+ }
93
+
94
+ return (_errorCode__);
95
+ });
96
+
97
+ // Indexed Property: 'network' - Network info of requested interface
98
+ _module__.PluginHost::JSONRPC::Register<JsonData::NetworkControl::NetworkData, Core::JSON::ArrayType<JsonData::NetworkControl::NetworkInfoInfo>, std::function<uint32_t(const string&, const JsonData::NetworkControl::NetworkData&, Core::JSON::ArrayType<JsonData::NetworkControl::NetworkInfoInfo>&)>>(_T("network"),
99
+ [_implementation__](const string& interface, const JsonData::NetworkControl::NetworkData& params, Core::JSON::ArrayType<JsonData::NetworkControl::NetworkInfoInfo>& result) -> uint32_t {
100
+ uint32_t _errorCode__ = Core::ERROR_NONE;
101
+
102
+ if (interface.empty() == true) {
103
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
104
+ }
105
+
106
+ if (_errorCode__ == Core::ERROR_NONE) {
107
+
108
+ if (params.IsSet() == false) {
109
+ ::WPEFramework::RPC::IIteratorType<INetworkControl::NetworkInfo, ID_NETWORKCONTROL_NETWORK_INFO_ITERATOR>* _result_{};
110
+
111
+ _errorCode__ = (static_cast<const INetworkControl*>(_implementation__))->Network(interface, _result_);
112
+
113
+ if (_errorCode__ == Core::ERROR_NONE) {
114
+ result.Set(true);
115
+
116
+ if (_result_ != nullptr) {
117
+ Exchange::INetworkControl::NetworkInfo _resultItem__{};
118
+ while (_result_->Next(_resultItem__) == true) { result.Add() = _resultItem__; }
119
+ _result_->Release();
120
+ }
121
+ }
122
+ }
123
+ else {
124
+
125
+ if (params.IsDataValid() == false) {
126
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
127
+ }
128
+ else {
129
+ ::WPEFramework::RPC::IIteratorType<INetworkControl::NetworkInfo, ID_NETWORKCONTROL_NETWORK_INFO_ITERATOR>* _value_{};
130
+ std::list<Exchange::INetworkControl::NetworkInfo> _valueElements_{};
131
+ auto _valueIterator_ = params.Value.Elements();
132
+ while (_valueIterator_.Next() == true) { _valueElements_.push_back(_valueIterator_.Current()); }
133
+ using _valueIteratorImplType_ = ::WPEFramework::RPC::IteratorType<::WPEFramework::RPC::IIteratorType<INetworkControl::NetworkInfo, ID_NETWORKCONTROL_NETWORK_INFO_ITERATOR>>;
134
+ _value_ = Core::ServiceType<_valueIteratorImplType_>::Create<::WPEFramework::RPC::IIteratorType<INetworkControl::NetworkInfo, ID_NETWORKCONTROL_NETWORK_INFO_ITERATOR>>(std::move(_valueElements_));
135
+ ASSERT(_value_ != nullptr);
136
+
137
+ _errorCode__ = _implementation__->Network(interface, static_cast<::WPEFramework::RPC::IIteratorType<INetworkControl::NetworkInfo, ID_NETWORKCONTROL_NETWORK_INFO_ITERATOR>* const&>(_value_));
138
+ if (_value_ != nullptr) {
139
+ _value_->Release();
140
+ }
141
+
142
+ }
143
+
144
+ result.Null(true);
145
+ }
146
+ }
147
+
148
+ return (_errorCode__);
149
+ });
150
+
151
+ // Property: 'dns' - DNS list
152
+ _module__.PluginHost::JSONRPC::Register<JsonData::NetworkControl::DNSData, Core::JSON::ArrayType<Core::JSON::String>>(_T("dns"),
153
+ [_implementation__](const JsonData::NetworkControl::DNSData& params, Core::JSON::ArrayType<Core::JSON::String>& result) -> uint32_t {
154
+ uint32_t _errorCode__ = Core::ERROR_NONE;
155
+
156
+ if (params.IsSet() == false) {
157
+ ::WPEFramework::RPC::IIteratorType<string, ::WPEFramework::RPC::ID_STRINGITERATOR>* _result_{};
158
+
159
+ _errorCode__ = (static_cast<const INetworkControl*>(_implementation__))->DNS(_result_);
160
+
161
+ if (_errorCode__ == Core::ERROR_NONE) {
162
+ result.Set(true);
163
+
164
+ if (_result_ != nullptr) {
165
+ string _resultItem__{};
166
+ while (_result_->Next(_resultItem__) == true) { result.Add() = _resultItem__; }
167
+ _result_->Release();
168
+ }
169
+ }
170
+ }
171
+ else {
172
+
173
+ if (params.IsDataValid() == false) {
174
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
175
+ }
176
+ else {
177
+ ::WPEFramework::RPC::IIteratorType<string, ::WPEFramework::RPC::ID_STRINGITERATOR>* _value_{};
178
+ std::list<string> _valueElements_{};
179
+ auto _valueIterator_ = params.Value.Elements();
180
+ while (_valueIterator_.Next() == true) { _valueElements_.push_back(_valueIterator_.Current()); }
181
+ using _valueIteratorImplType_ = ::WPEFramework::RPC::IteratorType<::WPEFramework::RPC::IIteratorType<string, ::WPEFramework::RPC::ID_STRINGITERATOR>>;
182
+ _value_ = Core::ServiceType<_valueIteratorImplType_>::Create<::WPEFramework::RPC::IIteratorType<string, ::WPEFramework::RPC::ID_STRINGITERATOR>>(std::move(_valueElements_));
183
+ ASSERT(_value_ != nullptr);
184
+
185
+ _errorCode__ = _implementation__->DNS(static_cast<::WPEFramework::RPC::IIteratorType<string, ::WPEFramework::RPC::ID_STRINGITERATOR>* const&>(_value_));
186
+ if (_value_ != nullptr) {
187
+ _value_->Release();
188
+ }
189
+
190
+ }
191
+
192
+ result.Null(true);
193
+ }
194
+
195
+ return (_errorCode__);
196
+ });
197
+
198
+ // Indexed Property: 'up' - Provides given requested interface is up or not
199
+ _module__.PluginHost::JSONRPC::Register<JsonData::NetworkControl::UpData, Core::JSON::Boolean, std::function<uint32_t(const string&, const JsonData::NetworkControl::UpData&, Core::JSON::Boolean&)>>(_T("up"),
200
+ [_implementation__](const string& interface, const JsonData::NetworkControl::UpData& params, Core::JSON::Boolean& result) -> uint32_t {
201
+ uint32_t _errorCode__ = Core::ERROR_NONE;
202
+
203
+ if (interface.empty() == true) {
204
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
205
+ }
206
+
207
+ if (_errorCode__ == Core::ERROR_NONE) {
208
+
209
+ if (params.IsSet() == false) {
210
+ bool _result_{};
211
+
212
+ _errorCode__ = (static_cast<const INetworkControl*>(_implementation__))->Up(interface, _result_);
213
+
214
+ if (_errorCode__ == Core::ERROR_NONE) {
215
+ result = _result_;
216
+ }
217
+ }
218
+ else {
219
+
220
+ if (params.IsDataValid() == false) {
221
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
222
+ }
223
+ else {
224
+ const bool _value_{params.Value};
225
+
226
+ _errorCode__ = _implementation__->Up(interface, _value_);
227
+
228
+ }
229
+
230
+ result.Null(true);
231
+ }
232
+ }
233
+
234
+ return (_errorCode__);
235
+ });
236
+
237
+ }
238
+
239
+ template<typename MODULE>
240
+ static void Unregister(MODULE& _module__)
241
+ {
242
+ // Unregister methods and properties...
243
+ _module__.PluginHost::JSONRPC::Unregister(_T("flush"));
244
+ _module__.PluginHost::JSONRPC::Unregister(_T("interfaces"));
245
+ _module__.PluginHost::JSONRPC::Unregister(_T("status"));
246
+ _module__.PluginHost::JSONRPC::Unregister(_T("network"));
247
+ _module__.PluginHost::JSONRPC::Unregister(_T("dns"));
248
+ _module__.PluginHost::JSONRPC::Unregister(_T("up"));
249
+ }
250
+
251
+ namespace Event {
252
+
253
+ // Event: 'update'
254
+ template<typename MODULE>
255
+ static void Update(const MODULE& module_, const JsonData::NetworkControl::UpdateParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
256
+ {
257
+ module_.Notify(_T("update"), params, sendIfMethod_);
258
+ }
259
+
260
+ // Event: 'update'
261
+ template<typename MODULE>
262
+ static void Update(const MODULE& module_, const Core::JSON::String& interfaceName, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
263
+ {
264
+ JsonData::NetworkControl::UpdateParamsData params_;
265
+ params_.InterfaceName = interfaceName;
266
+
267
+ Update(module_, params_, sendIfMethod_);
268
+ }
269
+
270
+ // Event: 'update'
271
+ template<typename MODULE>
272
+ static void Update(const MODULE& module_, const string& interfaceName, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
273
+ {
274
+ JsonData::NetworkControl::UpdateParamsData params_;
275
+ params_.InterfaceName = interfaceName;
276
+
277
+ Update(module_, params_, sendIfMethod_);
278
+ }
279
+
280
+ } // namespace Event
281
+
282
+ POP_WARNING()
283
+ POP_WARNING()
284
+ POP_WARNING()
285
+
286
+ } // namespace JNetworkControl
287
+
288
+ } // namespace Exchange
289
+
290
+ } // namespace WPEFramework
291
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JNetworkTools.h ADDED
@@ -0,0 +1,126 @@
1
+ // Generated automatically from 'INetworkTools.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_NetworkTools.h"
6
+ #include <interfaces/INetworkTools.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JNetworkTools {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, INetworkTools* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JNetworkTools"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Method: 'ping' - Ping the given destination with ICMP packages
36
+ _module__.PluginHost::JSONRPC::Register<JsonData::NetworkTools::PingParamsData, void>(_T("ping"),
37
+ [_implementation__](const JsonData::NetworkTools::PingParamsData& params) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
41
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
42
+ }
43
+ else {
44
+ const string _destination_{params.Destination};
45
+ const uint16_t _timeOutInSeconds_{params.TimeOutInSeconds};
46
+ const uint16_t _count_{params.Count};
47
+
48
+ _errorCode__ = _implementation__->Ping(_destination_, _timeOutInSeconds_, _count_);
49
+
50
+ }
51
+
52
+ return (_errorCode__);
53
+ });
54
+
55
+ // Method: 'traceroute' - TraceRoute to the given destination with ICMP packages
56
+ _module__.PluginHost::JSONRPC::Register<JsonData::NetworkTools::TraceRouteParamsData, void>(_T("traceroute"),
57
+ [_implementation__](const JsonData::NetworkTools::TraceRouteParamsData& params) -> uint32_t {
58
+ uint32_t _errorCode__ = Core::ERROR_NONE;
59
+
60
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
61
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
62
+ }
63
+ else {
64
+ const string _destination_{params.Destination};
65
+ const uint16_t _timeOutInSeconds_{params.TimeOutInSeconds};
66
+
67
+ _errorCode__ = _implementation__->TraceRoute(_destination_, _timeOutInSeconds_);
68
+
69
+ }
70
+
71
+ return (_errorCode__);
72
+ });
73
+
74
+ }
75
+
76
+ template<typename MODULE>
77
+ static void Unregister(MODULE& _module__)
78
+ {
79
+ // Unregister methods and properties...
80
+ _module__.PluginHost::JSONRPC::Unregister(_T("ping"));
81
+ _module__.PluginHost::JSONRPC::Unregister(_T("traceroute"));
82
+ }
83
+
84
+ namespace Event {
85
+
86
+ // Event: 'report' - Signals an message from a given host
87
+ template<typename MODULE>
88
+ static void Report(const MODULE& module_, const JsonData::NetworkTools::ReportParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
89
+ {
90
+ module_.Notify(_T("report"), params, sendIfMethod_);
91
+ }
92
+
93
+ // Event: 'report' - Signals an message from a given host
94
+ template<typename MODULE>
95
+ static void Report(const MODULE& module_, const Core::JSON::String& source, const Core::JSON::String& metadata, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
96
+ {
97
+ JsonData::NetworkTools::ReportParamsData params_;
98
+ params_.Source = source;
99
+ params_.Metadata = metadata;
100
+
101
+ Report(module_, params_, sendIfMethod_);
102
+ }
103
+
104
+ // Event: 'report' - Signals an message from a given host
105
+ template<typename MODULE>
106
+ static void Report(const MODULE& module_, const string& source, const string& metadata, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
107
+ {
108
+ JsonData::NetworkTools::ReportParamsData params_;
109
+ params_.Source = source;
110
+ params_.Metadata = metadata;
111
+
112
+ Report(module_, params_, sendIfMethod_);
113
+ }
114
+
115
+ } // namespace Event
116
+
117
+ POP_WARNING()
118
+ POP_WARNING()
119
+ POP_WARNING()
120
+
121
+ } // namespace JNetworkTools
122
+
123
+ } // namespace Exchange
124
+
125
+ } // namespace WPEFramework
126
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JOCDM.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'OCDM.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_OCDM.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JOCDM {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JOCDM
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JPackageManager.h ADDED
@@ -0,0 +1,458 @@
1
+ // Generated automatically from 'IPackageManager.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_PackageManager.h"
6
+ #include <interfaces/IPackageManager.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JPackageManager {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IPackageManager* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JPackageManager"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Method: 'install' - Download the application bundle
36
+ _module__.PluginHost::JSONRPC::Register<JsonData::PackageManager::InstallParamsData, Core::JSON::String>(_T("install"),
37
+ [_implementation__](const JsonData::PackageManager::InstallParamsData& params, Core::JSON::String& handle) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
41
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
42
+ }
43
+ else {
44
+ const string _type_{params.Type};
45
+ const string _id_{params.Id};
46
+ const string _version_{params.Version};
47
+ const string _url_{params.Url};
48
+ const string _appName_{params.AppName};
49
+ const string _category_{params.Category};
50
+ string _handle_{};
51
+
52
+ _errorCode__ = _implementation__->Install(_type_, _id_, _version_, _url_, _appName_, _category_, _handle_);
53
+
54
+ if (_errorCode__ == Core::ERROR_NONE) {
55
+ handle = _handle_;
56
+ }
57
+ }
58
+
59
+ return (_errorCode__);
60
+ });
61
+
62
+ // Method: 'uninstall' - Uninstall the application
63
+ _module__.PluginHost::JSONRPC::Register<JsonData::PackageManager::UninstallParamsData, Core::JSON::String>(_T("uninstall"),
64
+ [_implementation__](const JsonData::PackageManager::UninstallParamsData& params, Core::JSON::String& handle) -> uint32_t {
65
+ uint32_t _errorCode__ = Core::ERROR_NONE;
66
+
67
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
68
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
69
+ }
70
+ else {
71
+ const string _type_{params.Type};
72
+ const string _id_{params.Id};
73
+ const string _version_{params.Version};
74
+ const string _uninstallType_{params.UninstallType};
75
+ string _handle_{};
76
+
77
+ _errorCode__ = _implementation__->Uninstall(_type_, _id_, _version_, _uninstallType_, _handle_);
78
+
79
+ if (_errorCode__ == Core::ERROR_NONE) {
80
+ handle = _handle_;
81
+ }
82
+ }
83
+
84
+ return (_errorCode__);
85
+ });
86
+
87
+ // Method: 'download' - Download arbitrary application's resource file
88
+ _module__.PluginHost::JSONRPC::Register<JsonData::PackageManager::DownloadParamsData, Core::JSON::String>(_T("download"),
89
+ [_implementation__](const JsonData::PackageManager::DownloadParamsData& params, Core::JSON::String& handle) -> uint32_t {
90
+ uint32_t _errorCode__ = Core::ERROR_NONE;
91
+
92
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
93
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
94
+ }
95
+ else {
96
+ const string _type_{params.Type};
97
+ const string _id_{params.Id};
98
+ const string _version_{params.Version};
99
+ const string _resKey_{params.ResKey};
100
+ const string _url_{params.Url};
101
+ string _handle_{};
102
+
103
+ _errorCode__ = _implementation__->Download(_type_, _id_, _version_, _resKey_, _url_, _handle_);
104
+
105
+ if (_errorCode__ == Core::ERROR_NONE) {
106
+ handle = _handle_;
107
+ }
108
+ }
109
+
110
+ return (_errorCode__);
111
+ });
112
+
113
+ // Method: 'reset' - Delete persistent data stored locally
114
+ _module__.PluginHost::JSONRPC::Register<JsonData::PackageManager::ResetParamsData, void>(_T("reset"),
115
+ [_implementation__](const JsonData::PackageManager::ResetParamsData& params) -> uint32_t {
116
+ uint32_t _errorCode__ = Core::ERROR_NONE;
117
+
118
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
119
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
120
+ }
121
+ else {
122
+ const string _type_{params.Type};
123
+ const string _id_{params.Id};
124
+ const string _version_{params.Version};
125
+ const string _resetType_{params.ResetType};
126
+
127
+ _errorCode__ = _implementation__->Reset(_type_, _id_, _version_, _resetType_);
128
+
129
+ }
130
+
131
+ return (_errorCode__);
132
+ });
133
+
134
+ // Method: 'getstoragedetails' - Information on the storage usage
135
+ _module__.PluginHost::JSONRPC::Register<JsonData::PackageManager::GetStorageDetailsParamsInfo, JsonData::PackageManager::StorageInfoData>(_T("getstoragedetails"),
136
+ [_implementation__](const JsonData::PackageManager::GetStorageDetailsParamsInfo& params, JsonData::PackageManager::StorageInfoData& storageinfo) -> uint32_t {
137
+ uint32_t _errorCode__ = Core::ERROR_NONE;
138
+
139
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
140
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
141
+ }
142
+ else {
143
+ const string _type_{params.Type};
144
+ const string _id_{params.Id};
145
+ const string _version_{params.Version};
146
+ Exchange::IPackageManager::StorageInfo _storageinfo_{};
147
+
148
+ _errorCode__ = _implementation__->GetStorageDetails(_type_, _id_, _version_, _storageinfo_);
149
+
150
+ if (_errorCode__ == Core::ERROR_NONE) {
151
+ storageinfo.Set(true);
152
+ storageinfo = _storageinfo_;
153
+ }
154
+ }
155
+
156
+ return (_errorCode__);
157
+ });
158
+
159
+ // Method: 'setauxmetadata' - Set an arbitrary metadata
160
+ _module__.PluginHost::JSONRPC::Register<JsonData::PackageManager::SetAuxMetadataParamsData, void>(_T("setauxmetadata"),
161
+ [_implementation__](const JsonData::PackageManager::SetAuxMetadataParamsData& params) -> uint32_t {
162
+ uint32_t _errorCode__ = Core::ERROR_NONE;
163
+
164
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
165
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
166
+ }
167
+ else {
168
+ const string _type_{params.Type};
169
+ const string _id_{params.Id};
170
+ const string _version_{params.Version};
171
+ const string _key_{params.Key};
172
+ const string _value_{params.Value};
173
+
174
+ _errorCode__ = _implementation__->SetAuxMetadata(_type_, _id_, _version_, _key_, _value_);
175
+
176
+ }
177
+
178
+ return (_errorCode__);
179
+ });
180
+
181
+ // Method: 'clearauxmetadata' - Clears an arbitrary metadata
182
+ _module__.PluginHost::JSONRPC::Register<JsonData::PackageManager::ClearAuxMetadataParamsData, void>(_T("clearauxmetadata"),
183
+ [_implementation__](const JsonData::PackageManager::ClearAuxMetadataParamsData& params) -> uint32_t {
184
+ uint32_t _errorCode__ = Core::ERROR_NONE;
185
+
186
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
187
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
188
+ }
189
+ else {
190
+ const string _type_{params.Type};
191
+ const string _id_{params.Id};
192
+ const string _version_{params.Version};
193
+ const string _key_{params.Key};
194
+
195
+ _errorCode__ = _implementation__->ClearAuxMetadata(_type_, _id_, _version_, _key_);
196
+
197
+ }
198
+
199
+ return (_errorCode__);
200
+ });
201
+
202
+ // Method: 'getmetadata' - Get application metadata
203
+ _module__.PluginHost::JSONRPC::Register<JsonData::PackageManager::GetStorageDetailsParamsInfo, JsonData::PackageManager::GetMetadataResultData>(_T("getmetadata"),
204
+ [_implementation__](const JsonData::PackageManager::GetStorageDetailsParamsInfo& params, JsonData::PackageManager::GetMetadataResultData& result) -> uint32_t {
205
+ uint32_t _errorCode__ = Core::ERROR_NONE;
206
+
207
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
208
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
209
+ }
210
+ else {
211
+ const string _type_{params.Type};
212
+ const string _id_{params.Id};
213
+ const string _version_{params.Version};
214
+ Exchange::IPackageManager::MetadataPayload _metadata_{};
215
+ ::WPEFramework::RPC::IIteratorType<IPackageManager::KeyValue, ID_PACKAGEMANAGER_KEY_VALUE_ITERATOR>* _resources_{};
216
+ ::WPEFramework::RPC::IIteratorType<IPackageManager::KeyValue, ID_PACKAGEMANAGER_KEY_VALUE_ITERATOR>* _auxMetadata_{};
217
+
218
+ _errorCode__ = _implementation__->GetMetadata(_type_, _id_, _version_, _metadata_, _resources_, _auxMetadata_);
219
+
220
+ if (_errorCode__ == Core::ERROR_NONE) {
221
+ result.Metadata.Set(true);
222
+ result.Metadata = _metadata_;
223
+ result.Resources.Set(true);
224
+
225
+ if (_resources_ != nullptr) {
226
+ Exchange::IPackageManager::KeyValue _resourcesItem__{};
227
+ while (_resources_->Next(_resourcesItem__) == true) { result.Resources.Add() = _resourcesItem__; }
228
+ _resources_->Release();
229
+ }
230
+ result.AuxMetadata.Set(true);
231
+
232
+ if (_auxMetadata_ != nullptr) {
233
+ Exchange::IPackageManager::KeyValue _auxmetadataItem__{};
234
+ while (_auxMetadata_->Next(_auxmetadataItem__) == true) { result.AuxMetadata.Add() = _auxmetadataItem__; }
235
+ _auxMetadata_->Release();
236
+ }
237
+ }
238
+ }
239
+
240
+ return (_errorCode__);
241
+ });
242
+
243
+ // Method: 'cancel' - Cancel asynchronous request
244
+ _module__.PluginHost::JSONRPC::Register<JsonData::PackageManager::CancelParamsInfo, void>(_T("cancel"),
245
+ [_implementation__](const JsonData::PackageManager::CancelParamsInfo& params) -> uint32_t {
246
+ uint32_t _errorCode__ = Core::ERROR_NONE;
247
+
248
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
249
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
250
+ }
251
+ else {
252
+ const string _handle_{params.Handle};
253
+
254
+ _errorCode__ = _implementation__->Cancel(_handle_);
255
+
256
+ }
257
+
258
+ return (_errorCode__);
259
+ });
260
+
261
+ // Method: 'getprogress' - Estimated progress of a request
262
+ _module__.PluginHost::JSONRPC::Register<JsonData::PackageManager::CancelParamsInfo, Core::JSON::DecUInt32>(_T("getprogress"),
263
+ [_implementation__](const JsonData::PackageManager::CancelParamsInfo& params, Core::JSON::DecUInt32& progress) -> uint32_t {
264
+ uint32_t _errorCode__ = Core::ERROR_NONE;
265
+
266
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
267
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
268
+ }
269
+ else {
270
+ const string _handle_{params.Handle};
271
+ uint32_t _progress_{};
272
+
273
+ _errorCode__ = _implementation__->GetProgress(_handle_, _progress_);
274
+
275
+ if (_errorCode__ == Core::ERROR_NONE) {
276
+ progress = _progress_;
277
+ }
278
+ }
279
+
280
+ return (_errorCode__);
281
+ });
282
+
283
+ // Method: 'getlist' - List installed applications
284
+ _module__.PluginHost::JSONRPC::Register<JsonData::PackageManager::GetListParamsData, Core::JSON::ArrayType<JsonData::PackageManager::PackageKeyData>>(_T("getlist"),
285
+ [_implementation__](const JsonData::PackageManager::GetListParamsData& params, Core::JSON::ArrayType<JsonData::PackageManager::PackageKeyData>& installedIds) -> uint32_t {
286
+ uint32_t _errorCode__ = Core::ERROR_NONE;
287
+
288
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
289
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
290
+ }
291
+ else {
292
+ const string _type_{params.Type};
293
+ const string _id_{params.Id};
294
+ const string _version_{params.Version};
295
+ const string _appName_{params.AppName};
296
+ const string _category_{params.Category};
297
+ ::WPEFramework::RPC::IIteratorType<IPackageManager::PackageKey, ID_PACKAGEMANAGER_PACKAGE_KEY_ITERATOR>* _installedIds_{};
298
+
299
+ _errorCode__ = _implementation__->GetList(_type_, _id_, _version_, _appName_, _category_, _installedIds_);
300
+
301
+ if (_errorCode__ == Core::ERROR_NONE) {
302
+ installedIds.Set(true);
303
+
304
+ if (_installedIds_ != nullptr) {
305
+ Exchange::IPackageManager::PackageKey _resultItem__{};
306
+ while (_installedIds_->Next(_resultItem__) == true) { installedIds.Add() = _resultItem__; }
307
+ _installedIds_->Release();
308
+ }
309
+ }
310
+ }
311
+
312
+ return (_errorCode__);
313
+ });
314
+
315
+ // Method: 'lock' - Lock the application
316
+ _module__.PluginHost::JSONRPC::Register<JsonData::PackageManager::LockParamsData, Core::JSON::String>(_T("lock"),
317
+ [_implementation__](const JsonData::PackageManager::LockParamsData& params, Core::JSON::String& handle) -> uint32_t {
318
+ uint32_t _errorCode__ = Core::ERROR_NONE;
319
+
320
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
321
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
322
+ }
323
+ else {
324
+ const string _type_{params.Type};
325
+ const string _id_{params.Id};
326
+ const string _version_{params.Version};
327
+ const string _reason_{params.Reason};
328
+ const string _owner_{params.Owner};
329
+ string _handle_{};
330
+
331
+ _errorCode__ = _implementation__->Lock(_type_, _id_, _version_, _reason_, _owner_, _handle_);
332
+
333
+ if (_errorCode__ == Core::ERROR_NONE) {
334
+ handle = _handle_;
335
+ }
336
+ }
337
+
338
+ return (_errorCode__);
339
+ });
340
+
341
+ // Method: 'unlock' - Unlock application
342
+ _module__.PluginHost::JSONRPC::Register<JsonData::PackageManager::CancelParamsInfo, void>(_T("unlock"),
343
+ [_implementation__](const JsonData::PackageManager::CancelParamsInfo& params) -> uint32_t {
344
+ uint32_t _errorCode__ = Core::ERROR_NONE;
345
+
346
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
347
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
348
+ }
349
+ else {
350
+ const string _handle_{params.Handle};
351
+
352
+ _errorCode__ = _implementation__->Unlock(_handle_);
353
+
354
+ }
355
+
356
+ return (_errorCode__);
357
+ });
358
+
359
+ // Method: 'getlockinfo' - Get lock info
360
+ _module__.PluginHost::JSONRPC::Register<JsonData::PackageManager::GetStorageDetailsParamsInfo, JsonData::PackageManager::LockInfoData>(_T("getlockinfo"),
361
+ [_implementation__](const JsonData::PackageManager::GetStorageDetailsParamsInfo& params, JsonData::PackageManager::LockInfoData& result) -> uint32_t {
362
+ uint32_t _errorCode__ = Core::ERROR_NONE;
363
+
364
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
365
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
366
+ }
367
+ else {
368
+ const string _type_{params.Type};
369
+ const string _id_{params.Id};
370
+ const string _version_{params.Version};
371
+ Exchange::IPackageManager::LockInfo _result_{};
372
+
373
+ _errorCode__ = _implementation__->GetLockInfo(_type_, _id_, _version_, _result_);
374
+
375
+ if (_errorCode__ == Core::ERROR_NONE) {
376
+ result.Set(true);
377
+ result = _result_;
378
+ }
379
+ }
380
+
381
+ return (_errorCode__);
382
+ });
383
+
384
+ }
385
+
386
+ template<typename MODULE>
387
+ static void Unregister(MODULE& _module__)
388
+ {
389
+ // Unregister methods and properties...
390
+ _module__.PluginHost::JSONRPC::Unregister(_T("install"));
391
+ _module__.PluginHost::JSONRPC::Unregister(_T("uninstall"));
392
+ _module__.PluginHost::JSONRPC::Unregister(_T("download"));
393
+ _module__.PluginHost::JSONRPC::Unregister(_T("reset"));
394
+ _module__.PluginHost::JSONRPC::Unregister(_T("getstoragedetails"));
395
+ _module__.PluginHost::JSONRPC::Unregister(_T("setauxmetadata"));
396
+ _module__.PluginHost::JSONRPC::Unregister(_T("clearauxmetadata"));
397
+ _module__.PluginHost::JSONRPC::Unregister(_T("getmetadata"));
398
+ _module__.PluginHost::JSONRPC::Unregister(_T("cancel"));
399
+ _module__.PluginHost::JSONRPC::Unregister(_T("getprogress"));
400
+ _module__.PluginHost::JSONRPC::Unregister(_T("getlist"));
401
+ _module__.PluginHost::JSONRPC::Unregister(_T("lock"));
402
+ _module__.PluginHost::JSONRPC::Unregister(_T("unlock"));
403
+ _module__.PluginHost::JSONRPC::Unregister(_T("getlockinfo"));
404
+ }
405
+
406
+ namespace Event {
407
+
408
+ // Event: 'operationstatus' - Completion of asynchronous operation
409
+ template<typename MODULE>
410
+ static void OperationStatus(const MODULE& module_, const JsonData::PackageManager::OperationStatusParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
411
+ {
412
+ module_.Notify(_T("operationstatus"), params, sendIfMethod_);
413
+ }
414
+
415
+ // Event: 'operationstatus' - Completion of asynchronous operation
416
+ template<typename MODULE>
417
+ static void OperationStatus(const MODULE& module_, const Core::JSON::String& handle, const Core::JSON::String& operation, const Core::JSON::String& type, const Core::JSON::String& id, const Core::JSON::String& version, const Core::JSON::String& status, const Core::JSON::String& details, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
418
+ {
419
+ JsonData::PackageManager::OperationStatusParamsData params_;
420
+ params_.Handle = handle;
421
+ params_.Operation = operation;
422
+ params_.Type = type;
423
+ params_.Id = id;
424
+ params_.Version = version;
425
+ params_.Status = status;
426
+ params_.Details = details;
427
+
428
+ OperationStatus(module_, params_, sendIfMethod_);
429
+ }
430
+
431
+ // Event: 'operationstatus' - Completion of asynchronous operation
432
+ template<typename MODULE>
433
+ static void OperationStatus(const MODULE& module_, const string& handle, const string& operation, const string& type, const string& id, const string& version, const string& status, const string& details, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
434
+ {
435
+ JsonData::PackageManager::OperationStatusParamsData params_;
436
+ params_.Handle = handle;
437
+ params_.Operation = operation;
438
+ params_.Type = type;
439
+ params_.Id = id;
440
+ params_.Version = version;
441
+ params_.Status = status;
442
+ params_.Details = details;
443
+
444
+ OperationStatus(module_, params_, sendIfMethod_);
445
+ }
446
+
447
+ } // namespace Event
448
+
449
+ POP_WARNING()
450
+ POP_WARNING()
451
+ POP_WARNING()
452
+
453
+ } // namespace JPackageManager
454
+
455
+ } // namespace Exchange
456
+
457
+ } // namespace WPEFramework
458
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JPackager.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'Packager.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_Packager.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JPackager {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JPackager
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JPerformanceMonitor.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'PerformanceMonitor.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_PerformanceMonitor.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JPerformanceMonitor {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JPerformanceMonitor
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JPersistentStore.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'PersistentStore.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_PersistentStore.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JPersistentStore {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JPersistentStore
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JPlayerInfo.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'PlayerInfo.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_PlayerInfo.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JPlayerInfo {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JPlayerInfo
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JPlayerProperties.h ADDED
@@ -0,0 +1,132 @@
1
+ // Generated automatically from 'IPlayerInfo.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_PlayerProperties.h"
6
+ #include <interfaces/IPlayerInfo.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JPlayerProperties {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IPlayerProperties* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JPlayerProperties"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Property: 'audiocodecs' (r/o)
36
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::ArrayType<Core::JSON::EnumType<Exchange::IPlayerProperties::AudioCodec>>>(_T("audiocodecs"),
37
+ [_implementation__](Core::JSON::ArrayType<Core::JSON::EnumType<Exchange::IPlayerProperties::AudioCodec>>& result) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ ::WPEFramework::RPC::IIteratorType<IPlayerProperties::AudioCodec, ID_PLAYER_PROPERTIES_AUDIO>* _result_{};
41
+
42
+ _errorCode__ = _implementation__->AudioCodecs(_result_);
43
+
44
+ if (_errorCode__ == Core::ERROR_NONE) {
45
+ result.Set(true);
46
+
47
+ if (_result_ != nullptr) {
48
+ Exchange::IPlayerProperties::AudioCodec _resultItem__{};
49
+ while (_result_->Next(_resultItem__) == true) { result.Add() = _resultItem__; }
50
+ _result_->Release();
51
+ }
52
+ }
53
+
54
+ return (_errorCode__);
55
+ });
56
+
57
+ // Property: 'videocodecs' (r/o)
58
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::ArrayType<Core::JSON::EnumType<Exchange::IPlayerProperties::VideoCodec>>>(_T("videocodecs"),
59
+ [_implementation__](Core::JSON::ArrayType<Core::JSON::EnumType<Exchange::IPlayerProperties::VideoCodec>>& result) -> uint32_t {
60
+ uint32_t _errorCode__ = Core::ERROR_NONE;
61
+
62
+ ::WPEFramework::RPC::IIteratorType<IPlayerProperties::VideoCodec, ID_PLAYER_PROPERTIES_VIDEO>* _result_{};
63
+
64
+ _errorCode__ = _implementation__->VideoCodecs(_result_);
65
+
66
+ if (_errorCode__ == Core::ERROR_NONE) {
67
+ result.Set(true);
68
+
69
+ if (_result_ != nullptr) {
70
+ Exchange::IPlayerProperties::VideoCodec _resultItem__{};
71
+ while (_result_->Next(_resultItem__) == true) { result.Add() = _resultItem__; }
72
+ _result_->Release();
73
+ }
74
+ }
75
+
76
+ return (_errorCode__);
77
+ });
78
+
79
+ // Property: 'resolution' - Current Video playback resolution (r/o)
80
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::EnumType<Exchange::IPlayerProperties::PlaybackResolution>>(_T("resolution"),
81
+ [_implementation__](Core::JSON::EnumType<Exchange::IPlayerProperties::PlaybackResolution>& result) -> uint32_t {
82
+ uint32_t _errorCode__ = Core::ERROR_NONE;
83
+
84
+ Exchange::IPlayerProperties::PlaybackResolution _result_{};
85
+
86
+ _errorCode__ = _implementation__->Resolution(_result_);
87
+
88
+ if (_errorCode__ == Core::ERROR_NONE) {
89
+ result = _result_;
90
+ }
91
+
92
+ return (_errorCode__);
93
+ });
94
+
95
+ // Property: 'isaudioequivalenceenabled' - Checks Loudness Equivalence in platform (r/o)
96
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::Boolean>(_T("isaudioequivalenceenabled"),
97
+ [_implementation__](Core::JSON::Boolean& result) -> uint32_t {
98
+ uint32_t _errorCode__ = Core::ERROR_NONE;
99
+
100
+ bool _result_{};
101
+
102
+ _errorCode__ = _implementation__->IsAudioEquivalenceEnabled(_result_);
103
+
104
+ if (_errorCode__ == Core::ERROR_NONE) {
105
+ result = _result_;
106
+ }
107
+
108
+ return (_errorCode__);
109
+ });
110
+
111
+ }
112
+
113
+ template<typename MODULE>
114
+ static void Unregister(MODULE& _module__)
115
+ {
116
+ // Unregister methods and properties...
117
+ _module__.PluginHost::JSONRPC::Unregister(_T("audiocodecs"));
118
+ _module__.PluginHost::JSONRPC::Unregister(_T("videocodecs"));
119
+ _module__.PluginHost::JSONRPC::Unregister(_T("resolution"));
120
+ _module__.PluginHost::JSONRPC::Unregister(_T("isaudioequivalenceenabled"));
121
+ }
122
+
123
+ POP_WARNING()
124
+ POP_WARNING()
125
+ POP_WARNING()
126
+
127
+ } // namespace JPlayerProperties
128
+
129
+ } // namespace Exchange
130
+
131
+ } // namespace WPEFramework
132
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JPower.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'Power.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_Power.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JPower {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JPower
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JProvisioning.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'Provisioning.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_Provisioning.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JProvisioning {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JProvisioning
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JRemoteControl.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'RemoteControl.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_RemoteControl.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JRemoteControl {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JRemoteControl
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JScriptEngine.h ADDED
@@ -0,0 +1,116 @@
1
+ // Generated automatically from 'IScriptEngine.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_ScriptEngine.h"
6
+ #include <interfaces/IScriptEngine.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JScriptEngine {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IScriptEngine* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JScriptEngine"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Property: 'url' - Script to be loaded into the engine and to be executed
36
+ _module__.PluginHost::JSONRPC::Register<JsonData::ScriptEngine::URLData, Core::JSON::String>(_T("url"),
37
+ [_implementation__](const JsonData::ScriptEngine::URLData& params, Core::JSON::String& result) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ if (params.IsSet() == false) {
41
+ string _result_{};
42
+
43
+ _errorCode__ = (static_cast<const IScriptEngine*>(_implementation__))->URL(_result_);
44
+
45
+ if (_errorCode__ == Core::ERROR_NONE) {
46
+ result = _result_;
47
+ }
48
+ }
49
+ else {
50
+
51
+ if (params.IsDataValid() == false) {
52
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
53
+ }
54
+ else {
55
+ const string _value_{params.Value};
56
+
57
+ _errorCode__ = _implementation__->URL(_value_);
58
+
59
+ }
60
+
61
+ result.Null(true);
62
+ }
63
+
64
+ return (_errorCode__);
65
+ });
66
+
67
+ }
68
+
69
+ template<typename MODULE>
70
+ static void Unregister(MODULE& _module__)
71
+ {
72
+ // Unregister methods and properties...
73
+ _module__.PluginHost::JSONRPC::Unregister(_T("url"));
74
+ }
75
+
76
+ namespace Event {
77
+
78
+ // Event: 'urlchanged'
79
+ template<typename MODULE>
80
+ static void URLChanged(const MODULE& module_, const JsonData::ScriptEngine::URLChangedParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
81
+ {
82
+ module_.Notify(_T("urlchanged"), params, sendIfMethod_);
83
+ }
84
+
85
+ // Event: 'urlchanged'
86
+ template<typename MODULE>
87
+ static void URLChanged(const MODULE& module_, const Core::JSON::String& URL, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
88
+ {
89
+ JsonData::ScriptEngine::URLChangedParamsData params_;
90
+ params_.URL = URL;
91
+
92
+ URLChanged(module_, params_, sendIfMethod_);
93
+ }
94
+
95
+ // Event: 'urlchanged'
96
+ template<typename MODULE>
97
+ static void URLChanged(const MODULE& module_, const string& URL, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
98
+ {
99
+ JsonData::ScriptEngine::URLChangedParamsData params_;
100
+ params_.URL = URL;
101
+
102
+ URLChanged(module_, params_, sendIfMethod_);
103
+ }
104
+
105
+ } // namespace Event
106
+
107
+ POP_WARNING()
108
+ POP_WARNING()
109
+ POP_WARNING()
110
+
111
+ } // namespace JScriptEngine
112
+
113
+ } // namespace Exchange
114
+
115
+ } // namespace WPEFramework
116
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JSecureShellServer.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'SecureShellServer.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_SecureShellServer.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JSecureShellServer {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JSecureShellServer
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JSecurityAgent.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'SecurityAgent.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_SecurityAgent.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JSecurityAgent {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JSecurityAgent
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JSpark.h ADDED
@@ -0,0 +1,25 @@
1
+ // Generated automatically from 'Spark.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+
6
+ namespace WPEFramework {
7
+
8
+ namespace Exchange {
9
+
10
+ namespace JSpark {
11
+
12
+ namespace Version {
13
+
14
+ constexpr uint8_t Major = 1;
15
+ constexpr uint8_t Minor = 0;
16
+ constexpr uint8_t Patch = 0;
17
+
18
+ } // namespace Version
19
+
20
+ } // namespace JSpark
21
+
22
+ } // namespace Exchange
23
+
24
+ } // namespace WPEFramework
25
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JStateControl.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'StateControl.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_StateControl.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JStateControl {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JStateControl
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JStreamer.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'Streamer.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_Streamer.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JStreamer {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JStreamer
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JSubsystemControl.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'SubsystemControl.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_SubsystemControl.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JSubsystemControl {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JSubsystemControl
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JSystemCommands.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'SystemCommands.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_SystemCommands.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JSystemCommands {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JSystemCommands
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JTestController.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'TestController.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_TestController.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JTestController {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JTestController
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JTestUtility.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'TestUtility.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_TestUtility.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JTestUtility {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JTestUtility
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JTimeSync.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'TimeSync.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_TimeSync.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JTimeSync {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JTimeSync
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JTimeZone.h ADDED
@@ -0,0 +1,98 @@
1
+ // Generated automatically from 'ITimeZone.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include <interfaces/ITimeZone.h>
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JTimeZone {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
22
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
23
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
24
+
25
+ template<typename MODULE>
26
+ static void Register(MODULE& _module__, ITimeZone* _implementation__)
27
+ {
28
+ ASSERT(_implementation__ != nullptr);
29
+
30
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JTimeZone"), Version::Major, Version::Minor, Version::Patch);
31
+
32
+ // Register methods and properties...
33
+
34
+ // Property: 'timezone' - TimeZone for system
35
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::String, Core::JSON::String>(_T("timezone"),
36
+ [_implementation__](const Core::JSON::String& params, Core::JSON::String& result) -> uint32_t {
37
+ uint32_t _errorCode__ = Core::ERROR_NONE;
38
+
39
+ if (params.IsSet() == false) {
40
+ string _result_{};
41
+
42
+ _errorCode__ = (static_cast<const ITimeZone*>(_implementation__))->TimeZone(_result_);
43
+
44
+ if (_errorCode__ == Core::ERROR_NONE) {
45
+ result = _result_;
46
+ }
47
+ }
48
+ else {
49
+ const string _params_{params};
50
+
51
+ _errorCode__ = _implementation__->TimeZone(_params_);
52
+
53
+ result.Null(true);
54
+ }
55
+
56
+ return (_errorCode__);
57
+ });
58
+
59
+ }
60
+
61
+ template<typename MODULE>
62
+ static void Unregister(MODULE& _module__)
63
+ {
64
+ // Unregister methods and properties...
65
+ _module__.PluginHost::JSONRPC::Unregister(_T("timezone"));
66
+ }
67
+
68
+ namespace Event {
69
+
70
+ // Event: 'timezonechanged' - TimeZone was set for the system
71
+ template<typename MODULE>
72
+ static void TimeZoneChanged(const MODULE& module_, const Core::JSON::String& timeZone, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
73
+ {
74
+ module_.Notify(_T("timezonechanged"), timeZone, sendIfMethod_);
75
+ }
76
+
77
+ // Event: 'timezonechanged' - TimeZone was set for the system
78
+ template<typename MODULE>
79
+ static void TimeZoneChanged(const MODULE& module_, const string& timeZone, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
80
+ {
81
+ Core::JSON::String params_;
82
+ params_ = timeZone;
83
+
84
+ TimeZoneChanged(module_, params_, sendIfMethod_);
85
+ }
86
+
87
+ } // namespace Event
88
+
89
+ POP_WARNING()
90
+ POP_WARNING()
91
+ POP_WARNING()
92
+
93
+ } // namespace JTimeZone
94
+
95
+ } // namespace Exchange
96
+
97
+ } // namespace WPEFramework
98
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JTraceControl.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'TraceControl.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_TraceControl.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JTraceControl {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JTraceControl
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JUserSettings.h ADDED
@@ -0,0 +1,497 @@
1
+ // Generated automatically from 'IUserSettings.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_UserSettings.h"
6
+ #include <interfaces/IUserSettings.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JUserSettings {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IUserSettings* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JUserSettings"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Property: 'setaudiodescription' - Sets AudioDescription ON/OFF (w/o)
36
+ _module__.PluginHost::JSONRPC::Register<JsonData::UserSettings::SetAudioDescriptionInfo, void>(_T("setaudiodescription"),
37
+ [_implementation__](const JsonData::UserSettings::SetAudioDescriptionInfo& params) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
41
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
42
+ }
43
+ else {
44
+ const bool _value_{params.Value};
45
+
46
+ _errorCode__ = _implementation__->SetAudioDescription(_value_);
47
+
48
+ }
49
+
50
+ return (_errorCode__);
51
+ });
52
+
53
+ // Property: 'getaudiodescription' - Gets the current AudioDescription setting (r/o)
54
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::Boolean>(_T("getaudiodescription"),
55
+ [_implementation__](Core::JSON::Boolean& result) -> uint32_t {
56
+ uint32_t _errorCode__ = Core::ERROR_NONE;
57
+
58
+ bool _result_{};
59
+
60
+ _errorCode__ = _implementation__->GetAudioDescription(_result_);
61
+
62
+ if (_errorCode__ == Core::ERROR_NONE) {
63
+ result = _result_;
64
+ }
65
+
66
+ return (_errorCode__);
67
+ });
68
+
69
+ // Property: 'setpreferredaudiolanguages' - A prioritized list of ISO 639-2/B codes for the preferred audio languages, expressed as a comma separated lists of languages of zero of more elements (w/o)
70
+ _module__.PluginHost::JSONRPC::Register<JsonData::UserSettings::SetPreferredAudioLanguagesInfo, void>(_T("setpreferredaudiolanguages"),
71
+ [_implementation__](const JsonData::UserSettings::SetPreferredAudioLanguagesInfo& params) -> uint32_t {
72
+ uint32_t _errorCode__ = Core::ERROR_NONE;
73
+
74
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
75
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
76
+ }
77
+ else {
78
+ const string _value_{params.Value};
79
+
80
+ _errorCode__ = _implementation__->SetPreferredAudioLanguages(_value_);
81
+
82
+ }
83
+
84
+ return (_errorCode__);
85
+ });
86
+
87
+ // Property: 'getpreferredaudiolanguages' - Gets the current PreferredAudioLanguages setting (r/o)
88
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::String>(_T("getpreferredaudiolanguages"),
89
+ [_implementation__](Core::JSON::String& result) -> uint32_t {
90
+ uint32_t _errorCode__ = Core::ERROR_NONE;
91
+
92
+ string _result_{};
93
+
94
+ _errorCode__ = _implementation__->GetPreferredAudioLanguages(_result_);
95
+
96
+ if (_errorCode__ == Core::ERROR_NONE) {
97
+ result = _result_;
98
+ }
99
+
100
+ return (_errorCode__);
101
+ });
102
+
103
+ // Property: 'setpresentationlanguage' - Sets the presentationLanguages in a full BCP 47 value, including script, region, variant (w/o)
104
+ _module__.PluginHost::JSONRPC::Register<JsonData::UserSettings::SetPreferredAudioLanguagesInfo, void>(_T("setpresentationlanguage"),
105
+ [_implementation__](const JsonData::UserSettings::SetPreferredAudioLanguagesInfo& params) -> uint32_t {
106
+ uint32_t _errorCode__ = Core::ERROR_NONE;
107
+
108
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
109
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
110
+ }
111
+ else {
112
+ const string _value_{params.Value};
113
+
114
+ _errorCode__ = _implementation__->SetPresentationLanguage(_value_);
115
+
116
+ }
117
+
118
+ return (_errorCode__);
119
+ });
120
+
121
+ // Property: 'getpresentationlanguage' - Gets the presentationLanguages (r/o)
122
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::String>(_T("getpresentationlanguage"),
123
+ [_implementation__](Core::JSON::String& result) -> uint32_t {
124
+ uint32_t _errorCode__ = Core::ERROR_NONE;
125
+
126
+ string _result_{};
127
+
128
+ _errorCode__ = _implementation__->GetPresentationLanguage(_result_);
129
+
130
+ if (_errorCode__ == Core::ERROR_NONE) {
131
+ result = _result_;
132
+ }
133
+
134
+ return (_errorCode__);
135
+ });
136
+
137
+ // Property: 'setcaptions' - brief Sets Captions ON/OFF (w/o)
138
+ _module__.PluginHost::JSONRPC::Register<JsonData::UserSettings::SetAudioDescriptionInfo, void>(_T("setcaptions"),
139
+ [_implementation__](const JsonData::UserSettings::SetAudioDescriptionInfo& params) -> uint32_t {
140
+ uint32_t _errorCode__ = Core::ERROR_NONE;
141
+
142
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
143
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
144
+ }
145
+ else {
146
+ const bool _value_{params.Value};
147
+
148
+ _errorCode__ = _implementation__->SetCaptions(_value_);
149
+
150
+ }
151
+
152
+ return (_errorCode__);
153
+ });
154
+
155
+ // Property: 'getcaptions' - Gets the Captions setting (r/o)
156
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::Boolean>(_T("getcaptions"),
157
+ [_implementation__](Core::JSON::Boolean& result) -> uint32_t {
158
+ uint32_t _errorCode__ = Core::ERROR_NONE;
159
+
160
+ bool _result_{};
161
+
162
+ _errorCode__ = _implementation__->GetCaptions(_result_);
163
+
164
+ if (_errorCode__ == Core::ERROR_NONE) {
165
+ result = _result_;
166
+ }
167
+
168
+ return (_errorCode__);
169
+ });
170
+
171
+ // Property: 'setpreferredcaptionslanguages' - Set preferred languages for captions (w/o)
172
+ _module__.PluginHost::JSONRPC::Register<JsonData::UserSettings::SetPreferredAudioLanguagesInfo, void>(_T("setpreferredcaptionslanguages"),
173
+ [_implementation__](const JsonData::UserSettings::SetPreferredAudioLanguagesInfo& params) -> uint32_t {
174
+ uint32_t _errorCode__ = Core::ERROR_NONE;
175
+
176
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
177
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
178
+ }
179
+ else {
180
+ const string _value_{params.Value};
181
+
182
+ _errorCode__ = _implementation__->SetPreferredCaptionsLanguages(_value_);
183
+
184
+ }
185
+
186
+ return (_errorCode__);
187
+ });
188
+
189
+ // Property: 'getpreferredcaptionslanguages' - Gets the current PreferredCaptionsLanguages setting (r/o)
190
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::String>(_T("getpreferredcaptionslanguages"),
191
+ [_implementation__](Core::JSON::String& result) -> uint32_t {
192
+ uint32_t _errorCode__ = Core::ERROR_NONE;
193
+
194
+ string _result_{};
195
+
196
+ _errorCode__ = _implementation__->GetPreferredCaptionsLanguages(_result_);
197
+
198
+ if (_errorCode__ == Core::ERROR_NONE) {
199
+ result = _result_;
200
+ }
201
+
202
+ return (_errorCode__);
203
+ });
204
+
205
+ // Property: 'setpreferredclosedcaptionservice' - Sets the PreferredClosedCaptionService (w/o)
206
+ _module__.PluginHost::JSONRPC::Register<JsonData::UserSettings::SetPreferredAudioLanguagesInfo, void>(_T("setpreferredclosedcaptionservice"),
207
+ [_implementation__](const JsonData::UserSettings::SetPreferredAudioLanguagesInfo& params) -> uint32_t {
208
+ uint32_t _errorCode__ = Core::ERROR_NONE;
209
+
210
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
211
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
212
+ }
213
+ else {
214
+ const string _value_{params.Value};
215
+
216
+ _errorCode__ = _implementation__->SetPreferredClosedCaptionService(_value_);
217
+
218
+ }
219
+
220
+ return (_errorCode__);
221
+ });
222
+
223
+ // Property: 'getpreferredclosedcaptionservice' - Gets the current PreferredClosedCaptionService setting (r/o)
224
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::String>(_T("getpreferredclosedcaptionservice"),
225
+ [_implementation__](Core::JSON::String& result) -> uint32_t {
226
+ uint32_t _errorCode__ = Core::ERROR_NONE;
227
+
228
+ string _result_{};
229
+
230
+ _errorCode__ = _implementation__->GetPreferredClosedCaptionService(_result_);
231
+
232
+ if (_errorCode__ == Core::ERROR_NONE) {
233
+ result = _result_;
234
+ }
235
+
236
+ return (_errorCode__);
237
+ });
238
+
239
+ // Property: 'setprivacymode' - Sets the PrivacyMode (w/o)
240
+ _module__.PluginHost::JSONRPC::Register<JsonData::UserSettings::SetPreferredAudioLanguagesInfo, void>(_T("setprivacymode"),
241
+ [_implementation__](const JsonData::UserSettings::SetPreferredAudioLanguagesInfo& params) -> uint32_t {
242
+ uint32_t _errorCode__ = Core::ERROR_NONE;
243
+
244
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
245
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
246
+ }
247
+ else {
248
+ const string _value_{params.Value};
249
+
250
+ _errorCode__ = _implementation__->SetPrivacyMode(_value_);
251
+
252
+ }
253
+
254
+ return (_errorCode__);
255
+ });
256
+
257
+ // Property: 'getprivacymode' - Gets the current PrivacyMode setting (r/o)
258
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::String>(_T("getprivacymode"),
259
+ [_implementation__](Core::JSON::String& result) -> uint32_t {
260
+ uint32_t _errorCode__ = Core::ERROR_NONE;
261
+
262
+ string _result_{};
263
+
264
+ _errorCode__ = _implementation__->GetPrivacyMode(_result_);
265
+
266
+ if (_errorCode__ == Core::ERROR_NONE) {
267
+ result = _result_;
268
+ }
269
+
270
+ return (_errorCode__);
271
+ });
272
+
273
+ }
274
+
275
+ template<typename MODULE>
276
+ static void Unregister(MODULE& _module__)
277
+ {
278
+ // Unregister methods and properties...
279
+ _module__.PluginHost::JSONRPC::Unregister(_T("setaudiodescription"));
280
+ _module__.PluginHost::JSONRPC::Unregister(_T("getaudiodescription"));
281
+ _module__.PluginHost::JSONRPC::Unregister(_T("setpreferredaudiolanguages"));
282
+ _module__.PluginHost::JSONRPC::Unregister(_T("getpreferredaudiolanguages"));
283
+ _module__.PluginHost::JSONRPC::Unregister(_T("setpresentationlanguage"));
284
+ _module__.PluginHost::JSONRPC::Unregister(_T("getpresentationlanguage"));
285
+ _module__.PluginHost::JSONRPC::Unregister(_T("setcaptions"));
286
+ _module__.PluginHost::JSONRPC::Unregister(_T("getcaptions"));
287
+ _module__.PluginHost::JSONRPC::Unregister(_T("setpreferredcaptionslanguages"));
288
+ _module__.PluginHost::JSONRPC::Unregister(_T("getpreferredcaptionslanguages"));
289
+ _module__.PluginHost::JSONRPC::Unregister(_T("setpreferredclosedcaptionservice"));
290
+ _module__.PluginHost::JSONRPC::Unregister(_T("getpreferredclosedcaptionservice"));
291
+ _module__.PluginHost::JSONRPC::Unregister(_T("setprivacymode"));
292
+ _module__.PluginHost::JSONRPC::Unregister(_T("getprivacymode"));
293
+ }
294
+
295
+ namespace Event {
296
+
297
+ // Event: 'onaudiodescriptionchanged' - The AudioDescription setting has changed
298
+ template<typename MODULE>
299
+ static void OnAudioDescriptionChanged(const MODULE& module_, const JsonData::UserSettings::OnAudioDescriptionChangedParamsInfo& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
300
+ {
301
+ module_.Notify(_T("onaudiodescriptionchanged"), params, sendIfMethod_);
302
+ }
303
+
304
+ // Event: 'onaudiodescriptionchanged' - The AudioDescription setting has changed
305
+ template<typename MODULE>
306
+ static void OnAudioDescriptionChanged(const MODULE& module_, const Core::JSON::Boolean& enabled, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
307
+ {
308
+ JsonData::UserSettings::OnAudioDescriptionChangedParamsInfo params_;
309
+ params_.Enabled = enabled;
310
+
311
+ OnAudioDescriptionChanged(module_, params_, sendIfMethod_);
312
+ }
313
+
314
+ // Event: 'onaudiodescriptionchanged' - The AudioDescription setting has changed
315
+ template<typename MODULE>
316
+ static void OnAudioDescriptionChanged(const MODULE& module_, const bool enabled, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
317
+ {
318
+ JsonData::UserSettings::OnAudioDescriptionChangedParamsInfo params_;
319
+ params_.Enabled = enabled;
320
+
321
+ OnAudioDescriptionChanged(module_, params_, sendIfMethod_);
322
+ }
323
+
324
+ // Event: 'onpreferredaudiolanguageschanged' - The preferredLanguages setting has changed
325
+ template<typename MODULE>
326
+ static void OnPreferredAudioLanguagesChanged(const MODULE& module_, const JsonData::UserSettings::OnPreferredAudioLanguagesChangedParamsInfo& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
327
+ {
328
+ module_.Notify(_T("onpreferredaudiolanguageschanged"), params, sendIfMethod_);
329
+ }
330
+
331
+ // Event: 'onpreferredaudiolanguageschanged' - The preferredLanguages setting has changed
332
+ template<typename MODULE>
333
+ static void OnPreferredAudioLanguagesChanged(const MODULE& module_, const Core::JSON::String& preferredLanguages, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
334
+ {
335
+ JsonData::UserSettings::OnPreferredAudioLanguagesChangedParamsInfo params_;
336
+ params_.PreferredLanguages = preferredLanguages;
337
+
338
+ OnPreferredAudioLanguagesChanged(module_, params_, sendIfMethod_);
339
+ }
340
+
341
+ // Event: 'onpreferredaudiolanguageschanged' - The preferredLanguages setting has changed
342
+ template<typename MODULE>
343
+ static void OnPreferredAudioLanguagesChanged(const MODULE& module_, const string& preferredLanguages, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
344
+ {
345
+ JsonData::UserSettings::OnPreferredAudioLanguagesChangedParamsInfo params_;
346
+ params_.PreferredLanguages = preferredLanguages;
347
+
348
+ OnPreferredAudioLanguagesChanged(module_, params_, sendIfMethod_);
349
+ }
350
+
351
+ // Event: 'onpresentationlanguagechanged' - The PresentationLanguages setting has changed
352
+ template<typename MODULE>
353
+ static void OnPresentationLanguageChanged(const MODULE& module_, const JsonData::UserSettings::OnPresentationLanguageChangedParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
354
+ {
355
+ module_.Notify(_T("onpresentationlanguagechanged"), params, sendIfMethod_);
356
+ }
357
+
358
+ // Event: 'onpresentationlanguagechanged' - The PresentationLanguages setting has changed
359
+ template<typename MODULE>
360
+ static void OnPresentationLanguageChanged(const MODULE& module_, const Core::JSON::String& presentationLanguages, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
361
+ {
362
+ JsonData::UserSettings::OnPresentationLanguageChangedParamsData params_;
363
+ params_.PresentationLanguages = presentationLanguages;
364
+
365
+ OnPresentationLanguageChanged(module_, params_, sendIfMethod_);
366
+ }
367
+
368
+ // Event: 'onpresentationlanguagechanged' - The PresentationLanguages setting has changed
369
+ template<typename MODULE>
370
+ static void OnPresentationLanguageChanged(const MODULE& module_, const string& presentationLanguages, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
371
+ {
372
+ JsonData::UserSettings::OnPresentationLanguageChangedParamsData params_;
373
+ params_.PresentationLanguages = presentationLanguages;
374
+
375
+ OnPresentationLanguageChanged(module_, params_, sendIfMethod_);
376
+ }
377
+
378
+ // Event: 'oncaptionschanged' - The Captions setting has changed
379
+ template<typename MODULE>
380
+ static void OnCaptionsChanged(const MODULE& module_, const JsonData::UserSettings::OnAudioDescriptionChangedParamsInfo& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
381
+ {
382
+ module_.Notify(_T("oncaptionschanged"), params, sendIfMethod_);
383
+ }
384
+
385
+ // Event: 'oncaptionschanged' - The Captions setting has changed
386
+ template<typename MODULE>
387
+ static void OnCaptionsChanged(const MODULE& module_, const Core::JSON::Boolean& enabled, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
388
+ {
389
+ JsonData::UserSettings::OnAudioDescriptionChangedParamsInfo params_;
390
+ params_.Enabled = enabled;
391
+
392
+ OnCaptionsChanged(module_, params_, sendIfMethod_);
393
+ }
394
+
395
+ // Event: 'oncaptionschanged' - The Captions setting has changed
396
+ template<typename MODULE>
397
+ static void OnCaptionsChanged(const MODULE& module_, const bool enabled, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
398
+ {
399
+ JsonData::UserSettings::OnAudioDescriptionChangedParamsInfo params_;
400
+ params_.Enabled = enabled;
401
+
402
+ OnCaptionsChanged(module_, params_, sendIfMethod_);
403
+ }
404
+
405
+ // Event: 'onpreferredcaptionslanguageschanged' - The PreferredCaptionsLanguages setting has changed
406
+ template<typename MODULE>
407
+ static void OnPreferredCaptionsLanguagesChanged(const MODULE& module_, const JsonData::UserSettings::OnPreferredAudioLanguagesChangedParamsInfo& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
408
+ {
409
+ module_.Notify(_T("onpreferredcaptionslanguageschanged"), params, sendIfMethod_);
410
+ }
411
+
412
+ // Event: 'onpreferredcaptionslanguageschanged' - The PreferredCaptionsLanguages setting has changed
413
+ template<typename MODULE>
414
+ static void OnPreferredCaptionsLanguagesChanged(const MODULE& module_, const Core::JSON::String& preferredLanguages, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
415
+ {
416
+ JsonData::UserSettings::OnPreferredAudioLanguagesChangedParamsInfo params_;
417
+ params_.PreferredLanguages = preferredLanguages;
418
+
419
+ OnPreferredCaptionsLanguagesChanged(module_, params_, sendIfMethod_);
420
+ }
421
+
422
+ // Event: 'onpreferredcaptionslanguageschanged' - The PreferredCaptionsLanguages setting has changed
423
+ template<typename MODULE>
424
+ static void OnPreferredCaptionsLanguagesChanged(const MODULE& module_, const string& preferredLanguages, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
425
+ {
426
+ JsonData::UserSettings::OnPreferredAudioLanguagesChangedParamsInfo params_;
427
+ params_.PreferredLanguages = preferredLanguages;
428
+
429
+ OnPreferredCaptionsLanguagesChanged(module_, params_, sendIfMethod_);
430
+ }
431
+
432
+ // Event: 'onpreferredclosedcaptionservicechanged' - The PreferredClosedCaptionService setting has changed
433
+ template<typename MODULE>
434
+ static void OnPreferredClosedCaptionServiceChanged(const MODULE& module_, const JsonData::UserSettings::OnPreferredClosedCaptionServiceChangedParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
435
+ {
436
+ module_.Notify(_T("onpreferredclosedcaptionservicechanged"), params, sendIfMethod_);
437
+ }
438
+
439
+ // Event: 'onpreferredclosedcaptionservicechanged' - The PreferredClosedCaptionService setting has changed
440
+ template<typename MODULE>
441
+ static void OnPreferredClosedCaptionServiceChanged(const MODULE& module_, const Core::JSON::String& service, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
442
+ {
443
+ JsonData::UserSettings::OnPreferredClosedCaptionServiceChangedParamsData params_;
444
+ params_.Service = service;
445
+
446
+ OnPreferredClosedCaptionServiceChanged(module_, params_, sendIfMethod_);
447
+ }
448
+
449
+ // Event: 'onpreferredclosedcaptionservicechanged' - The PreferredClosedCaptionService setting has changed
450
+ template<typename MODULE>
451
+ static void OnPreferredClosedCaptionServiceChanged(const MODULE& module_, const string& service, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
452
+ {
453
+ JsonData::UserSettings::OnPreferredClosedCaptionServiceChangedParamsData params_;
454
+ params_.Service = service;
455
+
456
+ OnPreferredClosedCaptionServiceChanged(module_, params_, sendIfMethod_);
457
+ }
458
+
459
+ // Event: 'onprivacymodechanged' - The PrivacyMode setting has changed
460
+ template<typename MODULE>
461
+ static void OnPrivacyModeChanged(const MODULE& module_, const JsonData::UserSettings::OnPrivacyModeChangedParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
462
+ {
463
+ module_.Notify(_T("onprivacymodechanged"), params, sendIfMethod_);
464
+ }
465
+
466
+ // Event: 'onprivacymodechanged' - The PrivacyMode setting has changed
467
+ template<typename MODULE>
468
+ static void OnPrivacyModeChanged(const MODULE& module_, const Core::JSON::String& privacyMode, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
469
+ {
470
+ JsonData::UserSettings::OnPrivacyModeChangedParamsData params_;
471
+ params_.PrivacyMode = privacyMode;
472
+
473
+ OnPrivacyModeChanged(module_, params_, sendIfMethod_);
474
+ }
475
+
476
+ // Event: 'onprivacymodechanged' - The PrivacyMode setting has changed
477
+ template<typename MODULE>
478
+ static void OnPrivacyModeChanged(const MODULE& module_, const string& privacyMode, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
479
+ {
480
+ JsonData::UserSettings::OnPrivacyModeChangedParamsData params_;
481
+ params_.PrivacyMode = privacyMode;
482
+
483
+ OnPrivacyModeChanged(module_, params_, sendIfMethod_);
484
+ }
485
+
486
+ } // namespace Event
487
+
488
+ POP_WARNING()
489
+ POP_WARNING()
490
+ POP_WARNING()
491
+
492
+ } // namespace JUserSettings
493
+
494
+ } // namespace Exchange
495
+
496
+ } // namespace WPEFramework
497
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JVolumeControl.h ADDED
@@ -0,0 +1,162 @@
1
+ // Generated automatically from 'IVolumeControl.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_VolumeControl.h"
6
+ #include <interfaces/IVolumeControl.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JVolumeControl {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IVolumeControl* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JVolumeControl"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Property: 'muted' - Audio mute state
36
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::Boolean, Core::JSON::Boolean>(_T("muted"),
37
+ [_implementation__](const Core::JSON::Boolean& params, Core::JSON::Boolean& result) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ if (params.IsSet() == false) {
41
+ bool _result_{};
42
+
43
+ _errorCode__ = (static_cast<const IVolumeControl*>(_implementation__))->Muted(_result_);
44
+
45
+ if (_errorCode__ == Core::ERROR_NONE) {
46
+ result = _result_;
47
+ }
48
+ }
49
+ else {
50
+ const bool _params_{params};
51
+
52
+ _errorCode__ = _implementation__->Muted(_params_);
53
+
54
+ result.Null(true);
55
+ }
56
+
57
+ return (_errorCode__);
58
+ });
59
+
60
+ // Property: 'volume' - Audio volume level
61
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::DecUInt8, Core::JSON::DecUInt8>(_T("volume"),
62
+ [_implementation__](const Core::JSON::DecUInt8& params, Core::JSON::DecUInt8& result) -> uint32_t {
63
+ uint32_t _errorCode__ = Core::ERROR_NONE;
64
+
65
+ if (params.IsSet() == false) {
66
+ uint8_t _result_{};
67
+
68
+ _errorCode__ = (static_cast<const IVolumeControl*>(_implementation__))->Volume(_result_);
69
+
70
+ if (_errorCode__ == Core::ERROR_NONE) {
71
+ result = _result_;
72
+ }
73
+ }
74
+ else {
75
+ const uint8_t _params_{params};
76
+
77
+ _errorCode__ = _implementation__->Volume(_params_);
78
+
79
+ result.Null(true);
80
+ }
81
+
82
+ return (_errorCode__);
83
+ });
84
+
85
+ }
86
+
87
+ template<typename MODULE>
88
+ static void Unregister(MODULE& _module__)
89
+ {
90
+ // Unregister methods and properties...
91
+ _module__.PluginHost::JSONRPC::Unregister(_T("muted"));
92
+ _module__.PluginHost::JSONRPC::Unregister(_T("volume"));
93
+ }
94
+
95
+ namespace Event {
96
+
97
+ // Event: 'volume' - Signals volume change
98
+ template<typename MODULE>
99
+ static void Volume(const MODULE& module_, const JsonData::VolumeControl::VolumeParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
100
+ {
101
+ module_.Notify(_T("volume"), params, sendIfMethod_);
102
+ }
103
+
104
+ // Event: 'volume' - Signals volume change
105
+ template<typename MODULE>
106
+ static void Volume(const MODULE& module_, const Core::JSON::DecUInt8& volume, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
107
+ {
108
+ JsonData::VolumeControl::VolumeParamsData params_;
109
+ params_.Volume = volume;
110
+
111
+ Volume(module_, params_, sendIfMethod_);
112
+ }
113
+
114
+ // Event: 'volume' - Signals volume change
115
+ template<typename MODULE>
116
+ static void Volume(const MODULE& module_, const uint8_t volume, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
117
+ {
118
+ JsonData::VolumeControl::VolumeParamsData params_;
119
+ params_.Volume = volume;
120
+
121
+ Volume(module_, params_, sendIfMethod_);
122
+ }
123
+
124
+ // Event: 'muted' - Signals mute state change
125
+ template<typename MODULE>
126
+ static void Muted(const MODULE& module_, const JsonData::VolumeControl::MutedParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
127
+ {
128
+ module_.Notify(_T("muted"), params, sendIfMethod_);
129
+ }
130
+
131
+ // Event: 'muted' - Signals mute state change
132
+ template<typename MODULE>
133
+ static void Muted(const MODULE& module_, const Core::JSON::Boolean& muted, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
134
+ {
135
+ JsonData::VolumeControl::MutedParamsData params_;
136
+ params_.Muted = muted;
137
+
138
+ Muted(module_, params_, sendIfMethod_);
139
+ }
140
+
141
+ // Event: 'muted' - Signals mute state change
142
+ template<typename MODULE>
143
+ static void Muted(const MODULE& module_, const bool muted, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
144
+ {
145
+ JsonData::VolumeControl::MutedParamsData params_;
146
+ params_.Muted = muted;
147
+
148
+ Muted(module_, params_, sendIfMethod_);
149
+ }
150
+
151
+ } // namespace Event
152
+
153
+ POP_WARNING()
154
+ POP_WARNING()
155
+ POP_WARNING()
156
+
157
+ } // namespace JVolumeControl
158
+
159
+ } // namespace Exchange
160
+
161
+ } // namespace WPEFramework
162
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JWatchDog.h ADDED
@@ -0,0 +1,71 @@
1
+ // Generated automatically from 'IWatchDog.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_WatchDog.h"
6
+ #include <interfaces/IWatchDog.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JWatchDog {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IWatchDog* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JWatchDog"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Method: 'touch' - Touch the watchdog as a sign of life
36
+ _module__.PluginHost::JSONRPC::Register<JsonData::WatchDog::TouchParamsData, void>(_T("touch"),
37
+ [_implementation__](const JsonData::WatchDog::TouchParamsData& params) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
41
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
42
+ }
43
+ else {
44
+ const string _callsign_{params.Callsign};
45
+
46
+ _errorCode__ = _implementation__->Touch(_callsign_);
47
+
48
+ }
49
+
50
+ return (_errorCode__);
51
+ });
52
+
53
+ }
54
+
55
+ template<typename MODULE>
56
+ static void Unregister(MODULE& _module__)
57
+ {
58
+ // Unregister methods and properties...
59
+ _module__.PluginHost::JSONRPC::Unregister(_T("touch"));
60
+ }
61
+
62
+ POP_WARNING()
63
+ POP_WARNING()
64
+ POP_WARNING()
65
+
66
+ } // namespace JWatchDog
67
+
68
+ } // namespace Exchange
69
+
70
+ } // namespace WPEFramework
71
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JWebBrowser.h ADDED
@@ -0,0 +1,371 @@
1
+ // Generated automatically from 'IBrowser.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_WebBrowser.h"
6
+ #include <interfaces/IBrowser.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JWebBrowser {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IWebBrowser* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JWebBrowser"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Method: 'collectgarbage' - Initiate garbage collection
36
+ _module__.PluginHost::JSONRPC::Register<void, void>(_T("collectgarbage"),
37
+ [_implementation__]() -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ _errorCode__ = _implementation__->CollectGarbage();
41
+
42
+ return (_errorCode__);
43
+ });
44
+
45
+ // Property: 'url' - Page loaded in the browser
46
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::String, Core::JSON::String>(_T("url"),
47
+ [_implementation__](const Core::JSON::String& params, Core::JSON::String& result) -> uint32_t {
48
+ uint32_t _errorCode__ = Core::ERROR_NONE;
49
+
50
+ if (params.IsSet() == false) {
51
+ string _result_{};
52
+
53
+ _errorCode__ = (static_cast<const IWebBrowser*>(_implementation__))->URL(_result_);
54
+
55
+ if (_errorCode__ == Core::ERROR_NONE) {
56
+ result = _result_;
57
+ }
58
+ }
59
+ else {
60
+ const string _params_{params};
61
+
62
+ _errorCode__ = _implementation__->URL(_params_);
63
+
64
+ result.Null(true);
65
+ }
66
+
67
+ return (_errorCode__);
68
+ });
69
+
70
+ // Property: 'visibility' - Browser window visibility state
71
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::EnumType<Exchange::IWebBrowser::VisibilityType>, Core::JSON::EnumType<Exchange::IWebBrowser::VisibilityType>>(_T("visibility"),
72
+ [_implementation__](const Core::JSON::EnumType<Exchange::IWebBrowser::VisibilityType>& params, Core::JSON::EnumType<Exchange::IWebBrowser::VisibilityType>& result) -> uint32_t {
73
+ uint32_t _errorCode__ = Core::ERROR_NONE;
74
+
75
+ if (params.IsSet() == false) {
76
+ Exchange::IWebBrowser::VisibilityType _result_{};
77
+
78
+ _errorCode__ = (static_cast<const IWebBrowser*>(_implementation__))->Visibility(_result_);
79
+
80
+ if (_errorCode__ == Core::ERROR_NONE) {
81
+ result = _result_;
82
+ }
83
+ }
84
+ else {
85
+ const Exchange::IWebBrowser::VisibilityType _params_{params};
86
+
87
+ _errorCode__ = _implementation__->Visibility(_params_);
88
+
89
+ result.Null(true);
90
+ }
91
+
92
+ return (_errorCode__);
93
+ });
94
+
95
+ // Property: 'fps' - Current framerate the browser is rendering at (r/o)
96
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::DecUInt8>(_T("fps"),
97
+ [_implementation__](Core::JSON::DecUInt8& result) -> uint32_t {
98
+ uint32_t _errorCode__ = Core::ERROR_NONE;
99
+
100
+ uint8_t _result_{};
101
+
102
+ _errorCode__ = _implementation__->FPS(_result_);
103
+
104
+ if (_errorCode__ == Core::ERROR_NONE) {
105
+ result = _result_;
106
+ }
107
+
108
+ return (_errorCode__);
109
+ });
110
+
111
+ // Property: 'useragent' - UserAgent string used by the browser
112
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::String, Core::JSON::String>(_T("useragent"),
113
+ [_implementation__](const Core::JSON::String& params, Core::JSON::String& result) -> uint32_t {
114
+ uint32_t _errorCode__ = Core::ERROR_NONE;
115
+
116
+ if (params.IsSet() == false) {
117
+ string _result_{};
118
+
119
+ _errorCode__ = (static_cast<const IWebBrowser*>(_implementation__))->UserAgent(_result_);
120
+
121
+ if (_errorCode__ == Core::ERROR_NONE) {
122
+ result = _result_;
123
+ }
124
+ }
125
+ else {
126
+ const string _params_{params};
127
+
128
+ _errorCode__ = _implementation__->UserAgent(_params_);
129
+
130
+ result.Null(true);
131
+ }
132
+
133
+ return (_errorCode__);
134
+ });
135
+
136
+ // Property: 'localstorageenabled' - Controls the local storage availability
137
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::Boolean, Core::JSON::Boolean>(_T("localstorageenabled"),
138
+ [_implementation__](const Core::JSON::Boolean& params, Core::JSON::Boolean& result) -> uint32_t {
139
+ uint32_t _errorCode__ = Core::ERROR_NONE;
140
+
141
+ if (params.IsSet() == false) {
142
+ bool _result_{};
143
+
144
+ _errorCode__ = (static_cast<const IWebBrowser*>(_implementation__))->LocalStorageEnabled(_result_);
145
+
146
+ if (_errorCode__ == Core::ERROR_NONE) {
147
+ result = _result_;
148
+ }
149
+ }
150
+ else {
151
+ const bool _params_{params};
152
+
153
+ _errorCode__ = _implementation__->LocalStorageEnabled(_params_);
154
+
155
+ result.Null(true);
156
+ }
157
+
158
+ return (_errorCode__);
159
+ });
160
+
161
+ // Property: 'httpcookieacceptpolicy' - HTTP cookies accept policy
162
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::EnumType<Exchange::IWebBrowser::HTTPCookieAcceptPolicyType>, Core::JSON::EnumType<Exchange::IWebBrowser::HTTPCookieAcceptPolicyType>>(_T("httpcookieacceptpolicy"),
163
+ [_implementation__](const Core::JSON::EnumType<Exchange::IWebBrowser::HTTPCookieAcceptPolicyType>& params, Core::JSON::EnumType<Exchange::IWebBrowser::HTTPCookieAcceptPolicyType>& result) -> uint32_t {
164
+ uint32_t _errorCode__ = Core::ERROR_NONE;
165
+
166
+ if (params.IsSet() == false) {
167
+ Exchange::IWebBrowser::HTTPCookieAcceptPolicyType _result_{};
168
+
169
+ _errorCode__ = (static_cast<const IWebBrowser*>(_implementation__))->HTTPCookieAcceptPolicy(_result_);
170
+
171
+ if (_errorCode__ == Core::ERROR_NONE) {
172
+ result = _result_;
173
+ }
174
+ }
175
+ else {
176
+ const Exchange::IWebBrowser::HTTPCookieAcceptPolicyType _params_{params};
177
+
178
+ _errorCode__ = _implementation__->HTTPCookieAcceptPolicy(_params_);
179
+
180
+ result.Null(true);
181
+ }
182
+
183
+ return (_errorCode__);
184
+ });
185
+
186
+ // Property: 'bridgereply' - Response for legacy $badger (w/o)
187
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::String, void>(_T("bridgereply"),
188
+ [_implementation__](const Core::JSON::String& params) -> uint32_t {
189
+ uint32_t _errorCode__ = Core::ERROR_NONE;
190
+
191
+ if (params.IsSet() == false) {
192
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
193
+ }
194
+ else {
195
+ const string _params_{params};
196
+
197
+ _errorCode__ = _implementation__->BridgeReply(_params_);
198
+
199
+ }
200
+
201
+ return (_errorCode__);
202
+ });
203
+
204
+ // Property: 'bridgeevent' - Send legacy $badger event (w/o)
205
+ _module__.PluginHost::JSONRPC::Register<Core::JSON::String, void>(_T("bridgeevent"),
206
+ [_implementation__](const Core::JSON::String& params) -> uint32_t {
207
+ uint32_t _errorCode__ = Core::ERROR_NONE;
208
+
209
+ if (params.IsSet() == false) {
210
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
211
+ }
212
+ else {
213
+ const string _params_{params};
214
+
215
+ _errorCode__ = _implementation__->BridgeEvent(_params_);
216
+
217
+ }
218
+
219
+ return (_errorCode__);
220
+ });
221
+
222
+ }
223
+
224
+ template<typename MODULE>
225
+ static void Unregister(MODULE& _module__)
226
+ {
227
+ // Unregister methods and properties...
228
+ _module__.PluginHost::JSONRPC::Unregister(_T("collectgarbage"));
229
+ _module__.PluginHost::JSONRPC::Unregister(_T("url"));
230
+ _module__.PluginHost::JSONRPC::Unregister(_T("visibility"));
231
+ _module__.PluginHost::JSONRPC::Unregister(_T("fps"));
232
+ _module__.PluginHost::JSONRPC::Unregister(_T("useragent"));
233
+ _module__.PluginHost::JSONRPC::Unregister(_T("localstorageenabled"));
234
+ _module__.PluginHost::JSONRPC::Unregister(_T("httpcookieacceptpolicy"));
235
+ _module__.PluginHost::JSONRPC::Unregister(_T("bridgereply"));
236
+ _module__.PluginHost::JSONRPC::Unregister(_T("bridgeevent"));
237
+ }
238
+
239
+ namespace Event {
240
+
241
+ // Event: 'loadfinished' - Initial HTML document has been completely loaded and parsed
242
+ template<typename MODULE>
243
+ static void LoadFinished(const MODULE& module_, const JsonData::WebBrowser::LoadFinishedParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
244
+ {
245
+ module_.Notify(_T("loadfinished"), params, sendIfMethod_);
246
+ }
247
+
248
+ // Event: 'loadfinished' - Initial HTML document has been completely loaded and parsed
249
+ template<typename MODULE>
250
+ static void LoadFinished(const MODULE& module_, const Core::JSON::String& URL, const Core::JSON::DecSInt32& httpstatus, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
251
+ {
252
+ JsonData::WebBrowser::LoadFinishedParamsData params_;
253
+ params_.URL = URL;
254
+ params_.Httpstatus = httpstatus;
255
+
256
+ LoadFinished(module_, params_, sendIfMethod_);
257
+ }
258
+
259
+ // Event: 'loadfinished' - Initial HTML document has been completely loaded and parsed
260
+ template<typename MODULE>
261
+ static void LoadFinished(const MODULE& module_, const string& URL, const int32_t httpstatus, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
262
+ {
263
+ JsonData::WebBrowser::LoadFinishedParamsData params_;
264
+ params_.URL = URL;
265
+ params_.Httpstatus = httpstatus;
266
+
267
+ LoadFinished(module_, params_, sendIfMethod_);
268
+ }
269
+
270
+ // Event: 'loadfailed' - Browser failed to load page
271
+ template<typename MODULE>
272
+ static void LoadFailed(const MODULE& module_, const JsonData::WebBrowser::LoadFailedParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
273
+ {
274
+ module_.Notify(_T("loadfailed"), params, sendIfMethod_);
275
+ }
276
+
277
+ // Event: 'loadfailed' - Browser failed to load page
278
+ template<typename MODULE>
279
+ static void LoadFailed(const MODULE& module_, const Core::JSON::String& URL, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
280
+ {
281
+ JsonData::WebBrowser::LoadFailedParamsData params_;
282
+ params_.URL = URL;
283
+
284
+ LoadFailed(module_, params_, sendIfMethod_);
285
+ }
286
+
287
+ // Event: 'loadfailed' - Browser failed to load page
288
+ template<typename MODULE>
289
+ static void LoadFailed(const MODULE& module_, const string& URL, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
290
+ {
291
+ JsonData::WebBrowser::LoadFailedParamsData params_;
292
+ params_.URL = URL;
293
+
294
+ LoadFailed(module_, params_, sendIfMethod_);
295
+ }
296
+
297
+ // Event: 'urlchange' - Signals a URL change in the browser
298
+ template<typename MODULE>
299
+ static void URLChange(const MODULE& module_, const JsonData::WebBrowser::URLChangeParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
300
+ {
301
+ module_.Notify(_T("urlchange"), params, sendIfMethod_);
302
+ }
303
+
304
+ // Event: 'urlchange' - Signals a URL change in the browser
305
+ template<typename MODULE>
306
+ static void URLChange(const MODULE& module_, const Core::JSON::String& URL, const Core::JSON::Boolean& loaded, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
307
+ {
308
+ JsonData::WebBrowser::URLChangeParamsData params_;
309
+ params_.URL = URL;
310
+ params_.Loaded = loaded;
311
+
312
+ URLChange(module_, params_, sendIfMethod_);
313
+ }
314
+
315
+ // Event: 'urlchange' - Signals a URL change in the browser
316
+ template<typename MODULE>
317
+ static void URLChange(const MODULE& module_, const string& URL, const bool loaded, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
318
+ {
319
+ JsonData::WebBrowser::URLChangeParamsData params_;
320
+ params_.URL = URL;
321
+ params_.Loaded = loaded;
322
+
323
+ URLChange(module_, params_, sendIfMethod_);
324
+ }
325
+
326
+ // Event: 'visibilitychange' - Signals a visibility change of the browser
327
+ template<typename MODULE>
328
+ static void VisibilityChange(const MODULE& module_, const JsonData::WebBrowser::VisibilityChangeParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
329
+ {
330
+ module_.Notify(_T("visibilitychange"), params, sendIfMethod_);
331
+ }
332
+
333
+ // Event: 'visibilitychange' - Signals a visibility change of the browser
334
+ template<typename MODULE>
335
+ static void VisibilityChange(const MODULE& module_, const Core::JSON::Boolean& hidden, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
336
+ {
337
+ JsonData::WebBrowser::VisibilityChangeParamsData params_;
338
+ params_.Hidden = hidden;
339
+
340
+ VisibilityChange(module_, params_, sendIfMethod_);
341
+ }
342
+
343
+ // Event: 'visibilitychange' - Signals a visibility change of the browser
344
+ template<typename MODULE>
345
+ static void VisibilityChange(const MODULE& module_, const bool hidden, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
346
+ {
347
+ JsonData::WebBrowser::VisibilityChangeParamsData params_;
348
+ params_.Hidden = hidden;
349
+
350
+ VisibilityChange(module_, params_, sendIfMethod_);
351
+ }
352
+
353
+ // Event: 'pageclosure' - Notifies that the web page requests to close its window
354
+ template<typename MODULE>
355
+ static void PageClosure(const MODULE& module_, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
356
+ {
357
+ module_.Notify(_T("pageclosure"), sendIfMethod_);
358
+ }
359
+
360
+ } // namespace Event
361
+
362
+ POP_WARNING()
363
+ POP_WARNING()
364
+ POP_WARNING()
365
+
366
+ } // namespace JWebBrowser
367
+
368
+ } // namespace Exchange
369
+
370
+ } // namespace WPEFramework
371
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JWebKitBrowser.h ADDED
@@ -0,0 +1,26 @@
1
+ // Generated automatically from 'WebKitBrowser.json'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_WebKitBrowser.h"
6
+
7
+ namespace WPEFramework {
8
+
9
+ namespace Exchange {
10
+
11
+ namespace JWebKitBrowser {
12
+
13
+ namespace Version {
14
+
15
+ constexpr uint8_t Major = 1;
16
+ constexpr uint8_t Minor = 0;
17
+ constexpr uint8_t Patch = 0;
18
+
19
+ } // namespace Version
20
+
21
+ } // namespace JWebKitBrowser
22
+
23
+ } // namespace Exchange
24
+
25
+ } // namespace WPEFramework
26
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JWifiControl.h ADDED
@@ -0,0 +1,285 @@
1
+ // Generated automatically from 'IWifiControl.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_WifiControl.h"
6
+ #include <interfaces/IWifiControl.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JWifiControl {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IWifiControl* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JWifiControl"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Method: 'scan' - Trigger Scanning
36
+ _module__.PluginHost::JSONRPC::Register<void, void>(_T("scan"),
37
+ [_implementation__]() -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ _errorCode__ = _implementation__->Scan();
41
+
42
+ return (_errorCode__);
43
+ });
44
+
45
+ // Method: 'abortscan' - Abort Currentlt running scan
46
+ _module__.PluginHost::JSONRPC::Register<void, void>(_T("abortscan"),
47
+ [_implementation__]() -> uint32_t {
48
+ uint32_t _errorCode__ = Core::ERROR_NONE;
49
+
50
+ _errorCode__ = _implementation__->AbortScan();
51
+
52
+ return (_errorCode__);
53
+ });
54
+
55
+ // Method: 'connect' - Connect device to requested SSID
56
+ _module__.PluginHost::JSONRPC::Register<JsonData::WifiControl::ConnectParamsInfo, void>(_T("connect"),
57
+ [_implementation__](const JsonData::WifiControl::ConnectParamsInfo& params) -> uint32_t {
58
+ uint32_t _errorCode__ = Core::ERROR_NONE;
59
+
60
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
61
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
62
+ }
63
+ else {
64
+ const string _configSSID_{params.ConfigSSID};
65
+
66
+ _errorCode__ = _implementation__->Connect(_configSSID_);
67
+
68
+ }
69
+
70
+ return (_errorCode__);
71
+ });
72
+
73
+ // Method: 'disconnect' - Disconnect device from requested SSID
74
+ _module__.PluginHost::JSONRPC::Register<JsonData::WifiControl::ConnectParamsInfo, void>(_T("disconnect"),
75
+ [_implementation__](const JsonData::WifiControl::ConnectParamsInfo& params) -> uint32_t {
76
+ uint32_t _errorCode__ = Core::ERROR_NONE;
77
+
78
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
79
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
80
+ }
81
+ else {
82
+ const string _configSSID_{params.ConfigSSID};
83
+
84
+ _errorCode__ = _implementation__->Disconnect(_configSSID_);
85
+
86
+ }
87
+
88
+ return (_errorCode__);
89
+ });
90
+
91
+ // Method: 'status' - Status of current device, like which SSID is connected and it is in scanning state or not
92
+ _module__.PluginHost::JSONRPC::Register<void, JsonData::WifiControl::StatusResultData>(_T("status"),
93
+ [_implementation__](JsonData::WifiControl::StatusResultData& result) -> uint32_t {
94
+ uint32_t _errorCode__ = Core::ERROR_NONE;
95
+
96
+ string _connectedSsid_{};
97
+ bool _isScanning_{};
98
+
99
+ _errorCode__ = _implementation__->Status(_connectedSsid_, _isScanning_);
100
+
101
+ if (_errorCode__ == Core::ERROR_NONE) {
102
+ result.ConnectedSsid = _connectedSsid_;
103
+ result.IsScanning = _isScanning_;
104
+ }
105
+
106
+ return (_errorCode__);
107
+ });
108
+
109
+ // Property: 'networks' - Provides available networks information (r/o)
110
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::ArrayType<JsonData::WifiControl::NetworkInfoData>>(_T("networks"),
111
+ [_implementation__](Core::JSON::ArrayType<JsonData::WifiControl::NetworkInfoData>& result) -> uint32_t {
112
+ uint32_t _errorCode__ = Core::ERROR_NONE;
113
+
114
+ ::WPEFramework::RPC::IIteratorType<IWifiControl::NetworkInfo, ID_WIFICONTROL_NETWORK_INFO_ITERATOR>* _result_{};
115
+
116
+ _errorCode__ = _implementation__->Networks(_result_);
117
+
118
+ if (_errorCode__ == Core::ERROR_NONE) {
119
+ result.Set(true);
120
+
121
+ if (_result_ != nullptr) {
122
+ Exchange::IWifiControl::NetworkInfo _resultItem__{};
123
+ while (_result_->Next(_resultItem__) == true) { result.Add() = _resultItem__; }
124
+ _result_->Release();
125
+ }
126
+ }
127
+
128
+ return (_errorCode__);
129
+ });
130
+
131
+ // Indexed Property: 'securities' - Provides security method of requested SSID (r/o)
132
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::ArrayType<JsonData::WifiControl::SecurityInfoData>, std::function<uint32_t(const string&, Core::JSON::ArrayType<JsonData::WifiControl::SecurityInfoData>&)>>(_T("securities"),
133
+ [_implementation__](const string& ssid, Core::JSON::ArrayType<JsonData::WifiControl::SecurityInfoData>& result) -> uint32_t {
134
+ uint32_t _errorCode__ = Core::ERROR_NONE;
135
+
136
+ if (ssid.empty() == true) {
137
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
138
+ }
139
+
140
+ if (_errorCode__ == Core::ERROR_NONE) {
141
+ ::WPEFramework::RPC::IIteratorType<IWifiControl::SecurityInfo, ID_WIFICONTROL_SECURITY_INFO_ITERATOR>* _result_{};
142
+
143
+ _errorCode__ = _implementation__->Securities(ssid, _result_);
144
+
145
+ if (_errorCode__ == Core::ERROR_NONE) {
146
+ result.Set(true);
147
+
148
+ if (_result_ != nullptr) {
149
+ Exchange::IWifiControl::SecurityInfo _resultItem__{};
150
+ while (_result_->Next(_resultItem__) == true) { result.Add() = _resultItem__; }
151
+ _result_->Release();
152
+ }
153
+ }
154
+ }
155
+
156
+ return (_errorCode__);
157
+ });
158
+
159
+ // Property: 'configs' - Provides configs list (r/o)
160
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::ArrayType<Core::JSON::String>>(_T("configs"),
161
+ [_implementation__](Core::JSON::ArrayType<Core::JSON::String>& result) -> uint32_t {
162
+ uint32_t _errorCode__ = Core::ERROR_NONE;
163
+
164
+ ::WPEFramework::RPC::IIteratorType<string, ::WPEFramework::RPC::ID_STRINGITERATOR>* _result_{};
165
+
166
+ _errorCode__ = _implementation__->Configs(_result_);
167
+
168
+ if (_errorCode__ == Core::ERROR_NONE) {
169
+ result.Set(true);
170
+
171
+ if (_result_ != nullptr) {
172
+ string _resultItem__{};
173
+ while (_result_->Next(_resultItem__) == true) { result.Add() = _resultItem__; }
174
+ _result_->Release();
175
+ }
176
+ }
177
+
178
+ return (_errorCode__);
179
+ });
180
+
181
+ // Indexed Property: 'config' - Provide config details for requested SSID
182
+ _module__.PluginHost::JSONRPC::Register<JsonData::WifiControl::ConfigData, JsonData::WifiControl::ConfigInfoInfo, std::function<uint32_t(const string&, const JsonData::WifiControl::ConfigData&, JsonData::WifiControl::ConfigInfoInfo&)>>(_T("config"),
183
+ [_implementation__](const string& ssid, const JsonData::WifiControl::ConfigData& params, JsonData::WifiControl::ConfigInfoInfo& result) -> uint32_t {
184
+ uint32_t _errorCode__ = Core::ERROR_NONE;
185
+
186
+ if (ssid.empty() == true) {
187
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
188
+ }
189
+
190
+ if (_errorCode__ == Core::ERROR_NONE) {
191
+
192
+ if (params.IsSet() == false) {
193
+ Exchange::IWifiControl::ConfigInfo _result_{};
194
+
195
+ _errorCode__ = (static_cast<const IWifiControl*>(_implementation__))->Config(ssid, _result_);
196
+
197
+ if (_errorCode__ == Core::ERROR_NONE) {
198
+ result.Set(true);
199
+ result = _result_;
200
+ }
201
+ }
202
+ else {
203
+
204
+ if (params.IsDataValid() == false) {
205
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
206
+ }
207
+ else {
208
+ const Exchange::IWifiControl::ConfigInfo _value_(params.Value);
209
+
210
+ _errorCode__ = _implementation__->Config(ssid, _value_);
211
+
212
+ }
213
+
214
+ result.Null(true);
215
+ }
216
+ }
217
+
218
+ return (_errorCode__);
219
+ });
220
+
221
+ }
222
+
223
+ template<typename MODULE>
224
+ static void Unregister(MODULE& _module__)
225
+ {
226
+ // Unregister methods and properties...
227
+ _module__.PluginHost::JSONRPC::Unregister(_T("scan"));
228
+ _module__.PluginHost::JSONRPC::Unregister(_T("abortscan"));
229
+ _module__.PluginHost::JSONRPC::Unregister(_T("connect"));
230
+ _module__.PluginHost::JSONRPC::Unregister(_T("disconnect"));
231
+ _module__.PluginHost::JSONRPC::Unregister(_T("status"));
232
+ _module__.PluginHost::JSONRPC::Unregister(_T("networks"));
233
+ _module__.PluginHost::JSONRPC::Unregister(_T("securities"));
234
+ _module__.PluginHost::JSONRPC::Unregister(_T("configs"));
235
+ _module__.PluginHost::JSONRPC::Unregister(_T("config"));
236
+ }
237
+
238
+ namespace Event {
239
+
240
+ // Event: 'networkchange' - Notifies that Network were added, removed or modified
241
+ template<typename MODULE>
242
+ static void NetworkChange(const MODULE& module_, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
243
+ {
244
+ module_.Notify(_T("networkchange"), sendIfMethod_);
245
+ }
246
+
247
+ // Event: 'connectionchange' - Notifies that wifi connection changes
248
+ template<typename MODULE>
249
+ static void ConnectionChange(const MODULE& module_, const JsonData::WifiControl::ConnectionChangeParamsData& params, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
250
+ {
251
+ module_.Notify(_T("connectionchange"), params, sendIfMethod_);
252
+ }
253
+
254
+ // Event: 'connectionchange' - Notifies that wifi connection changes
255
+ template<typename MODULE>
256
+ static void ConnectionChange(const MODULE& module_, const Core::JSON::String& ssid, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
257
+ {
258
+ JsonData::WifiControl::ConnectionChangeParamsData params_;
259
+ params_.Ssid = ssid;
260
+
261
+ ConnectionChange(module_, params_, sendIfMethod_);
262
+ }
263
+
264
+ // Event: 'connectionchange' - Notifies that wifi connection changes
265
+ template<typename MODULE>
266
+ static void ConnectionChange(const MODULE& module_, const string& ssid, typename MODULE::SendIfMethod sendIfMethod_ = nullptr)
267
+ {
268
+ JsonData::WifiControl::ConnectionChangeParamsData params_;
269
+ params_.Ssid = ssid;
270
+
271
+ ConnectionChange(module_, params_, sendIfMethod_);
272
+ }
273
+
274
+ } // namespace Event
275
+
276
+ POP_WARNING()
277
+ POP_WARNING()
278
+ POP_WARNING()
279
+
280
+ } // namespace JWifiControl
281
+
282
+ } // namespace Exchange
283
+
284
+ } // namespace WPEFramework
285
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JZigWave.h ADDED
@@ -0,0 +1,222 @@
1
+ // Generated automatically from 'IZigWave.h'. DO NOT EDIT.
2
+
3
+ #pragma once
4
+ #include "Module.h"
5
+ #include "JsonData_ZigWave.h"
6
+ #include <interfaces/IZigWave.h>
7
+
8
+ namespace WPEFramework {
9
+
10
+ namespace Exchange {
11
+
12
+ namespace JZigWave {
13
+
14
+ namespace Version {
15
+
16
+ constexpr uint8_t Major = 1;
17
+ constexpr uint8_t Minor = 0;
18
+ constexpr uint8_t Patch = 0;
19
+
20
+ } // namespace Version
21
+
22
+ PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
+ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
+
26
+ template<typename MODULE>
27
+ static void Register(MODULE& _module__, IZigWave* _implementation__)
28
+ {
29
+ ASSERT(_implementation__ != nullptr);
30
+
31
+ _module__.PluginHost::JSONRPC::RegisterVersion(_T("JZigWave"), Version::Major, Version::Minor, Version::Patch);
32
+
33
+ // Register methods and properties...
34
+
35
+ // Method: 'bind' - Bind the *out* from the soure to the *in* of the destination
36
+ _module__.PluginHost::JSONRPC::Register<JsonData::ZigWave::BindParamsInfo, void>(_T("bind"),
37
+ [_implementation__](const JsonData::ZigWave::BindParamsInfo& params) -> uint32_t {
38
+ uint32_t _errorCode__ = Core::ERROR_NONE;
39
+
40
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
41
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
42
+ }
43
+ else {
44
+ const uint32_t _source_{params.Source};
45
+ const uint32_t _destination_{params.Destination};
46
+
47
+ _errorCode__ = _implementation__->Bind(_source_, _destination_);
48
+
49
+ }
50
+
51
+ return (_errorCode__);
52
+ });
53
+
54
+ // Method: 'unbind' - Unbind the *out* from the soure to the *in* of the destination
55
+ _module__.PluginHost::JSONRPC::Register<JsonData::ZigWave::BindParamsInfo, void>(_T("unbind"),
56
+ [_implementation__](const JsonData::ZigWave::BindParamsInfo& params) -> uint32_t {
57
+ uint32_t _errorCode__ = Core::ERROR_NONE;
58
+
59
+ if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
60
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
61
+ }
62
+ else {
63
+ const uint32_t _source_{params.Source};
64
+ const uint32_t _destination_{params.Destination};
65
+
66
+ _errorCode__ = _implementation__->Unbind(_source_, _destination_);
67
+
68
+ }
69
+
70
+ return (_errorCode__);
71
+ });
72
+
73
+ // Indexed Property: 'permutable' - To allow new devices to the network, the controller should be placed into an accepting mode
74
+ _module__.PluginHost::JSONRPC::Register<JsonData::ZigWave::PermutableInfo, Core::JSON::Boolean, std::function<uint32_t(const string&, const JsonData::ZigWave::PermutableInfo&, Core::JSON::Boolean&)>>(_T("permutable"),
75
+ [_implementation__](const string& address, const JsonData::ZigWave::PermutableInfo& params, Core::JSON::Boolean& result) -> uint32_t {
76
+ uint32_t _errorCode__ = Core::ERROR_NONE;
77
+
78
+ uint32_t _addressConv__{};
79
+
80
+ if (address.empty() == true) {
81
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
82
+ }
83
+ else {
84
+ const bool _addressConvResult__ = Core::FromString(address, _addressConv__);
85
+
86
+ if (_addressConvResult__ == false) {
87
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
88
+ }
89
+ }
90
+
91
+ if (_errorCode__ == Core::ERROR_NONE) {
92
+
93
+ if (params.IsSet() == false) {
94
+ bool _result_{};
95
+
96
+ _errorCode__ = (static_cast<const IZigWave*>(_implementation__))->Permutable(_addressConv__, _result_);
97
+
98
+ if (_errorCode__ == Core::ERROR_NONE) {
99
+ result = _result_;
100
+ }
101
+ }
102
+ else {
103
+
104
+ if (params.IsDataValid() == false) {
105
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
106
+ }
107
+ else {
108
+ const bool _value_{params.Value};
109
+
110
+ _errorCode__ = _implementation__->Permutable(_addressConv__, _value_);
111
+
112
+ }
113
+
114
+ result.Null(true);
115
+ }
116
+ }
117
+
118
+ return (_errorCode__);
119
+ });
120
+
121
+ // Indexed Property: 'accept' - To allow new devices to the network, the controller should be placed into an accepting mode
122
+ _module__.PluginHost::JSONRPC::Register<JsonData::ZigWave::PermutableInfo, Core::JSON::Boolean, std::function<uint32_t(const string&, const JsonData::ZigWave::PermutableInfo&, Core::JSON::Boolean&)>>(_T("accept"),
123
+ [_implementation__](const string& address, const JsonData::ZigWave::PermutableInfo& params, Core::JSON::Boolean& result) -> uint32_t {
124
+ uint32_t _errorCode__ = Core::ERROR_NONE;
125
+
126
+ uint32_t _addressConv__{};
127
+
128
+ if (address.empty() == true) {
129
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
130
+ }
131
+ else {
132
+ const bool _addressConvResult__ = Core::FromString(address, _addressConv__);
133
+
134
+ if (_addressConvResult__ == false) {
135
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
136
+ }
137
+ }
138
+
139
+ if (_errorCode__ == Core::ERROR_NONE) {
140
+
141
+ if (params.IsSet() == false) {
142
+ bool _result_{};
143
+
144
+ _errorCode__ = (static_cast<const IZigWave*>(_implementation__))->Permutable(_addressConv__, _result_);
145
+
146
+ if (_errorCode__ == Core::ERROR_NONE) {
147
+ result = _result_;
148
+ }
149
+ }
150
+ else {
151
+
152
+ if (params.IsDataValid() == false) {
153
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
154
+ }
155
+ else {
156
+ const bool _value_{params.Value};
157
+
158
+ _errorCode__ = _implementation__->Permutable(_addressConv__, _value_);
159
+
160
+ }
161
+
162
+ result.Null(true);
163
+ }
164
+ }
165
+
166
+ return (_errorCode__);
167
+ });
168
+
169
+ // Indexed Property: 'device' - To allow new devices to the network, the controller should be placed into an accepting mode (r/o)
170
+ _module__.PluginHost::JSONRPC::Register<void, Core::JSON::String, std::function<uint32_t(const string&, Core::JSON::String&)>>(_T("device"),
171
+ [_implementation__](const string& id, Core::JSON::String& result) -> uint32_t {
172
+ uint32_t _errorCode__ = Core::ERROR_NONE;
173
+
174
+ uint32_t _idConv__{};
175
+
176
+ if (id.empty() == true) {
177
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
178
+ }
179
+ else {
180
+ const bool _idConvResult__ = Core::FromString(id, _idConv__);
181
+
182
+ if (_idConvResult__ == false) {
183
+ _errorCode__ = Core::ERROR_BAD_REQUEST;
184
+ }
185
+ }
186
+
187
+ if (_errorCode__ == Core::ERROR_NONE) {
188
+ string _result_{};
189
+
190
+ _errorCode__ = _implementation__->Device(_idConv__, _result_);
191
+
192
+ if (_errorCode__ == Core::ERROR_NONE) {
193
+ result = _result_;
194
+ }
195
+ }
196
+
197
+ return (_errorCode__);
198
+ });
199
+
200
+ }
201
+
202
+ template<typename MODULE>
203
+ static void Unregister(MODULE& _module__)
204
+ {
205
+ // Unregister methods and properties...
206
+ _module__.PluginHost::JSONRPC::Unregister(_T("bind"));
207
+ _module__.PluginHost::JSONRPC::Unregister(_T("unbind"));
208
+ _module__.PluginHost::JSONRPC::Unregister(_T("permutable"));
209
+ _module__.PluginHost::JSONRPC::Unregister(_T("accept"));
210
+ _module__.PluginHost::JSONRPC::Unregister(_T("device"));
211
+ }
212
+
213
+ POP_WARNING()
214
+ POP_WARNING()
215
+ POP_WARNING()
216
+
217
+ } // namespace JZigWave
218
+
219
+ } // namespace Exchange
220
+
221
+ } // namespace WPEFramework
222
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_AVSController.h ADDED
@@ -0,0 +1,32 @@
1
+ // C++ types for AVSController API.
2
+ // Generated automatically from 'IAVSClient.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IAVSClient.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace AVSController {
18
+
19
+ // Method params/result classes
20
+ //
21
+
22
+ } // namespace AVSController
23
+
24
+ POP_WARNING()
25
+
26
+ } // namespace JsonData
27
+
28
+ // Enum conversion handlers
29
+ ENUM_CONVERSION_HANDLER(Exchange::IAVSController::INotification::dialoguestate)
30
+
31
+ }
32
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_AppManager.h ADDED
@@ -0,0 +1,364 @@
1
+ // C++ types for AppManager API.
2
+ // Generated automatically from 'IAppManager.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IAppManager.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace AppManager {
18
+
19
+ // Common classes
20
+ //
21
+
22
+ class GetAppMetaInfoParamsInfo : public Core::JSON::Container {
23
+ public:
24
+ GetAppMetaInfoParamsInfo()
25
+ : Core::JSON::Container()
26
+ {
27
+ Add(_T("appId"), &AppId);
28
+ Add(_T("key"), &Key);
29
+ }
30
+
31
+ GetAppMetaInfoParamsInfo(const GetAppMetaInfoParamsInfo&) = delete;
32
+ GetAppMetaInfoParamsInfo(GetAppMetaInfoParamsInfo&&) noexcept = delete;
33
+
34
+ GetAppMetaInfoParamsInfo& operator=(const GetAppMetaInfoParamsInfo&) = delete;
35
+ GetAppMetaInfoParamsInfo& operator=(GetAppMetaInfoParamsInfo&&) noexcept = delete;
36
+
37
+ ~GetAppMetaInfoParamsInfo() = default;
38
+
39
+ public:
40
+ bool IsDataValid() const
41
+ {
42
+ return ((AppId.IsSet() == true) && (Key.IsSet() == true));
43
+ }
44
+
45
+ public:
46
+ Core::JSON::String AppId;
47
+ Core::JSON::String Key;
48
+ }; // class GetAppMetaInfoParamsInfo
49
+
50
+ class LaunchAppParamsInfo : public Core::JSON::Container {
51
+ public:
52
+ LaunchAppParamsInfo()
53
+ : Core::JSON::Container()
54
+ {
55
+ Add(_T("appId"), &AppId);
56
+ Add(_T("intent"), &Intent);
57
+ Add(_T("launchArgs"), &LaunchArgs);
58
+ }
59
+
60
+ LaunchAppParamsInfo(const LaunchAppParamsInfo&) = delete;
61
+ LaunchAppParamsInfo(LaunchAppParamsInfo&&) noexcept = delete;
62
+
63
+ LaunchAppParamsInfo& operator=(const LaunchAppParamsInfo&) = delete;
64
+ LaunchAppParamsInfo& operator=(LaunchAppParamsInfo&&) noexcept = delete;
65
+
66
+ ~LaunchAppParamsInfo() = default;
67
+
68
+ public:
69
+ bool IsDataValid() const
70
+ {
71
+ return ((AppId.IsSet() == true) && (Intent.IsSet() == true) && (LaunchArgs.IsSet() == true));
72
+ }
73
+
74
+ public:
75
+ Core::JSON::String AppId;
76
+ Core::JSON::String Intent;
77
+ Core::JSON::String LaunchArgs;
78
+ }; // class LaunchAppParamsInfo
79
+
80
+ class PrepareAppParamsInfo : public Core::JSON::Container {
81
+ public:
82
+ PrepareAppParamsInfo()
83
+ : Core::JSON::Container()
84
+ {
85
+ Add(_T("appId"), &AppId);
86
+ }
87
+
88
+ PrepareAppParamsInfo(const PrepareAppParamsInfo&) = delete;
89
+ PrepareAppParamsInfo(PrepareAppParamsInfo&&) noexcept = delete;
90
+
91
+ PrepareAppParamsInfo& operator=(const PrepareAppParamsInfo&) = delete;
92
+ PrepareAppParamsInfo& operator=(PrepareAppParamsInfo&&) noexcept = delete;
93
+
94
+ ~PrepareAppParamsInfo() = default;
95
+
96
+ public:
97
+ bool IsDataValid() const
98
+ {
99
+ return (AppId.IsSet() == true);
100
+ }
101
+
102
+ public:
103
+ Core::JSON::String AppId;
104
+ }; // class PrepareAppParamsInfo
105
+
106
+ // Method params/result classes
107
+ //
108
+
109
+ class OnAppInstalledParamsData : public Core::JSON::Container {
110
+ public:
111
+ OnAppInstalledParamsData()
112
+ : Core::JSON::Container()
113
+ {
114
+ Add(_T("appId"), &AppId);
115
+ Add(_T("version"), &Version);
116
+ }
117
+
118
+ OnAppInstalledParamsData(const OnAppInstalledParamsData&) = delete;
119
+ OnAppInstalledParamsData(OnAppInstalledParamsData&&) noexcept = delete;
120
+
121
+ OnAppInstalledParamsData& operator=(const OnAppInstalledParamsData&) = delete;
122
+ OnAppInstalledParamsData& operator=(OnAppInstalledParamsData&&) noexcept = delete;
123
+
124
+ ~OnAppInstalledParamsData() = default;
125
+
126
+ public:
127
+ bool IsDataValid() const
128
+ {
129
+ return ((AppId.IsSet() == true) && (Version.IsSet() == true));
130
+ }
131
+
132
+ public:
133
+ Core::JSON::String AppId; // id of the application
134
+ Core::JSON::String Version; // The version string of the app. This is a free form non-empty string
135
+ }; // class OnAppInstalledParamsData
136
+
137
+ class OnAppLaunchRequestParamsData : public Core::JSON::Container {
138
+ public:
139
+ OnAppLaunchRequestParamsData()
140
+ : Core::JSON::Container()
141
+ {
142
+ Add(_T("appId"), &AppId);
143
+ Add(_T("intent"), &Intent);
144
+ Add(_T("source"), &Source);
145
+ }
146
+
147
+ OnAppLaunchRequestParamsData(const OnAppLaunchRequestParamsData&) = delete;
148
+ OnAppLaunchRequestParamsData(OnAppLaunchRequestParamsData&&) noexcept = delete;
149
+
150
+ OnAppLaunchRequestParamsData& operator=(const OnAppLaunchRequestParamsData&) = delete;
151
+ OnAppLaunchRequestParamsData& operator=(OnAppLaunchRequestParamsData&&) noexcept = delete;
152
+
153
+ ~OnAppLaunchRequestParamsData() = default;
154
+
155
+ public:
156
+ bool IsDataValid() const
157
+ {
158
+ return ((AppId.IsSet() == true) && (Intent.IsSet() == true) && (Source.IsSet() == true));
159
+ }
160
+
161
+ public:
162
+ Core::JSON::String AppId; // The source of the launch request
163
+ Core::JSON::String Intent; // intent object (JSON format)
164
+ Core::JSON::String Source; // This event is a stop-gap and expected to be deprecated in the future. Triggered when an app launch request is received from an external component. For example DIAL launch request, or app to app launch requested from a running Firebolt app.
165
+ }; // class OnAppLaunchRequestParamsData
166
+
167
+ class OnAppStateChangedParamsData : public Core::JSON::Container {
168
+ public:
169
+ OnAppStateChangedParamsData()
170
+ : Core::JSON::Container()
171
+ {
172
+ Add(_T("appId"), &AppId);
173
+ Add(_T("state"), &State);
174
+ }
175
+
176
+ OnAppStateChangedParamsData(const OnAppStateChangedParamsData&) = delete;
177
+ OnAppStateChangedParamsData(OnAppStateChangedParamsData&&) noexcept = delete;
178
+
179
+ OnAppStateChangedParamsData& operator=(const OnAppStateChangedParamsData&) = delete;
180
+ OnAppStateChangedParamsData& operator=(OnAppStateChangedParamsData&&) noexcept = delete;
181
+
182
+ ~OnAppStateChangedParamsData() = default;
183
+
184
+ public:
185
+ bool IsDataValid() const
186
+ {
187
+ return ((AppId.IsSet() == true) && (State.IsSet() == true));
188
+ }
189
+
190
+ public:
191
+ Core::JSON::String AppId; // id of the application
192
+ Core::JSON::String State; // Triggered whenever there is a change in the lifecycle state of a running app.
193
+ }; // class OnAppStateChangedParamsData
194
+
195
+ class SendMessageParamsData : public Core::JSON::Container {
196
+ public:
197
+ SendMessageParamsData()
198
+ : Core::JSON::Container()
199
+ {
200
+ Add(_T("appId"), &AppId);
201
+ Add(_T("messagae"), &Messagae);
202
+ }
203
+
204
+ SendMessageParamsData(const SendMessageParamsData&) = delete;
205
+ SendMessageParamsData(SendMessageParamsData&&) noexcept = delete;
206
+
207
+ SendMessageParamsData& operator=(const SendMessageParamsData&) = delete;
208
+ SendMessageParamsData& operator=(SendMessageParamsData&&) noexcept = delete;
209
+
210
+ ~SendMessageParamsData() = default;
211
+
212
+ public:
213
+ bool IsDataValid() const
214
+ {
215
+ return ((AppId.IsSet() == true) && (Messagae.IsSet() == true));
216
+ }
217
+
218
+ public:
219
+ Core::JSON::String AppId;
220
+ Core::JSON::String Messagae;
221
+ }; // class SendMessageParamsData
222
+
223
+ class SetAppPropertyParamsData : public Core::JSON::Container {
224
+ public:
225
+ SetAppPropertyParamsData()
226
+ : Core::JSON::Container()
227
+ {
228
+ Add(_T("appId"), &AppId);
229
+ Add(_T("key"), &Key);
230
+ Add(_T("value"), &Value);
231
+ }
232
+
233
+ SetAppPropertyParamsData(const SetAppPropertyParamsData&) = delete;
234
+ SetAppPropertyParamsData(SetAppPropertyParamsData&&) noexcept = delete;
235
+
236
+ SetAppPropertyParamsData& operator=(const SetAppPropertyParamsData&) = delete;
237
+ SetAppPropertyParamsData& operator=(SetAppPropertyParamsData&&) noexcept = delete;
238
+
239
+ ~SetAppPropertyParamsData() = default;
240
+
241
+ public:
242
+ bool IsDataValid() const
243
+ {
244
+ return ((AppId.IsSet() == true) && (Key.IsSet() == true) && (Value.IsSet() == true));
245
+ }
246
+
247
+ public:
248
+ Core::JSON::String AppId;
249
+ Core::JSON::String Key;
250
+ Core::JSON::String Value;
251
+ }; // class SetAppPropertyParamsData
252
+
253
+ class SetMaxHibernatedAppsData : public Core::JSON::Container {
254
+ public:
255
+ SetMaxHibernatedAppsData()
256
+ : Core::JSON::Container()
257
+ {
258
+ Add(_T("maxHibernatedApps"), &MaxHibernatedApps);
259
+ }
260
+
261
+ SetMaxHibernatedAppsData(const SetMaxHibernatedAppsData&) = delete;
262
+ SetMaxHibernatedAppsData(SetMaxHibernatedAppsData&&) noexcept = delete;
263
+
264
+ SetMaxHibernatedAppsData& operator=(const SetMaxHibernatedAppsData&) = delete;
265
+ SetMaxHibernatedAppsData& operator=(SetMaxHibernatedAppsData&&) noexcept = delete;
266
+
267
+ ~SetMaxHibernatedAppsData() = default;
268
+
269
+ public:
270
+ bool IsDataValid() const
271
+ {
272
+ return (MaxHibernatedApps.IsSet() == true);
273
+ }
274
+
275
+ public:
276
+ Core::JSON::DecUInt32 MaxHibernatedApps; // : maxHibernatedApps
277
+ }; // class SetMaxHibernatedAppsData
278
+
279
+ class SetMaxHibernatedFlashUsageData : public Core::JSON::Container {
280
+ public:
281
+ SetMaxHibernatedFlashUsageData()
282
+ : Core::JSON::Container()
283
+ {
284
+ Add(_T("maxHibernatedFlashUsage"), &MaxHibernatedFlashUsage);
285
+ }
286
+
287
+ SetMaxHibernatedFlashUsageData(const SetMaxHibernatedFlashUsageData&) = delete;
288
+ SetMaxHibernatedFlashUsageData(SetMaxHibernatedFlashUsageData&&) noexcept = delete;
289
+
290
+ SetMaxHibernatedFlashUsageData& operator=(const SetMaxHibernatedFlashUsageData&) = delete;
291
+ SetMaxHibernatedFlashUsageData& operator=(SetMaxHibernatedFlashUsageData&&) noexcept = delete;
292
+
293
+ ~SetMaxHibernatedFlashUsageData() = default;
294
+
295
+ public:
296
+ bool IsDataValid() const
297
+ {
298
+ return (MaxHibernatedFlashUsage.IsSet() == true);
299
+ }
300
+
301
+ public:
302
+ Core::JSON::DecUInt32 MaxHibernatedFlashUsage; // : maxHibernatedFlashUsage
303
+ }; // class SetMaxHibernatedFlashUsageData
304
+
305
+ class SetMaxInactiveAppsData : public Core::JSON::Container {
306
+ public:
307
+ SetMaxInactiveAppsData()
308
+ : Core::JSON::Container()
309
+ {
310
+ Add(_T("maxInteractiveApps"), &MaxInteractiveApps);
311
+ }
312
+
313
+ SetMaxInactiveAppsData(const SetMaxInactiveAppsData&) = delete;
314
+ SetMaxInactiveAppsData(SetMaxInactiveAppsData&&) noexcept = delete;
315
+
316
+ SetMaxInactiveAppsData& operator=(const SetMaxInactiveAppsData&) = delete;
317
+ SetMaxInactiveAppsData& operator=(SetMaxInactiveAppsData&&) noexcept = delete;
318
+
319
+ ~SetMaxInactiveAppsData() = default;
320
+
321
+ public:
322
+ bool IsDataValid() const
323
+ {
324
+ return (MaxInteractiveApps.IsSet() == true);
325
+ }
326
+
327
+ public:
328
+ Core::JSON::DecUInt32 MaxInteractiveApps; // : maxInteractiveApps
329
+ }; // class SetMaxInactiveAppsData
330
+
331
+ class SetMaxInactiveRamUsageData : public Core::JSON::Container {
332
+ public:
333
+ SetMaxInactiveRamUsageData()
334
+ : Core::JSON::Container()
335
+ {
336
+ Add(_T("maxInactiveRamUsage"), &MaxInactiveRamUsage);
337
+ }
338
+
339
+ SetMaxInactiveRamUsageData(const SetMaxInactiveRamUsageData&) = delete;
340
+ SetMaxInactiveRamUsageData(SetMaxInactiveRamUsageData&&) noexcept = delete;
341
+
342
+ SetMaxInactiveRamUsageData& operator=(const SetMaxInactiveRamUsageData&) = delete;
343
+ SetMaxInactiveRamUsageData& operator=(SetMaxInactiveRamUsageData&&) noexcept = delete;
344
+
345
+ ~SetMaxInactiveRamUsageData() = default;
346
+
347
+ public:
348
+ bool IsDataValid() const
349
+ {
350
+ return (MaxInactiveRamUsage.IsSet() == true);
351
+ }
352
+
353
+ public:
354
+ Core::JSON::DecUInt32 MaxInactiveRamUsage; // : maxInactiveRamUsage
355
+ }; // class SetMaxInactiveRamUsageData
356
+
357
+ } // namespace AppManager
358
+
359
+ POP_WARNING()
360
+
361
+ } // namespace JsonData
362
+
363
+ }
364
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Application.h ADDED
@@ -0,0 +1,33 @@
1
+ // C++ types for Application API.
2
+ // Generated automatically from 'IApplication.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IApplication.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace Application {
18
+
19
+ // Method params/result classes
20
+ //
21
+
22
+ } // namespace Application
23
+
24
+ POP_WARNING()
25
+
26
+ } // namespace JsonData
27
+
28
+ // Enum conversion handlers
29
+ ENUM_CONVERSION_HANDLER(Exchange::IApplication::resettype)
30
+ ENUM_CONVERSION_HANDLER(Exchange::IApplication::launchpointtype)
31
+
32
+ }
33
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_BluetoothAudioSink.h ADDED
@@ -0,0 +1,357 @@
1
+ // C++ types for BluetoothAudioSink API.
2
+ // Generated automatically from 'IBluetoothAudio.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IBluetoothAudio.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace BluetoothAudioSink {
18
+
19
+ // Method params/result classes
20
+ //
21
+
22
+ class AssignParamsData : public Core::JSON::Container {
23
+ public:
24
+ AssignParamsData()
25
+ : Core::JSON::Container()
26
+ {
27
+ Add(_T("address"), &Address);
28
+ }
29
+
30
+ AssignParamsData(const AssignParamsData&) = delete;
31
+ AssignParamsData(AssignParamsData&&) noexcept = delete;
32
+
33
+ AssignParamsData& operator=(const AssignParamsData&) = delete;
34
+ AssignParamsData& operator=(AssignParamsData&&) noexcept = delete;
35
+
36
+ ~AssignParamsData() = default;
37
+
38
+ public:
39
+ bool IsDataValid() const
40
+ {
41
+ return (Address.IsSet() == true);
42
+ }
43
+
44
+ public:
45
+ Core::JSON::String Address; // Address of the bluetooth device to assign
46
+ }; // class AssignParamsData
47
+
48
+ class CodecPropertiesData : public Core::JSON::Container {
49
+ public:
50
+ CodecPropertiesData()
51
+ : Core::JSON::Container()
52
+ {
53
+ _Init();
54
+ }
55
+
56
+ CodecPropertiesData(const CodecPropertiesData& _other)
57
+ : Core::JSON::Container()
58
+ , Codec(_other.Codec)
59
+ , Settings(_other.Settings)
60
+ {
61
+ _Init();
62
+ }
63
+
64
+ CodecPropertiesData(CodecPropertiesData&& _other) noexcept
65
+ : Core::JSON::Container()
66
+ , Codec(std::move(_other.Codec))
67
+ , Settings(std::move(_other.Settings))
68
+ {
69
+ _Init();
70
+ }
71
+
72
+ CodecPropertiesData(const Exchange::IBluetoothAudioSink::CodecProperties& _other)
73
+ : Core::JSON::Container()
74
+ {
75
+ Codec = _other.Codec;
76
+ Settings = _other.Settings;
77
+ _Init();
78
+ }
79
+
80
+ CodecPropertiesData& operator=(const CodecPropertiesData& _rhs)
81
+ {
82
+ Codec = _rhs.Codec;
83
+ Settings = _rhs.Settings;
84
+ return (*this);
85
+ }
86
+
87
+ CodecPropertiesData& operator=(CodecPropertiesData&& _rhs) noexcept
88
+ {
89
+ Codec = std::move(_rhs.Codec);
90
+ Settings = std::move(_rhs.Settings);
91
+ return (*this);
92
+ }
93
+
94
+ CodecPropertiesData& operator=(const Exchange::IBluetoothAudioSink::CodecProperties& _rhs)
95
+ {
96
+ Codec = _rhs.Codec;
97
+ Settings = _rhs.Settings;
98
+ return (*this);
99
+ }
100
+
101
+ operator Exchange::IBluetoothAudioSink::CodecProperties() const
102
+ {
103
+ Exchange::IBluetoothAudioSink::CodecProperties _value{};
104
+ _value.Codec = Codec;
105
+ _value.Settings = Settings;
106
+ return (_value);
107
+ }
108
+
109
+ ~CodecPropertiesData() = default;
110
+
111
+ public:
112
+ bool IsDataValid() const
113
+ {
114
+ return ((Codec.IsSet() == true) && (Settings.IsSet() == true));
115
+ }
116
+
117
+ private:
118
+ void _Init()
119
+ {
120
+ Add(_T("codec"), &Codec);
121
+ Add(_T("settings"), &Settings);
122
+ }
123
+
124
+ public:
125
+ Core::JSON::EnumType<Exchange::IBluetoothAudioSink::audiocodec> Codec; // Audio codec used
126
+ Core::JSON::String Settings; // Codec-specific audio quality preset, compression profile, etc
127
+ }; // class CodecPropertiesData
128
+
129
+ class DRMPropertiesData : public Core::JSON::Container {
130
+ public:
131
+ DRMPropertiesData()
132
+ : Core::JSON::Container()
133
+ {
134
+ _Init();
135
+ }
136
+
137
+ DRMPropertiesData(const DRMPropertiesData& _other)
138
+ : Core::JSON::Container()
139
+ , DRM(_other.DRM)
140
+ , Settings(_other.Settings)
141
+ {
142
+ _Init();
143
+ }
144
+
145
+ DRMPropertiesData(DRMPropertiesData&& _other) noexcept
146
+ : Core::JSON::Container()
147
+ , DRM(std::move(_other.DRM))
148
+ , Settings(std::move(_other.Settings))
149
+ {
150
+ _Init();
151
+ }
152
+
153
+ DRMPropertiesData(const Exchange::IBluetoothAudioSink::DRMProperties& _other)
154
+ : Core::JSON::Container()
155
+ {
156
+ DRM = _other.DRM;
157
+ Settings = _other.Settings;
158
+ _Init();
159
+ }
160
+
161
+ DRMPropertiesData& operator=(const DRMPropertiesData& _rhs)
162
+ {
163
+ DRM = _rhs.DRM;
164
+ Settings = _rhs.Settings;
165
+ return (*this);
166
+ }
167
+
168
+ DRMPropertiesData& operator=(DRMPropertiesData&& _rhs) noexcept
169
+ {
170
+ DRM = std::move(_rhs.DRM);
171
+ Settings = std::move(_rhs.Settings);
172
+ return (*this);
173
+ }
174
+
175
+ DRMPropertiesData& operator=(const Exchange::IBluetoothAudioSink::DRMProperties& _rhs)
176
+ {
177
+ DRM = _rhs.DRM;
178
+ Settings = _rhs.Settings;
179
+ return (*this);
180
+ }
181
+
182
+ operator Exchange::IBluetoothAudioSink::DRMProperties() const
183
+ {
184
+ Exchange::IBluetoothAudioSink::DRMProperties _value{};
185
+ _value.DRM = DRM;
186
+ _value.Settings = Settings;
187
+ return (_value);
188
+ }
189
+
190
+ ~DRMPropertiesData() = default;
191
+
192
+ public:
193
+ bool IsDataValid() const
194
+ {
195
+ return ((DRM.IsSet() == true) && (Settings.IsSet() == true));
196
+ }
197
+
198
+ private:
199
+ void _Init()
200
+ {
201
+ Add(_T("drm"), &DRM);
202
+ Add(_T("settings"), &Settings);
203
+ }
204
+
205
+ public:
206
+ Core::JSON::EnumType<Exchange::IBluetoothAudioSink::drmscheme> DRM; // Content protection scheme used
207
+ Core::JSON::String Settings; // DRM-specific content protection level, encoding rules, etc
208
+ }; // class DRMPropertiesData
209
+
210
+ class LatencyData : public Core::JSON::Container {
211
+ public:
212
+ LatencyData()
213
+ : Core::JSON::Container()
214
+ {
215
+ Add(_T("value"), &Value);
216
+ }
217
+
218
+ LatencyData(const LatencyData&) = delete;
219
+ LatencyData(LatencyData&&) noexcept = delete;
220
+
221
+ LatencyData& operator=(const LatencyData&) = delete;
222
+ LatencyData& operator=(LatencyData&&) noexcept = delete;
223
+
224
+ ~LatencyData() = default;
225
+
226
+ public:
227
+ bool IsDataValid() const
228
+ {
229
+ return (Value.IsSet() == true);
230
+ }
231
+
232
+ public:
233
+ Core::JSON::DecSInt16 Value; // Audio latency of the sink in milliseconds
234
+ }; // class LatencyData
235
+
236
+ class StreamPropertiesData : public Core::JSON::Container {
237
+ public:
238
+ StreamPropertiesData()
239
+ : Core::JSON::Container()
240
+ {
241
+ _Init();
242
+ }
243
+
244
+ StreamPropertiesData(const StreamPropertiesData& _other)
245
+ : Core::JSON::Container()
246
+ , SampleRate(_other.SampleRate)
247
+ , BitRate(_other.BitRate)
248
+ , Channels(_other.Channels)
249
+ , Resolution(_other.Resolution)
250
+ , IsResampling(_other.IsResampling)
251
+ {
252
+ _Init();
253
+ }
254
+
255
+ StreamPropertiesData(StreamPropertiesData&& _other) noexcept
256
+ : Core::JSON::Container()
257
+ , SampleRate(std::move(_other.SampleRate))
258
+ , BitRate(std::move(_other.BitRate))
259
+ , Channels(std::move(_other.Channels))
260
+ , Resolution(std::move(_other.Resolution))
261
+ , IsResampling(std::move(_other.IsResampling))
262
+ {
263
+ _Init();
264
+ }
265
+
266
+ StreamPropertiesData(const Exchange::IBluetoothAudioSink::StreamProperties& _other)
267
+ : Core::JSON::Container()
268
+ {
269
+ SampleRate = _other.SampleRate;
270
+ BitRate = _other.BitRate;
271
+ Channels = _other.Channels;
272
+ Resolution = _other.Resolution;
273
+ IsResampling = _other.IsResampling;
274
+ _Init();
275
+ }
276
+
277
+ StreamPropertiesData& operator=(const StreamPropertiesData& _rhs)
278
+ {
279
+ SampleRate = _rhs.SampleRate;
280
+ BitRate = _rhs.BitRate;
281
+ Channels = _rhs.Channels;
282
+ Resolution = _rhs.Resolution;
283
+ IsResampling = _rhs.IsResampling;
284
+ return (*this);
285
+ }
286
+
287
+ StreamPropertiesData& operator=(StreamPropertiesData&& _rhs) noexcept
288
+ {
289
+ SampleRate = std::move(_rhs.SampleRate);
290
+ BitRate = std::move(_rhs.BitRate);
291
+ Channels = std::move(_rhs.Channels);
292
+ Resolution = std::move(_rhs.Resolution);
293
+ IsResampling = std::move(_rhs.IsResampling);
294
+ return (*this);
295
+ }
296
+
297
+ StreamPropertiesData& operator=(const Exchange::IBluetoothAudioSink::StreamProperties& _rhs)
298
+ {
299
+ SampleRate = _rhs.SampleRate;
300
+ BitRate = _rhs.BitRate;
301
+ Channels = _rhs.Channels;
302
+ Resolution = _rhs.Resolution;
303
+ IsResampling = _rhs.IsResampling;
304
+ return (*this);
305
+ }
306
+
307
+ operator Exchange::IBluetoothAudioSink::StreamProperties() const
308
+ {
309
+ Exchange::IBluetoothAudioSink::StreamProperties _value{};
310
+ _value.SampleRate = SampleRate;
311
+ _value.BitRate = BitRate;
312
+ _value.Channels = Channels;
313
+ _value.Resolution = Resolution;
314
+ _value.IsResampling = IsResampling;
315
+ return (_value);
316
+ }
317
+
318
+ ~StreamPropertiesData() = default;
319
+
320
+ public:
321
+ bool IsDataValid() const
322
+ {
323
+ return ((SampleRate.IsSet() == true) && (BitRate.IsSet() == true) && (Channels.IsSet() == true) && (Resolution.IsSet() == true) && (IsResampling.IsSet() == true));
324
+ }
325
+
326
+ private:
327
+ void _Init()
328
+ {
329
+ Add(_T("samplerate"), &SampleRate);
330
+ Add(_T("bitrate"), &BitRate);
331
+ Add(_T("channels"), &Channels);
332
+ Add(_T("resolution"), &Resolution);
333
+ Add(_T("isresampling"), &IsResampling);
334
+ }
335
+
336
+ public:
337
+ Core::JSON::DecUInt32 SampleRate; // Sample rate in Hz
338
+ Core::JSON::DecUInt32 BitRate; // Target bitrate in bits per second (eg. 320000)
339
+ Core::JSON::DecUInt8 Channels; // Number of audio channels
340
+ Core::JSON::DecUInt8 Resolution; // Sampling resolution in bits per sample
341
+ Core::JSON::Boolean IsResampling; // Indicates if the sink is resampling the input stream
342
+ }; // class StreamPropertiesData
343
+
344
+ } // namespace BluetoothAudioSink
345
+
346
+ POP_WARNING()
347
+
348
+ } // namespace JsonData
349
+
350
+ // Enum conversion handlers
351
+ ENUM_CONVERSION_HANDLER(Exchange::IBluetoothAudioSink::state)
352
+ ENUM_CONVERSION_HANDLER(Exchange::IBluetoothAudioSink::devicetype)
353
+ ENUM_CONVERSION_HANDLER(Exchange::IBluetoothAudioSink::audiocodec)
354
+ ENUM_CONVERSION_HANDLER(Exchange::IBluetoothAudioSink::drmscheme)
355
+
356
+ }
357
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_BluetoothControl.h ADDED
@@ -0,0 +1,555 @@
1
+ // C++ types for Bluetooth Control API.
2
+ // Generated automatically from 'BluetoothControl.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IBluetooth.h>
10
+ #include <core/Enumerate.h>
11
+
12
+ namespace WPEFramework {
13
+
14
+ namespace JsonData {
15
+
16
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
17
+
18
+ namespace BluetoothControl {
19
+
20
+ // Common enums
21
+ //
22
+
23
+ // Discoverable mode
24
+ enum class scanmode : uint8_t {
25
+ GENERAL,
26
+ LIMITED
27
+ };
28
+
29
+ // Discoverable type
30
+ enum class scantype : uint8_t {
31
+ CLASSIC,
32
+ LOW_ENERGY
33
+ };
34
+
35
+ // Common classes
36
+ //
37
+
38
+ class ConnectParamsInfo : public Core::JSON::Container {
39
+ public:
40
+ ConnectParamsInfo()
41
+ : Core::JSON::Container()
42
+ {
43
+ _Init();
44
+ }
45
+
46
+ ConnectParamsInfo(const ConnectParamsInfo& _other)
47
+ : Core::JSON::Container()
48
+ , Address(_other.Address)
49
+ , Type(_other.Type)
50
+ {
51
+ _Init();
52
+ }
53
+
54
+ ConnectParamsInfo(ConnectParamsInfo&& _other) noexcept
55
+ : Core::JSON::Container()
56
+ , Address(std::move(_other.Address))
57
+ , Type(std::move(_other.Type))
58
+ {
59
+ _Init();
60
+ }
61
+
62
+ ConnectParamsInfo& operator=(const ConnectParamsInfo& _rhs)
63
+ {
64
+ Address = _rhs.Address;
65
+ Type = _rhs.Type;
66
+ return (*this);
67
+ }
68
+
69
+ ConnectParamsInfo& operator=(ConnectParamsInfo&& _rhs) noexcept
70
+ {
71
+ Address = std::move(_rhs.Address);
72
+ Type = std::move(_rhs.Type);
73
+ return (*this);
74
+ }
75
+
76
+ ~ConnectParamsInfo() = default;
77
+
78
+ public:
79
+ bool IsDataValid() const
80
+ {
81
+ return (Address.IsSet() == true);
82
+ }
83
+
84
+ private:
85
+ void _Init()
86
+ {
87
+ Add(_T("address"), &Address);
88
+ Add(_T("type"), &Type);
89
+ }
90
+
91
+ public:
92
+ Core::JSON::String Address; // Bluetooth address
93
+ Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type> Type; // Device type
94
+ }; // class ConnectParamsInfo
95
+
96
+ class DeviceData : public Core::JSON::Container {
97
+ public:
98
+ DeviceData()
99
+ : Core::JSON::Container()
100
+ {
101
+ Add(_T("address"), &Address);
102
+ Add(_T("type"), &Type);
103
+ Add(_T("name"), &Name);
104
+ Add(_T("class"), &Class);
105
+ Add(_T("appearance"), &Appearance);
106
+ Add(_T("services"), &Services);
107
+ Add(_T("connected"), &Connected);
108
+ Add(_T("paired"), &Paired);
109
+ }
110
+
111
+ DeviceData(const DeviceData&) = delete;
112
+ DeviceData(DeviceData&&) noexcept = delete;
113
+
114
+ DeviceData& operator=(const DeviceData&) = delete;
115
+ DeviceData& operator=(DeviceData&&) noexcept = delete;
116
+
117
+ ~DeviceData() = default;
118
+
119
+ public:
120
+ bool IsDataValid() const
121
+ {
122
+ return ((Address.IsSet() == true) && (Type.IsSet() == true) && (Connected.IsSet() == true) && (Paired.IsSet() == true));
123
+ }
124
+
125
+ public:
126
+ Core::JSON::String Address; // Bluetooth address
127
+ Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type> Type; // Device type
128
+ Core::JSON::String Name; // Name of the device
129
+ Core::JSON::DecUInt32 Class; // Class of device
130
+ Core::JSON::DecUInt32 Appearance; // Appearance value
131
+ Core::JSON::ArrayType<Core::JSON::String> Services; // List of supported services
132
+ Core::JSON::Boolean Connected; // Indicates if the device is currently connected
133
+ Core::JSON::Boolean Paired; // Indicates if the device is currently paired
134
+ }; // class DeviceData
135
+
136
+ class StopdiscoverableParamsInfo : public Core::JSON::Container {
137
+ public:
138
+ StopdiscoverableParamsInfo()
139
+ : Core::JSON::Container()
140
+ {
141
+ Add(_T("type"), &Type);
142
+ }
143
+
144
+ StopdiscoverableParamsInfo(const StopdiscoverableParamsInfo&) = delete;
145
+ StopdiscoverableParamsInfo(StopdiscoverableParamsInfo&&) noexcept = delete;
146
+
147
+ StopdiscoverableParamsInfo& operator=(const StopdiscoverableParamsInfo&) = delete;
148
+ StopdiscoverableParamsInfo& operator=(StopdiscoverableParamsInfo&&) noexcept = delete;
149
+
150
+ ~StopdiscoverableParamsInfo() = default;
151
+
152
+ public:
153
+ bool IsDataValid() const
154
+ {
155
+ return (Type.IsSet() == true);
156
+ }
157
+
158
+ public:
159
+ Core::JSON::EnumType<scantype> Type; // Discoverable type
160
+ }; // class StopdiscoverableParamsInfo
161
+
162
+ // Method params/result classes
163
+ //
164
+
165
+ class AdapterData : public Core::JSON::Container {
166
+ public:
167
+ // Adapter type
168
+ enum class adaptertype : uint8_t {
169
+ CLASSIC,
170
+ LOW_ENERGY,
171
+ DUAL
172
+ };
173
+
174
+ AdapterData()
175
+ : Core::JSON::Container()
176
+ {
177
+ Add(_T("id"), &Id);
178
+ Add(_T("interface"), &Interface);
179
+ Add(_T("address"), &Address);
180
+ Add(_T("type"), &Type);
181
+ Add(_T("version"), &Version);
182
+ Add(_T("manufacturer"), &Manufacturer);
183
+ Add(_T("class"), &Class);
184
+ Add(_T("name"), &Name);
185
+ Add(_T("shortname"), &Shortname);
186
+ }
187
+
188
+ AdapterData(const AdapterData&) = delete;
189
+ AdapterData(AdapterData&&) noexcept = delete;
190
+
191
+ AdapterData& operator=(const AdapterData&) = delete;
192
+ AdapterData& operator=(AdapterData&&) noexcept = delete;
193
+
194
+ ~AdapterData() = default;
195
+
196
+ public:
197
+ bool IsDataValid() const
198
+ {
199
+ return ((Id.IsSet() == true) && (Interface.IsSet() == true) && (Address.IsSet() == true) && (Type.IsSet() == true) && (Version.IsSet() == true));
200
+ }
201
+
202
+ public:
203
+ Core::JSON::DecUInt16 Id; // Interface ID number
204
+ Core::JSON::String Interface; // Interface name
205
+ Core::JSON::String Address; // Bluetooth address
206
+ Core::JSON::EnumType<AdapterData::adaptertype> Type; // Adapter type
207
+ Core::JSON::DecUInt8 Version; // Version
208
+ Core::JSON::DecUInt16 Manufacturer; // Manufacturer company identifer
209
+ Core::JSON::DecUInt32 Class; // Class of device
210
+ Core::JSON::String Name; // Name
211
+ Core::JSON::String Shortname; // Short name
212
+ }; // class AdapterData
213
+
214
+ class ConfirmpasskeyParamsData : public Core::JSON::Container {
215
+ public:
216
+ ConfirmpasskeyParamsData()
217
+ : Core::JSON::Container()
218
+ {
219
+ Add(_T("address"), &Address);
220
+ Add(_T("type"), &Type);
221
+ Add(_T("iscorrect"), &Iscorrect);
222
+ }
223
+
224
+ ConfirmpasskeyParamsData(const ConfirmpasskeyParamsData&) = delete;
225
+ ConfirmpasskeyParamsData(ConfirmpasskeyParamsData&&) noexcept = delete;
226
+
227
+ ConfirmpasskeyParamsData& operator=(const ConfirmpasskeyParamsData&) = delete;
228
+ ConfirmpasskeyParamsData& operator=(ConfirmpasskeyParamsData&&) noexcept = delete;
229
+
230
+ ~ConfirmpasskeyParamsData() = default;
231
+
232
+ public:
233
+ bool IsDataValid() const
234
+ {
235
+ return ((Address.IsSet() == true) && (Type.IsSet() == true) && (Iscorrect.IsSet() == true));
236
+ }
237
+
238
+ public:
239
+ Core::JSON::String Address; // Bluetooth address
240
+ Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type> Type; // Device type
241
+ Core::JSON::Boolean Iscorrect; // Specifies if the passkey sent in *passkeyconfirmrequest* event is correct (true) or incorrect (false)
242
+ }; // class ConfirmpasskeyParamsData
243
+
244
+ class DevicestatechangeParamsData : public Core::JSON::Container {
245
+ public:
246
+ // Device state
247
+ enum class devicestate : uint8_t {
248
+ PAIRING,
249
+ PAIRED,
250
+ UNPAIRED,
251
+ CONNECTED,
252
+ DISCONNECTED
253
+ };
254
+
255
+ // Disconnection reason in case of *Disconnected* event
256
+ enum class disconnectreason : uint8_t {
257
+ CONNECTION_TIMEOUT,
258
+ AUTHENTICATION_FAILURE,
259
+ REMOTE_LOW_ON_RESOURCES,
260
+ REMOTE_POWERED_OFF,
261
+ TERMINATED_BY_REMOTE,
262
+ TERMINATED_BY_HOST
263
+ };
264
+
265
+ DevicestatechangeParamsData()
266
+ : Core::JSON::Container()
267
+ {
268
+ Add(_T("address"), &Address);
269
+ Add(_T("type"), &Type);
270
+ Add(_T("state"), &State);
271
+ Add(_T("disconnectreason"), &Disconnectreason);
272
+ }
273
+
274
+ DevicestatechangeParamsData(const DevicestatechangeParamsData&) = delete;
275
+ DevicestatechangeParamsData(DevicestatechangeParamsData&&) noexcept = delete;
276
+
277
+ DevicestatechangeParamsData& operator=(const DevicestatechangeParamsData&) = delete;
278
+ DevicestatechangeParamsData& operator=(DevicestatechangeParamsData&&) noexcept = delete;
279
+
280
+ ~DevicestatechangeParamsData() = default;
281
+
282
+ public:
283
+ bool IsDataValid() const
284
+ {
285
+ return ((Address.IsSet() == true) && (Type.IsSet() == true) && (State.IsSet() == true));
286
+ }
287
+
288
+ public:
289
+ Core::JSON::String Address; // Bluetooth address
290
+ Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type> Type; // Device type
291
+ Core::JSON::EnumType<DevicestatechangeParamsData::devicestate> State; // Device state
292
+ Core::JSON::EnumType<DevicestatechangeParamsData::disconnectreason> Disconnectreason; // Disconnection reason in case of *Disconnected* event
293
+ }; // class DevicestatechangeParamsData
294
+
295
+ class DiscoverablestartedParamsData : public Core::JSON::Container {
296
+ public:
297
+ DiscoverablestartedParamsData()
298
+ : Core::JSON::Container()
299
+ {
300
+ Add(_T("type"), &Type);
301
+ Add(_T("mode"), &Mode);
302
+ Add(_T("connectable"), &Connectable);
303
+ }
304
+
305
+ DiscoverablestartedParamsData(const DiscoverablestartedParamsData&) = delete;
306
+ DiscoverablestartedParamsData(DiscoverablestartedParamsData&&) noexcept = delete;
307
+
308
+ DiscoverablestartedParamsData& operator=(const DiscoverablestartedParamsData&) = delete;
309
+ DiscoverablestartedParamsData& operator=(DiscoverablestartedParamsData&&) noexcept = delete;
310
+
311
+ ~DiscoverablestartedParamsData() = default;
312
+
313
+ public:
314
+ bool IsDataValid() const
315
+ {
316
+ return ((Type.IsSet() == true) && (Mode.IsSet() == true));
317
+ }
318
+
319
+ public:
320
+ Core::JSON::EnumType<scantype> Type; // Discoverable type
321
+ Core::JSON::EnumType<scanmode> Mode; // Discoverable mode
322
+ Core::JSON::Boolean Connectable; // Indicates connectable advertising (true, *LowEnergy* only)
323
+ }; // class DiscoverablestartedParamsData
324
+
325
+ class PairParamsData : public Core::JSON::Container {
326
+ public:
327
+ PairParamsData()
328
+ : Core::JSON::Container()
329
+ {
330
+ Add(_T("address"), &Address);
331
+ Add(_T("type"), &Type);
332
+ Add(_T("capabilities"), &Capabilities);
333
+ Add(_T("timeout"), &Timeout);
334
+ }
335
+
336
+ PairParamsData(const PairParamsData&) = delete;
337
+ PairParamsData(PairParamsData&&) noexcept = delete;
338
+
339
+ PairParamsData& operator=(const PairParamsData&) = delete;
340
+ PairParamsData& operator=(PairParamsData&&) noexcept = delete;
341
+
342
+ ~PairParamsData() = default;
343
+
344
+ public:
345
+ bool IsDataValid() const
346
+ {
347
+ return (Address.IsSet() == true);
348
+ }
349
+
350
+ public:
351
+ Core::JSON::String Address; // Bluetooth address
352
+ Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type> Type; // Device type
353
+ Core::JSON::EnumType<Exchange::IBluetooth::IDevice::pairingcapabilities> Capabilities; // Pairing capabilities
354
+ Core::JSON::DecUInt16 Timeout; // Maximum time allowed for the pairing process to complete (in seconds)
355
+ }; // class PairParamsData
356
+
357
+ class PasskeyconfirmrequestParamsData : public Core::JSON::Container {
358
+ public:
359
+ PasskeyconfirmrequestParamsData()
360
+ : Core::JSON::Container()
361
+ {
362
+ Add(_T("address"), &Address);
363
+ Add(_T("type"), &Type);
364
+ Add(_T("secret"), &Secret);
365
+ }
366
+
367
+ PasskeyconfirmrequestParamsData(const PasskeyconfirmrequestParamsData&) = delete;
368
+ PasskeyconfirmrequestParamsData(PasskeyconfirmrequestParamsData&&) noexcept = delete;
369
+
370
+ PasskeyconfirmrequestParamsData& operator=(const PasskeyconfirmrequestParamsData&) = delete;
371
+ PasskeyconfirmrequestParamsData& operator=(PasskeyconfirmrequestParamsData&&) noexcept = delete;
372
+
373
+ ~PasskeyconfirmrequestParamsData() = default;
374
+
375
+ public:
376
+ bool IsDataValid() const
377
+ {
378
+ return ((Address.IsSet() == true) && (Type.IsSet() == true) && (Secret.IsSet() == true));
379
+ }
380
+
381
+ public:
382
+ Core::JSON::String Address; // Bluetooth address
383
+ Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type> Type; // Device type
384
+ Core::JSON::DecUInt32 Secret; // A six-digit decimal number passkey sent by the remote device for confirmation; may be 0 for a simple accept/forbid paring request
385
+ }; // class PasskeyconfirmrequestParamsData
386
+
387
+ class ProvidepincodeParamsData : public Core::JSON::Container {
388
+ public:
389
+ ProvidepincodeParamsData()
390
+ : Core::JSON::Container()
391
+ {
392
+ Add(_T("address"), &Address);
393
+ Add(_T("type"), &Type);
394
+ Add(_T("secret"), &Secret);
395
+ }
396
+
397
+ ProvidepincodeParamsData(const ProvidepincodeParamsData&) = delete;
398
+ ProvidepincodeParamsData(ProvidepincodeParamsData&&) noexcept = delete;
399
+
400
+ ProvidepincodeParamsData& operator=(const ProvidepincodeParamsData&) = delete;
401
+ ProvidepincodeParamsData& operator=(ProvidepincodeParamsData&&) noexcept = delete;
402
+
403
+ ~ProvidepincodeParamsData() = default;
404
+
405
+ public:
406
+ bool IsDataValid() const
407
+ {
408
+ return ((Address.IsSet() == true) && (Type.IsSet() == true) && (Secret.IsSet() == true));
409
+ }
410
+
411
+ public:
412
+ Core::JSON::String Address; // Bluetooth address
413
+ Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type> Type; // Device type
414
+ Core::JSON::String Secret; // A PIN-code string typically consisting of (but not limited to) four decimal digits
415
+ }; // class ProvidepincodeParamsData
416
+
417
+ class ProvidepasskeyParamsData : public Core::JSON::Container {
418
+ public:
419
+ ProvidepasskeyParamsData()
420
+ : Core::JSON::Container()
421
+ {
422
+ Add(_T("address"), &Address);
423
+ Add(_T("type"), &Type);
424
+ Add(_T("secret"), &Secret);
425
+ }
426
+
427
+ ProvidepasskeyParamsData(const ProvidepasskeyParamsData&) = delete;
428
+ ProvidepasskeyParamsData(ProvidepasskeyParamsData&&) noexcept = delete;
429
+
430
+ ProvidepasskeyParamsData& operator=(const ProvidepasskeyParamsData&) = delete;
431
+ ProvidepasskeyParamsData& operator=(ProvidepasskeyParamsData&&) noexcept = delete;
432
+
433
+ ~ProvidepasskeyParamsData() = default;
434
+
435
+ public:
436
+ bool IsDataValid() const
437
+ {
438
+ return ((Address.IsSet() == true) && (Type.IsSet() == true) && (Secret.IsSet() == true));
439
+ }
440
+
441
+ public:
442
+ Core::JSON::String Address; // Bluetooth address
443
+ Core::JSON::EnumType<Exchange::IBluetooth::IDevice::type> Type; // Device type
444
+ Core::JSON::DecUInt32 Secret; // A six-digit decimal number passkey
445
+ }; // class ProvidepasskeyParamsData
446
+
447
+ class ScanParamsData : public Core::JSON::Container {
448
+ public:
449
+ ScanParamsData()
450
+ : Core::JSON::Container()
451
+ {
452
+ Add(_T("type"), &Type);
453
+ Add(_T("mode"), &Mode);
454
+ Add(_T("timeout"), &Timeout);
455
+ Add(_T("duration"), &Duration);
456
+ }
457
+
458
+ ScanParamsData(const ScanParamsData&) = delete;
459
+ ScanParamsData(ScanParamsData&&) noexcept = delete;
460
+
461
+ ScanParamsData& operator=(const ScanParamsData&) = delete;
462
+ ScanParamsData& operator=(ScanParamsData&&) noexcept = delete;
463
+
464
+ ~ScanParamsData() = default;
465
+
466
+ public:
467
+ bool IsDataValid() const
468
+ {
469
+ return (Type.IsSet() == true);
470
+ }
471
+
472
+ public:
473
+ Core::JSON::EnumType<scantype> Type; // Scan type
474
+ Core::JSON::EnumType<scanmode> Mode; // Scan mode
475
+ Core::JSON::DecUInt16 Timeout; // Duration of the scan (in seconds)
476
+ Core::JSON::DecUInt16 Duration; // Duration of the scan (in seconds)
477
+ }; // class ScanParamsData
478
+
479
+ class ScanstartedParamsData : public Core::JSON::Container {
480
+ public:
481
+ ScanstartedParamsData()
482
+ : Core::JSON::Container()
483
+ {
484
+ Add(_T("type"), &Type);
485
+ Add(_T("mode"), &Mode);
486
+ }
487
+
488
+ ScanstartedParamsData(const ScanstartedParamsData&) = delete;
489
+ ScanstartedParamsData(ScanstartedParamsData&&) noexcept = delete;
490
+
491
+ ScanstartedParamsData& operator=(const ScanstartedParamsData&) = delete;
492
+ ScanstartedParamsData& operator=(ScanstartedParamsData&&) noexcept = delete;
493
+
494
+ ~ScanstartedParamsData() = default;
495
+
496
+ public:
497
+ bool IsDataValid() const
498
+ {
499
+ return (Type.IsSet() == true);
500
+ }
501
+
502
+ public:
503
+ Core::JSON::EnumType<scantype> Type; // Scan type
504
+ Core::JSON::EnumType<scanmode> Mode; // Scan mode
505
+ }; // class ScanstartedParamsData
506
+
507
+ class SetdiscoverableParamsData : public Core::JSON::Container {
508
+ public:
509
+ SetdiscoverableParamsData()
510
+ : Core::JSON::Container()
511
+ {
512
+ Add(_T("type"), &Type);
513
+ Add(_T("mode"), &Mode);
514
+ Add(_T("connectable"), &Connectable);
515
+ Add(_T("duration"), &Duration);
516
+ }
517
+
518
+ SetdiscoverableParamsData(const SetdiscoverableParamsData&) = delete;
519
+ SetdiscoverableParamsData(SetdiscoverableParamsData&&) noexcept = delete;
520
+
521
+ SetdiscoverableParamsData& operator=(const SetdiscoverableParamsData&) = delete;
522
+ SetdiscoverableParamsData& operator=(SetdiscoverableParamsData&&) noexcept = delete;
523
+
524
+ ~SetdiscoverableParamsData() = default;
525
+
526
+ public:
527
+ bool IsDataValid() const
528
+ {
529
+ return (Type.IsSet() == true);
530
+ }
531
+
532
+ public:
533
+ Core::JSON::EnumType<scantype> Type; // Discoverable type
534
+ Core::JSON::EnumType<scanmode> Mode; // Discoverable mode
535
+ Core::JSON::Boolean Connectable; // Selects connectable advertising (true, *LowEnergy* only)
536
+ Core::JSON::DecUInt16 Duration; // Duration of the discoverable operation (in seconds)
537
+ }; // class SetdiscoverableParamsData
538
+
539
+ } // namespace BluetoothControl
540
+
541
+ POP_WARNING()
542
+
543
+ } // namespace JsonData
544
+
545
+ // Enum conversion handlers
546
+ ENUM_CONVERSION_HANDLER(JsonData::BluetoothControl::scantype)
547
+ ENUM_CONVERSION_HANDLER(JsonData::BluetoothControl::scanmode)
548
+ ENUM_CONVERSION_HANDLER(Exchange::IBluetooth::IDevice::type)
549
+ ENUM_CONVERSION_HANDLER(Exchange::IBluetooth::IDevice::pairingcapabilities)
550
+ ENUM_CONVERSION_HANDLER(JsonData::BluetoothControl::AdapterData::adaptertype)
551
+ ENUM_CONVERSION_HANDLER(JsonData::BluetoothControl::DevicestatechangeParamsData::devicestate)
552
+ ENUM_CONVERSION_HANDLER(JsonData::BluetoothControl::DevicestatechangeParamsData::disconnectreason)
553
+
554
+ }
555
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_BluetoothRemoteControl.h ADDED
@@ -0,0 +1,210 @@
1
+ // C++ types for Bluetooth Remote Control API.
2
+ // Generated automatically from 'BluetoothRemoteControl.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace BluetoothRemoteControl {
18
+
19
+ // Method params/result classes
20
+ //
21
+
22
+ class AssignParamsData : public Core::JSON::Container {
23
+ public:
24
+ AssignParamsData()
25
+ : Core::JSON::Container()
26
+ {
27
+ Add(_T("address"), &Address);
28
+ }
29
+
30
+ AssignParamsData(const AssignParamsData&) = delete;
31
+ AssignParamsData(AssignParamsData&&) noexcept = delete;
32
+
33
+ AssignParamsData& operator=(const AssignParamsData&) = delete;
34
+ AssignParamsData& operator=(AssignParamsData&&) noexcept = delete;
35
+
36
+ ~AssignParamsData() = default;
37
+
38
+ public:
39
+ bool IsDataValid() const
40
+ {
41
+ return (Address.IsSet() == true);
42
+ }
43
+
44
+ public:
45
+ Core::JSON::String Address; // Bluetooth address
46
+ }; // class AssignParamsData
47
+
48
+ class AudioframeParamsData : public Core::JSON::Container {
49
+ public:
50
+ AudioframeParamsData()
51
+ : Core::JSON::Container()
52
+ {
53
+ Add(_T("seq"), &Seq);
54
+ Add(_T("data"), &Data);
55
+ }
56
+
57
+ AudioframeParamsData(const AudioframeParamsData&) = delete;
58
+ AudioframeParamsData(AudioframeParamsData&&) noexcept = delete;
59
+
60
+ AudioframeParamsData& operator=(const AudioframeParamsData&) = delete;
61
+ AudioframeParamsData& operator=(AudioframeParamsData&&) noexcept = delete;
62
+
63
+ ~AudioframeParamsData() = default;
64
+
65
+ public:
66
+ bool IsDataValid() const
67
+ {
68
+ return (Data.IsSet() == true);
69
+ }
70
+
71
+ public:
72
+ Core::JSON::DecUInt32 Seq; // Sequence number of the audio frame within current audio transmission
73
+ Core::JSON::String Data; // Base64 representation of the binary data of the audio frame; format of the data is specified by the audio profile denoted by the most recent *audiotransmission* notification
74
+ }; // class AudioframeParamsData
75
+
76
+ class AudioprofileData : public Core::JSON::Container {
77
+ public:
78
+ // Name of the audio codec (*pcm* for uncompressed audio)
79
+ enum class CodecType : uint8_t {
80
+ PCM,
81
+ ADPCM
82
+ };
83
+
84
+ AudioprofileData()
85
+ : Core::JSON::Container()
86
+ {
87
+ Add(_T("codec"), &Codec);
88
+ Add(_T("channels"), &Channels);
89
+ Add(_T("rate"), &Rate);
90
+ Add(_T("resolution"), &Resolution);
91
+ }
92
+
93
+ AudioprofileData(const AudioprofileData&) = delete;
94
+ AudioprofileData(AudioprofileData&&) noexcept = delete;
95
+
96
+ AudioprofileData& operator=(const AudioprofileData&) = delete;
97
+ AudioprofileData& operator=(AudioprofileData&&) noexcept = delete;
98
+
99
+ ~AudioprofileData() = default;
100
+
101
+ public:
102
+ bool IsDataValid() const
103
+ {
104
+ return ((Codec.IsSet() == true) && (Channels.IsSet() == true) && (Rate.IsSet() == true) && (Resolution.IsSet() == true));
105
+ }
106
+
107
+ public:
108
+ Core::JSON::EnumType<AudioprofileData::CodecType> Codec; // Name of the audio codec (*pcm* for uncompressed audio)
109
+ Core::JSON::DecUInt8 Channels; // Number of audio channels (1: mono, 2: stereo, etc.)
110
+ Core::JSON::DecUInt16 Rate; // Sample rate (in Hz)
111
+ Core::JSON::DecUInt8 Resolution; // Sample resolution (in bits per sample)
112
+ }; // class AudioprofileData
113
+
114
+ class AudiotransmissionParamsData : public Core::JSON::Container {
115
+ public:
116
+ AudiotransmissionParamsData()
117
+ : Core::JSON::Container()
118
+ {
119
+ Add(_T("profile"), &Profile);
120
+ }
121
+
122
+ AudiotransmissionParamsData(const AudiotransmissionParamsData&) = delete;
123
+ AudiotransmissionParamsData(AudiotransmissionParamsData&&) noexcept = delete;
124
+
125
+ AudiotransmissionParamsData& operator=(const AudiotransmissionParamsData&) = delete;
126
+ AudiotransmissionParamsData& operator=(AudiotransmissionParamsData&&) noexcept = delete;
127
+
128
+ ~AudiotransmissionParamsData() = default;
129
+
130
+ public:
131
+ bool IsDataValid() const
132
+ {
133
+ return (true);
134
+ }
135
+
136
+ public:
137
+ Core::JSON::String Profile; // Type of audio profile, marking start of transmission; empty in case of end of transmission
138
+ }; // class AudiotransmissionParamsData
139
+
140
+ class BatterylevelchangeParamsData : public Core::JSON::Container {
141
+ public:
142
+ BatterylevelchangeParamsData()
143
+ : Core::JSON::Container()
144
+ {
145
+ Add(_T("level"), &Level);
146
+ }
147
+
148
+ BatterylevelchangeParamsData(const BatterylevelchangeParamsData&) = delete;
149
+ BatterylevelchangeParamsData(BatterylevelchangeParamsData&&) noexcept = delete;
150
+
151
+ BatterylevelchangeParamsData& operator=(const BatterylevelchangeParamsData&) = delete;
152
+ BatterylevelchangeParamsData& operator=(BatterylevelchangeParamsData&&) noexcept = delete;
153
+
154
+ ~BatterylevelchangeParamsData() = default;
155
+
156
+ public:
157
+ bool IsDataValid() const
158
+ {
159
+ return (Level.IsSet() == true);
160
+ }
161
+
162
+ public:
163
+ Core::JSON::DecUInt8 Level; // Battery level (in percentage)
164
+ }; // class BatterylevelchangeParamsData
165
+
166
+ class InfoData : public Core::JSON::Container {
167
+ public:
168
+ InfoData()
169
+ : Core::JSON::Container()
170
+ {
171
+ Add(_T("model"), &Model);
172
+ Add(_T("serial"), &Serial);
173
+ Add(_T("firmware"), &Firmware);
174
+ Add(_T("software"), &Software);
175
+ Add(_T("manufacturer"), &Manufacturer);
176
+ }
177
+
178
+ InfoData(const InfoData&) = delete;
179
+ InfoData(InfoData&&) noexcept = delete;
180
+
181
+ InfoData& operator=(const InfoData&) = delete;
182
+ InfoData& operator=(InfoData&&) noexcept = delete;
183
+
184
+ ~InfoData() = default;
185
+
186
+ public:
187
+ bool IsDataValid() const
188
+ {
189
+ return (true);
190
+ }
191
+
192
+ public:
193
+ Core::JSON::String Model; // Unit model name or number
194
+ Core::JSON::String Serial; // Unit serial number
195
+ Core::JSON::String Firmware; // Unit firmware revision
196
+ Core::JSON::String Software; // Unit software revision
197
+ Core::JSON::String Manufacturer; // Unit manufacturer name
198
+ }; // class InfoData
199
+
200
+ } // namespace BluetoothRemoteControl
201
+
202
+ POP_WARNING()
203
+
204
+ } // namespace JsonData
205
+
206
+ // Enum conversion handlers
207
+ ENUM_CONVERSION_HANDLER(JsonData::BluetoothRemoteControl::AudioprofileData::CodecType)
208
+
209
+ }
210
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Browser.h ADDED
@@ -0,0 +1,121 @@
1
+ // C++ types for Browser API.
2
+ // Generated automatically from 'Browser.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace Browser {
18
+
19
+ // Common enums
20
+ //
21
+
22
+ // Current browser visibility
23
+ enum class VisibilityType : uint8_t {
24
+ VISIBLE,
25
+ HIDDEN
26
+ };
27
+
28
+ // Method params/result classes
29
+ //
30
+
31
+ class DeleteParamsData : public Core::JSON::Container {
32
+ public:
33
+ DeleteParamsData()
34
+ : Core::JSON::Container()
35
+ {
36
+ Add(_T("path"), &Path);
37
+ }
38
+
39
+ DeleteParamsData(const DeleteParamsData&) = delete;
40
+ DeleteParamsData(DeleteParamsData&&) noexcept = delete;
41
+
42
+ DeleteParamsData& operator=(const DeleteParamsData&) = delete;
43
+ DeleteParamsData& operator=(DeleteParamsData&&) noexcept = delete;
44
+
45
+ ~DeleteParamsData() = default;
46
+
47
+ public:
48
+ bool IsDataValid() const
49
+ {
50
+ return (Path.IsSet() == true);
51
+ }
52
+
53
+ public:
54
+ Core::JSON::String Path; // Path to directory (within the persistent storage) to delete contents of
55
+ }; // class DeleteParamsData
56
+
57
+ class UrlchangeParamsData : public Core::JSON::Container {
58
+ public:
59
+ UrlchangeParamsData()
60
+ : Core::JSON::Container()
61
+ {
62
+ Add(_T("url"), &Url);
63
+ Add(_T("loaded"), &Loaded);
64
+ }
65
+
66
+ UrlchangeParamsData(const UrlchangeParamsData&) = delete;
67
+ UrlchangeParamsData(UrlchangeParamsData&&) noexcept = delete;
68
+
69
+ UrlchangeParamsData& operator=(const UrlchangeParamsData&) = delete;
70
+ UrlchangeParamsData& operator=(UrlchangeParamsData&&) noexcept = delete;
71
+
72
+ ~UrlchangeParamsData() = default;
73
+
74
+ public:
75
+ bool IsDataValid() const
76
+ {
77
+ return ((Url.IsSet() == true) && (Loaded.IsSet() == true));
78
+ }
79
+
80
+ public:
81
+ Core::JSON::String Url; // The URL that has been loaded or requested
82
+ Core::JSON::Boolean Loaded; // Determines if the URL has just been loaded (true) or if URL change has been requested (false)
83
+ }; // class UrlchangeParamsData
84
+
85
+ class VisibilitychangeParamsData : public Core::JSON::Container {
86
+ public:
87
+ VisibilitychangeParamsData()
88
+ : Core::JSON::Container()
89
+ {
90
+ Add(_T("hidden"), &Hidden);
91
+ }
92
+
93
+ VisibilitychangeParamsData(const VisibilitychangeParamsData&) = delete;
94
+ VisibilitychangeParamsData(VisibilitychangeParamsData&&) noexcept = delete;
95
+
96
+ VisibilitychangeParamsData& operator=(const VisibilitychangeParamsData&) = delete;
97
+ VisibilitychangeParamsData& operator=(VisibilitychangeParamsData&&) noexcept = delete;
98
+
99
+ ~VisibilitychangeParamsData() = default;
100
+
101
+ public:
102
+ bool IsDataValid() const
103
+ {
104
+ return (Hidden.IsSet() == true);
105
+ }
106
+
107
+ public:
108
+ Core::JSON::Boolean Hidden; // Determines if the browser has been hidden (true) or made visible (false)
109
+ }; // class VisibilitychangeParamsData
110
+
111
+ } // namespace Browser
112
+
113
+ POP_WARNING()
114
+
115
+ } // namespace JsonData
116
+
117
+ // Enum conversion handlers
118
+ ENUM_CONVERSION_HANDLER(JsonData::Browser::VisibilityType)
119
+
120
+ }
121
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_BrowserCookieJar.h ADDED
@@ -0,0 +1,124 @@
1
+ // C++ types for BrowserCookieJar API.
2
+ // Generated automatically from 'IBrowser.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IBrowser.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace BrowserCookieJar {
18
+
19
+ // Method params/result classes
20
+ //
21
+
22
+ class ConfigData : public Core::JSON::Container {
23
+ public:
24
+ ConfigData()
25
+ : Core::JSON::Container()
26
+ {
27
+ _Init();
28
+ }
29
+
30
+ ConfigData(const ConfigData& _other)
31
+ : Core::JSON::Container()
32
+ , Version(_other.Version)
33
+ , Checksum(_other.Checksum)
34
+ , Payload(_other.Payload)
35
+ {
36
+ _Init();
37
+ }
38
+
39
+ ConfigData(ConfigData&& _other) noexcept
40
+ : Core::JSON::Container()
41
+ , Version(std::move(_other.Version))
42
+ , Checksum(std::move(_other.Checksum))
43
+ , Payload(std::move(_other.Payload))
44
+ {
45
+ _Init();
46
+ }
47
+
48
+ ConfigData(const Exchange::IBrowserCookieJar::Config& _other)
49
+ : Core::JSON::Container()
50
+ {
51
+ Version = _other.version;
52
+ Checksum = _other.checksum;
53
+ Payload = _other.payload;
54
+ _Init();
55
+ }
56
+
57
+ ConfigData& operator=(const ConfigData& _rhs)
58
+ {
59
+ Version = _rhs.Version;
60
+ Checksum = _rhs.Checksum;
61
+ Payload = _rhs.Payload;
62
+ return (*this);
63
+ }
64
+
65
+ ConfigData& operator=(ConfigData&& _rhs) noexcept
66
+ {
67
+ Version = std::move(_rhs.Version);
68
+ Checksum = std::move(_rhs.Checksum);
69
+ Payload = std::move(_rhs.Payload);
70
+ return (*this);
71
+ }
72
+
73
+ ConfigData& operator=(const Exchange::IBrowserCookieJar::Config& _rhs)
74
+ {
75
+ Version = _rhs.version;
76
+ Checksum = _rhs.checksum;
77
+ Payload = _rhs.payload;
78
+ return (*this);
79
+ }
80
+
81
+ operator Exchange::IBrowserCookieJar::Config() const
82
+ {
83
+ Exchange::IBrowserCookieJar::Config _value{};
84
+ _value.version = Version;
85
+ _value.checksum = Checksum;
86
+ _value.payload = Payload;
87
+ return (_value);
88
+ }
89
+
90
+ ~ConfigData() = default;
91
+
92
+ public:
93
+ bool IsDataValid() const
94
+ {
95
+ return ((Version.IsSet() == true) && (Checksum.IsSet() == true) && (Payload.IsSet() == true));
96
+ }
97
+
98
+ private:
99
+ void _Init()
100
+ {
101
+ Add(_T("version"), &Version);
102
+ Add(_T("checksum"), &Checksum);
103
+ Add(_T("payload"), &Payload);
104
+ }
105
+
106
+ public:
107
+ Core::JSON::DecUInt32 Version;
108
+ Core::JSON::DecUInt32 Checksum;
109
+ Core::JSON::String Payload;
110
+ }; // class ConfigData
111
+
112
+ } // namespace BrowserCookieJar
113
+
114
+ POP_WARNING()
115
+
116
+ } // namespace JsonData
117
+
118
+ // Enum conversion handlers
119
+ ENUM_CONVERSION_HANDLER(Exchange::IWebBrowser::VisibilityType)
120
+ ENUM_CONVERSION_HANDLER(Exchange::IWebBrowser::HTTPCookieAcceptPolicyType)
121
+ ENUM_CONVERSION_HANDLER(Exchange::IBrowserSecurity::MixedContentPolicyType)
122
+
123
+ }
124
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_BrowserResources.h ADDED
@@ -0,0 +1,33 @@
1
+ // C++ types for BrowserResources API.
2
+ // Generated automatically from 'IBrowser.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IBrowser.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace BrowserResources {
18
+
19
+ // Method params/result classes
20
+ //
21
+
22
+ } // namespace BrowserResources
23
+
24
+ POP_WARNING()
25
+
26
+ } // namespace JsonData
27
+
28
+ // Enum conversion handlers
29
+ ENUM_CONVERSION_HANDLER(Exchange::IWebBrowser::VisibilityType)
30
+ ENUM_CONVERSION_HANDLER(Exchange::IWebBrowser::HTTPCookieAcceptPolicyType)
31
+
32
+ }
33
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_BrowserScripting.h ADDED
@@ -0,0 +1,88 @@
1
+ // C++ types for BrowserScripting API.
2
+ // Generated automatically from 'IBrowser.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IBrowser.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace BrowserScripting {
18
+
19
+ // Method params/result classes
20
+ //
21
+
22
+ class AddUserScriptParamsData : public Core::JSON::Container {
23
+ public:
24
+ AddUserScriptParamsData()
25
+ : Core::JSON::Container()
26
+ {
27
+ Add(_T("script"), &Script);
28
+ Add(_T("topframeonly"), &TopFrameOnly);
29
+ }
30
+
31
+ AddUserScriptParamsData(const AddUserScriptParamsData&) = delete;
32
+ AddUserScriptParamsData(AddUserScriptParamsData&&) noexcept = delete;
33
+
34
+ AddUserScriptParamsData& operator=(const AddUserScriptParamsData&) = delete;
35
+ AddUserScriptParamsData& operator=(AddUserScriptParamsData&&) noexcept = delete;
36
+
37
+ ~AddUserScriptParamsData() = default;
38
+
39
+ public:
40
+ bool IsDataValid() const
41
+ {
42
+ return ((Script.IsSet() == true) && (TopFrameOnly.IsSet() == true));
43
+ }
44
+
45
+ public:
46
+ Core::JSON::String Script; // Utf8 encoded JS code string.
47
+ Core::JSON::Boolean TopFrameOnly;
48
+ }; // class AddUserScriptParamsData
49
+
50
+ class RunJavaScriptParamsData : public Core::JSON::Container {
51
+ public:
52
+ RunJavaScriptParamsData()
53
+ : Core::JSON::Container()
54
+ {
55
+ Add(_T("script"), &Script);
56
+ }
57
+
58
+ RunJavaScriptParamsData(const RunJavaScriptParamsData&) = delete;
59
+ RunJavaScriptParamsData(RunJavaScriptParamsData&&) noexcept = delete;
60
+
61
+ RunJavaScriptParamsData& operator=(const RunJavaScriptParamsData&) = delete;
62
+ RunJavaScriptParamsData& operator=(RunJavaScriptParamsData&&) noexcept = delete;
63
+
64
+ ~RunJavaScriptParamsData() = default;
65
+
66
+ public:
67
+ bool IsDataValid() const
68
+ {
69
+ return (Script.IsSet() == true);
70
+ }
71
+
72
+ public:
73
+ Core::JSON::String Script; // Utf8 encoded JS code string.
74
+ }; // class RunJavaScriptParamsData
75
+
76
+ } // namespace BrowserScripting
77
+
78
+ POP_WARNING()
79
+
80
+ } // namespace JsonData
81
+
82
+ // Enum conversion handlers
83
+ ENUM_CONVERSION_HANDLER(Exchange::IWebBrowser::VisibilityType)
84
+ ENUM_CONVERSION_HANDLER(Exchange::IWebBrowser::HTTPCookieAcceptPolicyType)
85
+ ENUM_CONVERSION_HANDLER(Exchange::IBrowserSecurity::MixedContentPolicyType)
86
+
87
+ }
88
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_BrowserSecurity.h ADDED
@@ -0,0 +1,34 @@
1
+ // C++ types for BrowserSecurity API.
2
+ // Generated automatically from 'IBrowser.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IBrowser.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace BrowserSecurity {
18
+
19
+ // Method params/result classes
20
+ //
21
+
22
+ } // namespace BrowserSecurity
23
+
24
+ POP_WARNING()
25
+
26
+ } // namespace JsonData
27
+
28
+ // Enum conversion handlers
29
+ ENUM_CONVERSION_HANDLER(Exchange::IWebBrowser::VisibilityType)
30
+ ENUM_CONVERSION_HANDLER(Exchange::IWebBrowser::HTTPCookieAcceptPolicyType)
31
+ ENUM_CONVERSION_HANDLER(Exchange::IBrowserSecurity::MixedContentPolicyType)
32
+
33
+ }
34
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Butler.h ADDED
@@ -0,0 +1,395 @@
1
+ // C++ types for Butler API.
2
+ // Generated automatically from 'Butler.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace Butler {
18
+
19
+ // Common enums
20
+ //
21
+
22
+ // Basic description of the device (measure or control)
23
+ enum class BasicenumType : uint8_t {
24
+ CONTROL = 0,
25
+ MEASURE = 1,
26
+ GROUP = 14,
27
+ IDENTIFICATION = 15
28
+ };
29
+
30
+ // What is the dimension of the value that is returned by the device
31
+ enum class DimensionenumType : uint8_t {
32
+ LOGIC,
33
+ PERCENTAGE,
34
+ KWH,
35
+ KVAH,
36
+ PULSES,
37
+ DEGREES,
38
+ UNITS
39
+ };
40
+
41
+ // More eleborated description of the device
42
+ enum class SpecificenumType : uint8_t {
43
+ GENERAL,
44
+ ELECTRICITY,
45
+ WATER,
46
+ GAS,
47
+ AIR,
48
+ SMOKE,
49
+ CARBONMONOXIDE,
50
+ CARBONDIOXIDE,
51
+ TEMPERATURE,
52
+ ACCESSCONTROL,
53
+ BURGLAR,
54
+ POWERMANAGEMENT,
55
+ SYSTEM,
56
+ EMERGENCY,
57
+ CLOCK,
58
+ LIGHT
59
+ };
60
+
61
+ // Common classes
62
+ //
63
+
64
+ class DeviceInfo : public Core::JSON::Container {
65
+ public:
66
+ DeviceInfo()
67
+ : Core::JSON::Container()
68
+ {
69
+ _Init();
70
+ }
71
+
72
+ DeviceInfo(const DeviceInfo& _other)
73
+ : Core::JSON::Container()
74
+ , Id(_other.Id)
75
+ , Bundle(_other.Bundle)
76
+ , Name(_other.Name)
77
+ , Callsign(_other.Callsign)
78
+ , Basic(_other.Basic)
79
+ , Specific(_other.Specific)
80
+ , Dimension(_other.Dimension)
81
+ , Decimals(_other.Decimals)
82
+ , Minimum(_other.Minimum)
83
+ , Maximum(_other.Maximum)
84
+ , Value(_other.Value)
85
+ {
86
+ _Init();
87
+ }
88
+
89
+ DeviceInfo(DeviceInfo&& _other) noexcept
90
+ : Core::JSON::Container()
91
+ , Id(std::move(_other.Id))
92
+ , Bundle(std::move(_other.Bundle))
93
+ , Name(std::move(_other.Name))
94
+ , Callsign(std::move(_other.Callsign))
95
+ , Basic(std::move(_other.Basic))
96
+ , Specific(std::move(_other.Specific))
97
+ , Dimension(std::move(_other.Dimension))
98
+ , Decimals(std::move(_other.Decimals))
99
+ , Minimum(std::move(_other.Minimum))
100
+ , Maximum(std::move(_other.Maximum))
101
+ , Value(std::move(_other.Value))
102
+ {
103
+ _Init();
104
+ }
105
+
106
+ DeviceInfo& operator=(const DeviceInfo& _rhs)
107
+ {
108
+ Id = _rhs.Id;
109
+ if (_rhs.Bundle != 0) {
110
+ Bundle = _rhs.Bundle;
111
+ }
112
+ Name = _rhs.Name;
113
+ if (_rhs.Callsign.Value().empty() == false) {
114
+ Callsign = _rhs.Callsign;
115
+ }
116
+ Basic = _rhs.Basic;
117
+ Specific = _rhs.Specific;
118
+ Dimension = _rhs.Dimension;
119
+ Decimals = _rhs.Decimals;
120
+ Minimum = _rhs.Minimum;
121
+ Maximum = _rhs.Maximum;
122
+ if (_rhs.Value != 0) {
123
+ Value = _rhs.Value;
124
+ }
125
+ return (*this);
126
+ }
127
+
128
+ DeviceInfo& operator=(DeviceInfo&& _rhs) noexcept
129
+ {
130
+ Id = std::move(_rhs.Id);
131
+ Bundle = std::move(_rhs.Bundle);
132
+ Name = std::move(_rhs.Name);
133
+ Callsign = std::move(_rhs.Callsign);
134
+ Basic = std::move(_rhs.Basic);
135
+ Specific = std::move(_rhs.Specific);
136
+ Dimension = std::move(_rhs.Dimension);
137
+ Decimals = std::move(_rhs.Decimals);
138
+ Minimum = std::move(_rhs.Minimum);
139
+ Maximum = std::move(_rhs.Maximum);
140
+ Value = std::move(_rhs.Value);
141
+ return (*this);
142
+ }
143
+
144
+ ~DeviceInfo() = default;
145
+
146
+ public:
147
+ bool IsDataValid() const
148
+ {
149
+ return ((Id.IsSet() == true) && (Name.IsSet() == true) && (Basic.IsSet() == true) && (Specific.IsSet() == true) && (Dimension.IsSet() == true) && (Decimals.IsSet() == true) && (Minimum.IsSet() == true) && (Maximum.IsSet() == true));
150
+ }
151
+
152
+ private:
153
+ void _Init()
154
+ {
155
+ Add(_T("id"), &Id);
156
+ Add(_T("bundle"), &Bundle);
157
+ Add(_T("name"), &Name);
158
+ Add(_T("callsign"), &Callsign);
159
+ Add(_T("basic"), &Basic);
160
+ Add(_T("specific"), &Specific);
161
+ Add(_T("dimension"), &Dimension);
162
+ Add(_T("decimals"), &Decimals);
163
+ Add(_T("minimum"), &Minimum);
164
+ Add(_T("maximum"), &Maximum);
165
+ Add(_T("value"), &Value);
166
+ }
167
+
168
+ public:
169
+ Core::JSON::DecUInt32 Id; // Identifier of the device
170
+ Core::JSON::DecUInt32 Bundle; // If this value point belongs to a bundle of more value points
171
+ Core::JSON::String Name; // Name given to this device
172
+ Core::JSON::String Callsign; // The callsign that owns this external
173
+ Core::JSON::EnumType<BasicenumType> Basic; // Basic description of the device (measure or control)
174
+ Core::JSON::EnumType<SpecificenumType> Specific; // More eleborated description of the device
175
+ Core::JSON::EnumType<DimensionenumType> Dimension; // What is the dimension of the value that is returned by the device
176
+ Core::JSON::DecUInt32 Decimals; // Number of digits that should be considered fractional
177
+ Core::JSON::DecSInt32 Minimum; // Minimum value that the device can reach
178
+ Core::JSON::DecSInt32 Maximum; // Maximum value that the device can reach
179
+ Core::JSON::DecSInt32 Value;
180
+ }; // class DeviceInfo
181
+
182
+ // Method params/result classes
183
+ //
184
+
185
+ class ActivityParamsData : public Core::JSON::Container {
186
+ public:
187
+ ActivityParamsData()
188
+ : Core::JSON::Container()
189
+ {
190
+ Add(_T("id"), &Id);
191
+ Add(_T("value"), &Value);
192
+ }
193
+
194
+ ActivityParamsData(const ActivityParamsData&) = delete;
195
+ ActivityParamsData(ActivityParamsData&&) noexcept = delete;
196
+
197
+ ActivityParamsData& operator=(const ActivityParamsData&) = delete;
198
+ ActivityParamsData& operator=(ActivityParamsData&&) noexcept = delete;
199
+
200
+ ~ActivityParamsData() = default;
201
+
202
+ public:
203
+ bool IsDataValid() const
204
+ {
205
+ return ((Id.IsSet() == true) && (Value.IsSet() == true));
206
+ }
207
+
208
+ public:
209
+ Core::JSON::DecUInt32 Id; // Identifier of the device
210
+ Core::JSON::DecSInt32 Value;
211
+ }; // class ActivityParamsData
212
+
213
+ class GroupData : public Core::JSON::Container {
214
+ public:
215
+ class MembersData : public Core::JSON::Container {
216
+ public:
217
+ MembersData()
218
+ : Core::JSON::Container()
219
+ {
220
+ _Init();
221
+ }
222
+
223
+ MembersData(const MembersData& _other)
224
+ : Core::JSON::Container()
225
+ , Name(_other.Name)
226
+ , Callsign(_other.Callsign)
227
+ , Children(_other.Children)
228
+ , Bundle(_other.Bundle)
229
+ , Id(_other.Id)
230
+ , Point(_other.Point)
231
+ {
232
+ _Init();
233
+ }
234
+
235
+ MembersData(MembersData&& _other) noexcept
236
+ : Core::JSON::Container()
237
+ , Name(std::move(_other.Name))
238
+ , Callsign(std::move(_other.Callsign))
239
+ , Children(std::move(_other.Children))
240
+ , Bundle(std::move(_other.Bundle))
241
+ , Id(std::move(_other.Id))
242
+ , Point(std::move(_other.Point))
243
+ {
244
+ _Init();
245
+ }
246
+
247
+ MembersData& operator=(const MembersData& _rhs)
248
+ {
249
+ Name = _rhs.Name;
250
+ Callsign = _rhs.Callsign;
251
+ Children = _rhs.Children;
252
+ Bundle = _rhs.Bundle;
253
+ Id = _rhs.Id;
254
+ Point = _rhs.Point;
255
+ return (*this);
256
+ }
257
+
258
+ MembersData& operator=(MembersData&& _rhs) noexcept
259
+ {
260
+ Name = std::move(_rhs.Name);
261
+ Callsign = std::move(_rhs.Callsign);
262
+ Children = std::move(_rhs.Children);
263
+ Bundle = std::move(_rhs.Bundle);
264
+ Id = std::move(_rhs.Id);
265
+ Point = std::move(_rhs.Point);
266
+ return (*this);
267
+ }
268
+
269
+ ~MembersData() = default;
270
+
271
+ public:
272
+ bool IsDataValid() const
273
+ {
274
+ return ((Name.IsSet() == true) && (Callsign.IsSet() == true) && (Children.IsSet() == true) && (Bundle.IsSet() == true) && (Id.IsSet() == true) && (Point.IsSet() == true));
275
+ }
276
+
277
+ private:
278
+ void _Init()
279
+ {
280
+ Add(_T("name"), &Name);
281
+ Add(_T("callsign"), &Callsign);
282
+ Add(_T("children"), &Children);
283
+ Add(_T("bundle"), &Bundle);
284
+ Add(_T("id"), &Id);
285
+ Add(_T("point"), &Point);
286
+ }
287
+
288
+ public:
289
+ Core::JSON::ArrayType<Core::JSON::String> Name; // Name of a room or sensor
290
+ Core::JSON::String Callsign; // The callsign that owns this external
291
+ Core::JSON::DecUInt32 Children; // The number of children in a group
292
+ Core::JSON::DecUInt32 Bundle; // The bundle id if this is a bundle
293
+ Core::JSON::DecUInt32 Id; // The id of the single point in this meber, it is not a bundle
294
+ Core::JSON::ArrayType<DeviceInfo> Point;
295
+ }; // class MembersData
296
+
297
+ GroupData()
298
+ : Core::JSON::Container()
299
+ {
300
+ Add(_T("parent"), &Parent);
301
+ Add(_T("id"), &Id);
302
+ Add(_T("base"), &Base);
303
+ Add(_T("members"), &Members);
304
+ }
305
+
306
+ GroupData(const GroupData&) = delete;
307
+ GroupData(GroupData&&) noexcept = delete;
308
+
309
+ GroupData& operator=(const GroupData&) = delete;
310
+ GroupData& operator=(GroupData&&) noexcept = delete;
311
+
312
+ ~GroupData() = default;
313
+
314
+ public:
315
+ bool IsDataValid() const
316
+ {
317
+ return ((Parent.IsSet() == true) && (Id.IsSet() == true) && (Base.IsSet() == true) && (Members.IsSet() == true));
318
+ }
319
+
320
+ public:
321
+ Core::JSON::DecUInt32 Parent; // Identifier of the group to wich this group belongs
322
+ Core::JSON::DecUInt32 Id; // Identifier of this group
323
+ Core::JSON::String Base; // Path identifier leading up to this group
324
+ Core::JSON::ArrayType<GroupData::MembersData> Members;
325
+ }; // class GroupData
326
+
327
+ class LinkData : public Core::JSON::Container {
328
+ public:
329
+ LinkData()
330
+ : Core::JSON::Container()
331
+ {
332
+ Add(_T("node"), &Node);
333
+ Add(_T("id"), &Id);
334
+ }
335
+
336
+ LinkData(const LinkData&) = delete;
337
+ LinkData(LinkData&&) noexcept = delete;
338
+
339
+ LinkData& operator=(const LinkData&) = delete;
340
+ LinkData& operator=(LinkData&&) noexcept = delete;
341
+
342
+ ~LinkData() = default;
343
+
344
+ public:
345
+ bool IsDataValid() const
346
+ {
347
+ return ((Node.IsSet() == true) && (Id.IsSet() == true));
348
+ }
349
+
350
+ public:
351
+ Core::JSON::String Node; // Path identifying the the node to which we should link the id
352
+ Core::JSON::DecUInt32 Id; // Identifier of the External to be linked
353
+ }; // class LinkData
354
+
355
+ class MoveData : public Core::JSON::Container {
356
+ public:
357
+ MoveData()
358
+ : Core::JSON::Container()
359
+ {
360
+ Add(_T("origin"), &Origin);
361
+ Add(_T("node"), &Node);
362
+ }
363
+
364
+ MoveData(const MoveData&) = delete;
365
+ MoveData(MoveData&&) noexcept = delete;
366
+
367
+ MoveData& operator=(const MoveData&) = delete;
368
+ MoveData& operator=(MoveData&&) noexcept = delete;
369
+
370
+ ~MoveData() = default;
371
+
372
+ public:
373
+ bool IsDataValid() const
374
+ {
375
+ return ((Origin.IsSet() == true) && (Node.IsSet() == true));
376
+ }
377
+
378
+ public:
379
+ Core::JSON::String Origin; // Path identifying the the node that will be moved
380
+ Core::JSON::String Node; // Path identifying where the node it too be placed
381
+ }; // class MoveData
382
+
383
+ } // namespace Butler
384
+
385
+ POP_WARNING()
386
+
387
+ } // namespace JsonData
388
+
389
+ // Enum conversion handlers
390
+ ENUM_CONVERSION_HANDLER(JsonData::Butler::BasicenumType)
391
+ ENUM_CONVERSION_HANDLER(JsonData::Butler::SpecificenumType)
392
+ ENUM_CONVERSION_HANDLER(JsonData::Butler::DimensionenumType)
393
+
394
+ }
395
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Compositor.h ADDED
@@ -0,0 +1,154 @@
1
+ // C++ types for Compositor API.
2
+ // Generated automatically from 'Compositor.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace Compositor {
18
+
19
+ // Common enums
20
+ //
21
+
22
+ // Brightness of SDR graphics in HDR display
23
+ enum class BrightnessType : uint8_t {
24
+ DEFAULT,
25
+ MATCH_VIDEO,
26
+ MAX
27
+ };
28
+
29
+ // Screen resolution
30
+ enum class ResolutionType : uint8_t {
31
+ UNKNOWN,
32
+ E480I,
33
+ E480P,
34
+ E720P50,
35
+ E720P60,
36
+ E1080P24,
37
+ E1080I50,
38
+ E1080P50,
39
+ E1080P60,
40
+ E2160P50,
41
+ E2160P60
42
+ };
43
+
44
+ // Client surface visibility
45
+ enum class VisiblityType : uint8_t {
46
+ VISIBLE,
47
+ HIDDEN
48
+ };
49
+
50
+ // Common classes
51
+ //
52
+
53
+ class PutontopParamsInfo : public Core::JSON::Container {
54
+ public:
55
+ PutontopParamsInfo()
56
+ : Core::JSON::Container()
57
+ {
58
+ Add(_T("client"), &Client);
59
+ }
60
+
61
+ PutontopParamsInfo(const PutontopParamsInfo&) = delete;
62
+ PutontopParamsInfo(PutontopParamsInfo&&) noexcept = delete;
63
+
64
+ PutontopParamsInfo& operator=(const PutontopParamsInfo&) = delete;
65
+ PutontopParamsInfo& operator=(PutontopParamsInfo&&) noexcept = delete;
66
+
67
+ ~PutontopParamsInfo() = default;
68
+
69
+ public:
70
+ bool IsDataValid() const
71
+ {
72
+ return (Client.IsSet() == true);
73
+ }
74
+
75
+ public:
76
+ Core::JSON::String Client; // Client name
77
+ }; // class PutontopParamsInfo
78
+
79
+ // Method params/result classes
80
+ //
81
+
82
+ class GeometryData : public Core::JSON::Container {
83
+ public:
84
+ GeometryData()
85
+ : Core::JSON::Container()
86
+ {
87
+ Add(_T("x"), &X);
88
+ Add(_T("y"), &Y);
89
+ Add(_T("width"), &Width);
90
+ Add(_T("height"), &Height);
91
+ }
92
+
93
+ GeometryData(const GeometryData&) = delete;
94
+ GeometryData(GeometryData&&) noexcept = delete;
95
+
96
+ GeometryData& operator=(const GeometryData&) = delete;
97
+ GeometryData& operator=(GeometryData&&) noexcept = delete;
98
+
99
+ ~GeometryData() = default;
100
+
101
+ public:
102
+ bool IsDataValid() const
103
+ {
104
+ return ((X.IsSet() == true) && (Y.IsSet() == true) && (Width.IsSet() == true) && (Height.IsSet() == true));
105
+ }
106
+
107
+ public:
108
+ Core::JSON::DecUInt32 X; // Horizontal coordinate of the surface
109
+ Core::JSON::DecUInt32 Y; // Vertical coordinate of the surface
110
+ Core::JSON::DecUInt32 Width; // Surface width
111
+ Core::JSON::DecUInt32 Height; // Surface height
112
+ }; // class GeometryData
113
+
114
+ class PutbelowParamsData : public Core::JSON::Container {
115
+ public:
116
+ PutbelowParamsData()
117
+ : Core::JSON::Container()
118
+ {
119
+ Add(_T("client"), &Client);
120
+ Add(_T("relative"), &Relative);
121
+ }
122
+
123
+ PutbelowParamsData(const PutbelowParamsData&) = delete;
124
+ PutbelowParamsData(PutbelowParamsData&&) noexcept = delete;
125
+
126
+ PutbelowParamsData& operator=(const PutbelowParamsData&) = delete;
127
+ PutbelowParamsData& operator=(PutbelowParamsData&&) noexcept = delete;
128
+
129
+ ~PutbelowParamsData() = default;
130
+
131
+ public:
132
+ bool IsDataValid() const
133
+ {
134
+ return ((Client.IsSet() == true) && (Relative.IsSet() == true));
135
+ }
136
+
137
+ public:
138
+ Core::JSON::String Client; // Client name to change z-order position
139
+ Core::JSON::String Relative; // Client to put the other surface below
140
+ }; // class PutbelowParamsData
141
+
142
+ } // namespace Compositor
143
+
144
+ POP_WARNING()
145
+
146
+ } // namespace JsonData
147
+
148
+ // Enum conversion handlers
149
+ ENUM_CONVERSION_HANDLER(JsonData::Compositor::ResolutionType)
150
+ ENUM_CONVERSION_HANDLER(JsonData::Compositor::BrightnessType)
151
+ ENUM_CONVERSION_HANDLER(JsonData::Compositor::VisiblityType)
152
+
153
+ }
154
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_ConnectionProperties.h ADDED
@@ -0,0 +1,113 @@
1
+ // C++ types for ConnectionProperties API.
2
+ // Generated automatically from 'IDisplayInfo.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IDisplayInfo.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace ConnectionProperties {
18
+
19
+ // Method params/result classes
20
+ //
21
+
22
+ class EDIDParamsData : public Core::JSON::Container {
23
+ public:
24
+ EDIDParamsData()
25
+ : Core::JSON::Container()
26
+ {
27
+ Add(_T("length"), &Length);
28
+ }
29
+
30
+ EDIDParamsData(const EDIDParamsData&) = delete;
31
+ EDIDParamsData(EDIDParamsData&&) noexcept = delete;
32
+
33
+ EDIDParamsData& operator=(const EDIDParamsData&) = delete;
34
+ EDIDParamsData& operator=(EDIDParamsData&&) noexcept = delete;
35
+
36
+ ~EDIDParamsData() = default;
37
+
38
+ public:
39
+ bool IsDataValid() const
40
+ {
41
+ return (Length.IsSet() == true);
42
+ }
43
+
44
+ public:
45
+ Core::JSON::DecUInt16 Length;
46
+ }; // class EDIDParamsData
47
+
48
+ class EDIDResultData : public Core::JSON::Container {
49
+ public:
50
+ EDIDResultData()
51
+ : Core::JSON::Container()
52
+ {
53
+ Add(_T("length"), &Length);
54
+ Add(_T("data"), &Data);
55
+ }
56
+
57
+ EDIDResultData(const EDIDResultData&) = delete;
58
+ EDIDResultData(EDIDResultData&&) noexcept = delete;
59
+
60
+ EDIDResultData& operator=(const EDIDResultData&) = delete;
61
+ EDIDResultData& operator=(EDIDResultData&&) noexcept = delete;
62
+
63
+ ~EDIDResultData() = default;
64
+
65
+ public:
66
+ bool IsDataValid() const
67
+ {
68
+ return ((Length.IsSet() == true) && (Data.IsSet() == true));
69
+ }
70
+
71
+ public:
72
+ Core::JSON::DecUInt16 Length;
73
+ Core::JSON::String Data;
74
+ }; // class EDIDResultData
75
+
76
+ class UpdatedParamsData : public Core::JSON::Container {
77
+ public:
78
+ UpdatedParamsData()
79
+ : Core::JSON::Container()
80
+ {
81
+ Add(_T("event"), &Event);
82
+ }
83
+
84
+ UpdatedParamsData(const UpdatedParamsData&) = delete;
85
+ UpdatedParamsData(UpdatedParamsData&&) noexcept = delete;
86
+
87
+ UpdatedParamsData& operator=(const UpdatedParamsData&) = delete;
88
+ UpdatedParamsData& operator=(UpdatedParamsData&&) noexcept = delete;
89
+
90
+ ~UpdatedParamsData() = default;
91
+
92
+ public:
93
+ bool IsDataValid() const
94
+ {
95
+ return (Event.IsSet() == true);
96
+ }
97
+
98
+ public:
99
+ Core::JSON::EnumType<Exchange::IConnectionProperties::INotification::Source> Event;
100
+ }; // class UpdatedParamsData
101
+
102
+ } // namespace ConnectionProperties
103
+
104
+ POP_WARNING()
105
+
106
+ } // namespace JsonData
107
+
108
+ // Enum conversion handlers
109
+ ENUM_CONVERSION_HANDLER(Exchange::IConnectionProperties::HDCPProtectionType)
110
+ ENUM_CONVERSION_HANDLER(Exchange::IConnectionProperties::INotification::Source)
111
+
112
+ }
113
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Containers.h ADDED
@@ -0,0 +1,200 @@
1
+ // C++ types for Process Containers.
2
+ // Generated automatically from 'Containers.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+
10
+ namespace WPEFramework {
11
+
12
+ namespace JsonData {
13
+
14
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
15
+
16
+ namespace Containers {
17
+
18
+ // Method params/result classes
19
+ //
20
+
21
+ class CpuData : public Core::JSON::Container {
22
+ public:
23
+ CpuData()
24
+ : Core::JSON::Container()
25
+ {
26
+ Add(_T("total"), &Total);
27
+ Add(_T("cores"), &Cores);
28
+ }
29
+
30
+ CpuData(const CpuData&) = delete;
31
+ CpuData(CpuData&&) noexcept = delete;
32
+
33
+ CpuData& operator=(const CpuData&) = delete;
34
+ CpuData& operator=(CpuData&&) noexcept = delete;
35
+
36
+ ~CpuData() = default;
37
+
38
+ public:
39
+ bool IsDataValid() const
40
+ {
41
+ return ((Total.IsSet() == true) && (Cores.IsSet() == true));
42
+ }
43
+
44
+ public:
45
+ Core::JSON::DecUInt64 Total; // CPU-time spent on container, in nanoseconds
46
+ Core::JSON::ArrayType<Core::JSON::DecUInt64> Cores; // Time spent on each cpu core, in nanoseconds
47
+ }; // class CpuData
48
+
49
+ class MemoryData : public Core::JSON::Container {
50
+ public:
51
+ MemoryData()
52
+ : Core::JSON::Container()
53
+ {
54
+ Add(_T("allocated"), &Allocated);
55
+ Add(_T("resident"), &Resident);
56
+ Add(_T("shared"), &Shared);
57
+ }
58
+
59
+ MemoryData(const MemoryData&) = delete;
60
+ MemoryData(MemoryData&&) noexcept = delete;
61
+
62
+ MemoryData& operator=(const MemoryData&) = delete;
63
+ MemoryData& operator=(MemoryData&&) noexcept = delete;
64
+
65
+ ~MemoryData() = default;
66
+
67
+ public:
68
+ bool IsDataValid() const
69
+ {
70
+ return ((Allocated.IsSet() == true) && (Resident.IsSet() == true) && (Shared.IsSet() == true));
71
+ }
72
+
73
+ public:
74
+ Core::JSON::DecUInt64 Allocated; // Memory allocated by container
75
+ Core::JSON::DecUInt64 Resident; // Resident memory of the container
76
+ Core::JSON::DecUInt64 Shared; // Shared memory in the container
77
+ }; // class MemoryData
78
+
79
+ class NetworksResultDataElem : public Core::JSON::Container {
80
+ public:
81
+ NetworksResultDataElem()
82
+ : Core::JSON::Container()
83
+ {
84
+ _Init();
85
+ }
86
+
87
+ NetworksResultDataElem(const NetworksResultDataElem& _other)
88
+ : Core::JSON::Container()
89
+ , Interface(_other.Interface)
90
+ , Ips(_other.Ips)
91
+ {
92
+ _Init();
93
+ }
94
+
95
+ NetworksResultDataElem(NetworksResultDataElem&& _other) noexcept
96
+ : Core::JSON::Container()
97
+ , Interface(std::move(_other.Interface))
98
+ , Ips(std::move(_other.Ips))
99
+ {
100
+ _Init();
101
+ }
102
+
103
+ NetworksResultDataElem& operator=(const NetworksResultDataElem& _rhs)
104
+ {
105
+ Interface = _rhs.Interface;
106
+ Ips = _rhs.Ips;
107
+ return (*this);
108
+ }
109
+
110
+ NetworksResultDataElem& operator=(NetworksResultDataElem&& _rhs) noexcept
111
+ {
112
+ Interface = std::move(_rhs.Interface);
113
+ Ips = std::move(_rhs.Ips);
114
+ return (*this);
115
+ }
116
+
117
+ ~NetworksResultDataElem() = default;
118
+
119
+ public:
120
+ bool IsDataValid() const
121
+ {
122
+ return ((Interface.IsSet() == true) && (Ips.IsSet() == true));
123
+ }
124
+
125
+ private:
126
+ void _Init()
127
+ {
128
+ Add(_T("interface"), &Interface);
129
+ Add(_T("ips"), &Ips);
130
+ }
131
+
132
+ public:
133
+ Core::JSON::String Interface; // Interface name
134
+ Core::JSON::ArrayType<Core::JSON::String> Ips; // List of ip addresses
135
+ }; // class NetworksResultDataElem
136
+
137
+ class StartParamsData : public Core::JSON::Container {
138
+ public:
139
+ StartParamsData()
140
+ : Core::JSON::Container()
141
+ {
142
+ Add(_T("name"), &Name);
143
+ Add(_T("command"), &Command);
144
+ Add(_T("parameters"), &Parameters);
145
+ }
146
+
147
+ StartParamsData(const StartParamsData&) = delete;
148
+ StartParamsData(StartParamsData&&) noexcept = delete;
149
+
150
+ StartParamsData& operator=(const StartParamsData&) = delete;
151
+ StartParamsData& operator=(StartParamsData&&) noexcept = delete;
152
+
153
+ ~StartParamsData() = default;
154
+
155
+ public:
156
+ bool IsDataValid() const
157
+ {
158
+ return ((Name.IsSet() == true) && (Command.IsSet() == true) && (Parameters.IsSet() == true));
159
+ }
160
+
161
+ public:
162
+ Core::JSON::String Name; // Name of container
163
+ Core::JSON::String Command; // Command that will be started in the container
164
+ Core::JSON::ArrayType<Core::JSON::String> Parameters; // List of parameters supplied to command
165
+ }; // class StartParamsData
166
+
167
+ class StopParamsData : public Core::JSON::Container {
168
+ public:
169
+ StopParamsData()
170
+ : Core::JSON::Container()
171
+ {
172
+ Add(_T("name"), &Name);
173
+ }
174
+
175
+ StopParamsData(const StopParamsData&) = delete;
176
+ StopParamsData(StopParamsData&&) noexcept = delete;
177
+
178
+ StopParamsData& operator=(const StopParamsData&) = delete;
179
+ StopParamsData& operator=(StopParamsData&&) noexcept = delete;
180
+
181
+ ~StopParamsData() = default;
182
+
183
+ public:
184
+ bool IsDataValid() const
185
+ {
186
+ return (Name.IsSet() == true);
187
+ }
188
+
189
+ public:
190
+ Core::JSON::String Name; // Name of container
191
+ }; // class StopParamsData
192
+
193
+ } // namespace Containers
194
+
195
+ POP_WARNING()
196
+
197
+ } // namespace JsonData
198
+
199
+ }
200
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_DHCPServer.h ADDED
@@ -0,0 +1,211 @@
1
+ // C++ types for DHCP Server API.
2
+ // Generated automatically from 'DHCPServer.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+
10
+ namespace WPEFramework {
11
+
12
+ namespace JsonData {
13
+
14
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
15
+
16
+ namespace DHCPServer {
17
+
18
+ // Common classes
19
+ //
20
+
21
+ class ActivateParamsInfo : public Core::JSON::Container {
22
+ public:
23
+ ActivateParamsInfo()
24
+ : Core::JSON::Container()
25
+ {
26
+ Add(_T("interface"), &Interface);
27
+ }
28
+
29
+ ActivateParamsInfo(const ActivateParamsInfo&) = delete;
30
+ ActivateParamsInfo(ActivateParamsInfo&&) noexcept = delete;
31
+
32
+ ActivateParamsInfo& operator=(const ActivateParamsInfo&) = delete;
33
+ ActivateParamsInfo& operator=(ActivateParamsInfo&&) noexcept = delete;
34
+
35
+ ~ActivateParamsInfo() = default;
36
+
37
+ public:
38
+ bool IsDataValid() const
39
+ {
40
+ return (Interface.IsSet() == true);
41
+ }
42
+
43
+ public:
44
+ Core::JSON::String Interface; // Network interface name
45
+ }; // class ActivateParamsInfo
46
+
47
+ // Method params/result classes
48
+ //
49
+
50
+ class ServerData : public Core::JSON::Container {
51
+ public:
52
+ class LeaseData : public Core::JSON::Container {
53
+ public:
54
+ LeaseData()
55
+ : Core::JSON::Container()
56
+ {
57
+ _Init();
58
+ }
59
+
60
+ LeaseData(const LeaseData& _other)
61
+ : Core::JSON::Container()
62
+ , Name(_other.Name)
63
+ , Ip(_other.Ip)
64
+ , Expires(_other.Expires)
65
+ {
66
+ _Init();
67
+ }
68
+
69
+ LeaseData(LeaseData&& _other) noexcept
70
+ : Core::JSON::Container()
71
+ , Name(std::move(_other.Name))
72
+ , Ip(std::move(_other.Ip))
73
+ , Expires(std::move(_other.Expires))
74
+ {
75
+ _Init();
76
+ }
77
+
78
+ LeaseData& operator=(const LeaseData& _rhs)
79
+ {
80
+ Name = _rhs.Name;
81
+ Ip = _rhs.Ip;
82
+ if (_rhs.Expires.Value().empty() == false) {
83
+ Expires = _rhs.Expires;
84
+ }
85
+ return (*this);
86
+ }
87
+
88
+ LeaseData& operator=(LeaseData&& _rhs) noexcept
89
+ {
90
+ Name = std::move(_rhs.Name);
91
+ Ip = std::move(_rhs.Ip);
92
+ Expires = std::move(_rhs.Expires);
93
+ return (*this);
94
+ }
95
+
96
+ ~LeaseData() = default;
97
+
98
+ public:
99
+ bool IsDataValid() const
100
+ {
101
+ return ((Name.IsSet() == true) && (Ip.IsSet() == true));
102
+ }
103
+
104
+ private:
105
+ void _Init()
106
+ {
107
+ Add(_T("name"), &Name);
108
+ Add(_T("ip"), &Ip);
109
+ Add(_T("expires"), &Expires);
110
+ }
111
+
112
+ public:
113
+ Core::JSON::String Name; // Client identifier (or client hardware address if identifier is absent)
114
+ Core::JSON::String Ip; // Client IP address
115
+ Core::JSON::String Expires; // Client IP expiration time (in ISO8601 format, empty: never expires)
116
+ }; // class LeaseData
117
+
118
+ ServerData()
119
+ : Core::JSON::Container()
120
+ {
121
+ _Init();
122
+ }
123
+
124
+ ServerData(const ServerData& _other)
125
+ : Core::JSON::Container()
126
+ , Interface(_other.Interface)
127
+ , Active(_other.Active)
128
+ , Begin(_other.Begin)
129
+ , End(_other.End)
130
+ , Router(_other.Router)
131
+ , Leases(_other.Leases)
132
+ {
133
+ _Init();
134
+ }
135
+
136
+ ServerData(ServerData&& _other) noexcept
137
+ : Core::JSON::Container()
138
+ , Interface(std::move(_other.Interface))
139
+ , Active(std::move(_other.Active))
140
+ , Begin(std::move(_other.Begin))
141
+ , End(std::move(_other.End))
142
+ , Router(std::move(_other.Router))
143
+ , Leases(std::move(_other.Leases))
144
+ {
145
+ _Init();
146
+ }
147
+
148
+ ServerData& operator=(const ServerData& _rhs)
149
+ {
150
+ Interface = _rhs.Interface;
151
+ Active = _rhs.Active;
152
+ if (_rhs.Begin.Value().empty() == false) {
153
+ Begin = _rhs.Begin;
154
+ }
155
+ if (_rhs.End.Value().empty() == false) {
156
+ End = _rhs.End;
157
+ }
158
+ if (_rhs.Router.Value().empty() == false) {
159
+ Router = _rhs.Router;
160
+ }
161
+ Leases = _rhs.Leases;
162
+ return (*this);
163
+ }
164
+
165
+ ServerData& operator=(ServerData&& _rhs) noexcept
166
+ {
167
+ Interface = std::move(_rhs.Interface);
168
+ Active = std::move(_rhs.Active);
169
+ Begin = std::move(_rhs.Begin);
170
+ End = std::move(_rhs.End);
171
+ Router = std::move(_rhs.Router);
172
+ Leases = std::move(_rhs.Leases);
173
+ return (*this);
174
+ }
175
+
176
+ ~ServerData() = default;
177
+
178
+ public:
179
+ bool IsDataValid() const
180
+ {
181
+ return ((Interface.IsSet() == true) && (Active.IsSet() == true));
182
+ }
183
+
184
+ private:
185
+ void _Init()
186
+ {
187
+ Add(_T("interface"), &Interface);
188
+ Add(_T("active"), &Active);
189
+ Add(_T("begin"), &Begin);
190
+ Add(_T("end"), &End);
191
+ Add(_T("router"), &Router);
192
+ Add(_T("leases"), &Leases);
193
+ }
194
+
195
+ public:
196
+ Core::JSON::String Interface; // Network interface name
197
+ Core::JSON::Boolean Active; // Denotes if server is currently active
198
+ Core::JSON::String Begin; // IP address pool start
199
+ Core::JSON::String End; // IP address pool end
200
+ Core::JSON::String Router; // Router IP address
201
+ Core::JSON::ArrayType<ServerData::LeaseData> Leases; // List of IP address leases
202
+ }; // class ServerData
203
+
204
+ } // namespace DHCPServer
205
+
206
+ POP_WARNING()
207
+
208
+ } // namespace JsonData
209
+
210
+ }
211
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_DIALServer.h ADDED
@@ -0,0 +1,129 @@
1
+ // C++ types for DIAL Server API.
2
+ // Generated automatically from 'DIALServer.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace DIALServer {
18
+
19
+ // Common enums
20
+ //
21
+
22
+ // Current application running state
23
+ enum class StateType : uint8_t {
24
+ STOPPED,
25
+ STARTED,
26
+ HIDDEN
27
+ };
28
+
29
+ // Common classes
30
+ //
31
+
32
+ class HideParamsInfo : public Core::JSON::Container {
33
+ public:
34
+ HideParamsInfo()
35
+ : Core::JSON::Container()
36
+ {
37
+ Add(_T("application"), &Application);
38
+ }
39
+
40
+ HideParamsInfo(const HideParamsInfo&) = delete;
41
+ HideParamsInfo(HideParamsInfo&&) noexcept = delete;
42
+
43
+ HideParamsInfo& operator=(const HideParamsInfo&) = delete;
44
+ HideParamsInfo& operator=(HideParamsInfo&&) noexcept = delete;
45
+
46
+ ~HideParamsInfo() = default;
47
+
48
+ public:
49
+ bool IsDataValid() const
50
+ {
51
+ return (Application.IsSet() == true);
52
+ }
53
+
54
+ public:
55
+ Core::JSON::String Application; // Application name
56
+ }; // class HideParamsInfo
57
+
58
+ // Method params/result classes
59
+ //
60
+
61
+ class StartParamsData : public Core::JSON::Container {
62
+ public:
63
+ StartParamsData()
64
+ : Core::JSON::Container()
65
+ {
66
+ Add(_T("application"), &Application);
67
+ Add(_T("parameters"), &Parameters);
68
+ Add(_T("payload"), &Payload);
69
+ }
70
+
71
+ StartParamsData(const StartParamsData&) = delete;
72
+ StartParamsData(StartParamsData&&) noexcept = delete;
73
+
74
+ StartParamsData& operator=(const StartParamsData&) = delete;
75
+ StartParamsData& operator=(StartParamsData&&) noexcept = delete;
76
+
77
+ ~StartParamsData() = default;
78
+
79
+ public:
80
+ bool IsDataValid() const
81
+ {
82
+ return (Application.IsSet() == true);
83
+ }
84
+
85
+ public:
86
+ Core::JSON::String Application; // Application name
87
+ Core::JSON::String Parameters; // Additional application-specific parameters
88
+ Core::JSON::String Payload; // Additional application-specific payload
89
+ }; // class StartParamsData
90
+
91
+ class StopParamsData : public Core::JSON::Container {
92
+ public:
93
+ StopParamsData()
94
+ : Core::JSON::Container()
95
+ {
96
+ Add(_T("application"), &Application);
97
+ Add(_T("parameters"), &Parameters);
98
+ }
99
+
100
+ StopParamsData(const StopParamsData&) = delete;
101
+ StopParamsData(StopParamsData&&) noexcept = delete;
102
+
103
+ StopParamsData& operator=(const StopParamsData&) = delete;
104
+ StopParamsData& operator=(StopParamsData&&) noexcept = delete;
105
+
106
+ ~StopParamsData() = default;
107
+
108
+ public:
109
+ bool IsDataValid() const
110
+ {
111
+ return (Application.IsSet() == true);
112
+ }
113
+
114
+ public:
115
+ Core::JSON::String Application; // Application name
116
+ Core::JSON::String Parameters; // Additional application-specific parameters
117
+ }; // class StopParamsData
118
+
119
+ } // namespace DIALServer
120
+
121
+ POP_WARNING()
122
+
123
+ } // namespace JsonData
124
+
125
+ // Enum conversion handlers
126
+ ENUM_CONVERSION_HANDLER(JsonData::DIALServer::StateType)
127
+
128
+ }
129
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_DTV.h ADDED
@@ -0,0 +1,1571 @@
1
+ // C++ types for DTV API.
2
+ // Generated automatically from 'DTV.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace DTV {
18
+
19
+ // Common enums
20
+ //
21
+
22
+ enum class CodecType : uint8_t {
23
+ MPEG2,
24
+ H264,
25
+ H265,
26
+ AVS,
27
+ MPEG1,
28
+ AAC,
29
+ HEAAC,
30
+ HEAACV2,
31
+ AC3,
32
+ EAC3
33
+ };
34
+
35
+ enum class Diseqc_cswitchType : uint8_t {
36
+ OFF,
37
+ A,
38
+ B,
39
+ C,
40
+ D
41
+ };
42
+
43
+ enum class Diseqc_toneType : uint8_t {
44
+ OFF,
45
+ A,
46
+ B
47
+ };
48
+
49
+ enum class DvbcmodulationType : uint8_t {
50
+ AUTO,
51
+ E4QAM,
52
+ E8QAM,
53
+ E16QAM,
54
+ E32QAM,
55
+ E64QAM,
56
+ E128QAM,
57
+ E256QAM
58
+ };
59
+
60
+ enum class DvbsmodulationType : uint8_t {
61
+ AUTO,
62
+ QPSK,
63
+ E8PSK,
64
+ E16QAM
65
+ };
66
+
67
+ enum class DvbtbandwidthType : uint8_t {
68
+ E5MHZ,
69
+ E6MHZ,
70
+ E7MHZ,
71
+ E8MHZ,
72
+ E10MHZ,
73
+ UNDEFINED
74
+ };
75
+
76
+ enum class EventtypeType : uint8_t {
77
+ SERVICESEARCHSTATUS,
78
+ SERVICEUPDATED,
79
+ SERVICEADDED,
80
+ SERVICEDELETED,
81
+ VIDEOCHANGED,
82
+ AUDIOCHANGED,
83
+ SUBTITLESCHANGED,
84
+ EVENTCHANGED
85
+ };
86
+
87
+ enum class FecType : uint8_t {
88
+ FECAUTO,
89
+ FEC1_2,
90
+ FEC2_3,
91
+ FEC3_4,
92
+ FEC5_6,
93
+ FEC7_8,
94
+ FEC1_4,
95
+ FEC1_3,
96
+ FEC2_5,
97
+ FEC8_9,
98
+ FEC9_10,
99
+ FEC3_5,
100
+ FEC4_5
101
+ };
102
+
103
+ enum class LnbpowerType : uint8_t {
104
+ OFF,
105
+ ON,
106
+ AUTO
107
+ };
108
+
109
+ enum class LnbtypeType : uint8_t {
110
+ SINGLE,
111
+ UNIVERSAL,
112
+ UNICABLE
113
+ };
114
+
115
+ enum class OfdmmodeType : uint8_t {
116
+ OFDM_1K,
117
+ OFDM_2K,
118
+ OFDM_4K,
119
+ OFDM_8K,
120
+ OFDM_16K,
121
+ OFDM_32K,
122
+ UNDEFINED
123
+ };
124
+
125
+ enum class PolarityType : uint8_t {
126
+ HORIZONTAL,
127
+ VERTICAL,
128
+ LEFT,
129
+ RIGHT
130
+ };
131
+
132
+ enum class RunningstatusType : uint8_t {
133
+ UNDEFINED,
134
+ NOTRUNNING,
135
+ STARTSSOON,
136
+ PAUSING,
137
+ RUNNING,
138
+ OFFAIR
139
+ };
140
+
141
+ enum class ServicetypeType : uint8_t {
142
+ TV,
143
+ RADIO,
144
+ TELETEXT,
145
+ NVOD,
146
+ NVOD_TIMESHIFT,
147
+ MOSAIC,
148
+ AVC_RADIO,
149
+ AVC_MOSAIC,
150
+ DATA,
151
+ MPEG2_HD,
152
+ AVC_SD_TV,
153
+ AVC_SD_NVOD_TIMESHIFT,
154
+ AVC_SD_NVOD,
155
+ HD_TV,
156
+ AVC_HD_NVOD_TIMESHIFT,
157
+ AVC_HD_NVOD,
158
+ UHD_TV,
159
+ UNKNOWN
160
+ };
161
+
162
+ enum class TunertypeType : uint8_t {
163
+ NONE = 0,
164
+ DVBS = 1,
165
+ DVBT = 2,
166
+ DVBC = 4
167
+ };
168
+
169
+ // Common classes
170
+ //
171
+
172
+ class DvbctuningparamsInfo : public Core::JSON::Container {
173
+ public:
174
+ DvbctuningparamsInfo()
175
+ : Core::JSON::Container()
176
+ {
177
+ Add(_T("frequency"), &Frequency);
178
+ Add(_T("symbolrate"), &Symbolrate);
179
+ Add(_T("modulation"), &Modulation);
180
+ }
181
+
182
+ DvbctuningparamsInfo(const DvbctuningparamsInfo&) = delete;
183
+ DvbctuningparamsInfo(DvbctuningparamsInfo&&) noexcept = delete;
184
+
185
+ DvbctuningparamsInfo& operator=(const DvbctuningparamsInfo&) = delete;
186
+ DvbctuningparamsInfo& operator=(DvbctuningparamsInfo&&) noexcept = delete;
187
+
188
+ ~DvbctuningparamsInfo() = default;
189
+
190
+ public:
191
+ bool IsDataValid() const
192
+ {
193
+ return ((Frequency.IsSet() == true) && (Symbolrate.IsSet() == true) && (Modulation.IsSet() == true));
194
+ }
195
+
196
+ public:
197
+ Core::JSON::DecUInt32 Frequency;
198
+ Core::JSON::DecUInt16 Symbolrate;
199
+ Core::JSON::EnumType<DvbcmodulationType> Modulation;
200
+ }; // class DvbctuningparamsInfo
201
+
202
+ class DvbstuningparamsInfo : public Core::JSON::Container {
203
+ public:
204
+ DvbstuningparamsInfo()
205
+ : Core::JSON::Container()
206
+ {
207
+ Add(_T("satellite"), &Satellite);
208
+ Add(_T("frequency"), &Frequency);
209
+ Add(_T("polarity"), &Polarity);
210
+ Add(_T("symbolrate"), &Symbolrate);
211
+ Add(_T("fec"), &Fec);
212
+ Add(_T("modulation"), &Modulation);
213
+ Add(_T("dvbs2"), &Dvbs2);
214
+ }
215
+
216
+ DvbstuningparamsInfo(const DvbstuningparamsInfo&) = delete;
217
+ DvbstuningparamsInfo(DvbstuningparamsInfo&&) noexcept = delete;
218
+
219
+ DvbstuningparamsInfo& operator=(const DvbstuningparamsInfo&) = delete;
220
+ DvbstuningparamsInfo& operator=(DvbstuningparamsInfo&&) noexcept = delete;
221
+
222
+ ~DvbstuningparamsInfo() = default;
223
+
224
+ public:
225
+ bool IsDataValid() const
226
+ {
227
+ return ((Satellite.IsSet() == true) && (Frequency.IsSet() == true) && (Polarity.IsSet() == true) && (Symbolrate.IsSet() == true) && (Fec.IsSet() == true) && (Modulation.IsSet() == true) && (Dvbs2.IsSet() == true));
228
+ }
229
+
230
+ public:
231
+ Core::JSON::String Satellite;
232
+ Core::JSON::DecUInt32 Frequency;
233
+ Core::JSON::EnumType<PolarityType> Polarity;
234
+ Core::JSON::DecUInt16 Symbolrate;
235
+ Core::JSON::EnumType<FecType> Fec;
236
+ Core::JSON::EnumType<DvbsmodulationType> Modulation;
237
+ Core::JSON::Boolean Dvbs2;
238
+ }; // class DvbstuningparamsInfo
239
+
240
+ class DvbttuningparamsInfo : public Core::JSON::Container {
241
+ public:
242
+ DvbttuningparamsInfo()
243
+ : Core::JSON::Container()
244
+ {
245
+ Add(_T("frequency"), &Frequency);
246
+ Add(_T("bandwidth"), &Bandwidth);
247
+ Add(_T("mode"), &Mode);
248
+ Add(_T("dvbt2"), &Dvbt2);
249
+ Add(_T("plpid"), &Plpid);
250
+ }
251
+
252
+ DvbttuningparamsInfo(const DvbttuningparamsInfo&) = delete;
253
+ DvbttuningparamsInfo(DvbttuningparamsInfo&&) noexcept = delete;
254
+
255
+ DvbttuningparamsInfo& operator=(const DvbttuningparamsInfo&) = delete;
256
+ DvbttuningparamsInfo& operator=(DvbttuningparamsInfo&&) noexcept = delete;
257
+
258
+ ~DvbttuningparamsInfo() = default;
259
+
260
+ public:
261
+ bool IsDataValid() const
262
+ {
263
+ return ((Frequency.IsSet() == true) && (Bandwidth.IsSet() == true) && (Mode.IsSet() == true) && (Dvbt2.IsSet() == true));
264
+ }
265
+
266
+ public:
267
+ Core::JSON::DecUInt32 Frequency;
268
+ Core::JSON::EnumType<DvbtbandwidthType> Bandwidth;
269
+ Core::JSON::EnumType<OfdmmodeType> Mode;
270
+ Core::JSON::Boolean Dvbt2;
271
+ Core::JSON::DecUInt8 Plpid;
272
+ }; // class DvbttuningparamsInfo
273
+
274
+ class EiteventInfo : public Core::JSON::Container {
275
+ public:
276
+ EiteventInfo()
277
+ : Core::JSON::Container()
278
+ {
279
+ _Init();
280
+ }
281
+
282
+ EiteventInfo(const EiteventInfo& _other)
283
+ : Core::JSON::Container()
284
+ , Name(_other.Name)
285
+ , Starttime(_other.Starttime)
286
+ , Duration(_other.Duration)
287
+ , Eventid(_other.Eventid)
288
+ , Shortdescription(_other.Shortdescription)
289
+ , Hassubtitles(_other.Hassubtitles)
290
+ , Hasaudiodescription(_other.Hasaudiodescription)
291
+ , Parentalrating(_other.Parentalrating)
292
+ , Contentdata(_other.Contentdata)
293
+ , Hasextendedinfo(_other.Hasextendedinfo)
294
+ {
295
+ _Init();
296
+ }
297
+
298
+ EiteventInfo(EiteventInfo&& _other) noexcept
299
+ : Core::JSON::Container()
300
+ , Name(std::move(_other.Name))
301
+ , Starttime(std::move(_other.Starttime))
302
+ , Duration(std::move(_other.Duration))
303
+ , Eventid(std::move(_other.Eventid))
304
+ , Shortdescription(std::move(_other.Shortdescription))
305
+ , Hassubtitles(std::move(_other.Hassubtitles))
306
+ , Hasaudiodescription(std::move(_other.Hasaudiodescription))
307
+ , Parentalrating(std::move(_other.Parentalrating))
308
+ , Contentdata(std::move(_other.Contentdata))
309
+ , Hasextendedinfo(std::move(_other.Hasextendedinfo))
310
+ {
311
+ _Init();
312
+ }
313
+
314
+ EiteventInfo& operator=(const EiteventInfo& _rhs)
315
+ {
316
+ Name = _rhs.Name;
317
+ Starttime = _rhs.Starttime;
318
+ Duration = _rhs.Duration;
319
+ Eventid = _rhs.Eventid;
320
+ Shortdescription = _rhs.Shortdescription;
321
+ Hassubtitles = _rhs.Hassubtitles;
322
+ Hasaudiodescription = _rhs.Hasaudiodescription;
323
+ Parentalrating = _rhs.Parentalrating;
324
+ Contentdata = _rhs.Contentdata;
325
+ Hasextendedinfo = _rhs.Hasextendedinfo;
326
+ return (*this);
327
+ }
328
+
329
+ EiteventInfo& operator=(EiteventInfo&& _rhs) noexcept
330
+ {
331
+ Name = std::move(_rhs.Name);
332
+ Starttime = std::move(_rhs.Starttime);
333
+ Duration = std::move(_rhs.Duration);
334
+ Eventid = std::move(_rhs.Eventid);
335
+ Shortdescription = std::move(_rhs.Shortdescription);
336
+ Hassubtitles = std::move(_rhs.Hassubtitles);
337
+ Hasaudiodescription = std::move(_rhs.Hasaudiodescription);
338
+ Parentalrating = std::move(_rhs.Parentalrating);
339
+ Contentdata = std::move(_rhs.Contentdata);
340
+ Hasextendedinfo = std::move(_rhs.Hasextendedinfo);
341
+ return (*this);
342
+ }
343
+
344
+ ~EiteventInfo() = default;
345
+
346
+ public:
347
+ bool IsDataValid() const
348
+ {
349
+ return ((Name.IsSet() == true) && (Starttime.IsSet() == true) && (Duration.IsSet() == true) && (Eventid.IsSet() == true) && (Shortdescription.IsSet() == true) && (Hassubtitles.IsSet() == true) && (Hasaudiodescription.IsSet() == true) && (Parentalrating.IsSet() == true) && (Contentdata.IsSet() == true) && (Hasextendedinfo.IsSet() == true));
350
+ }
351
+
352
+ private:
353
+ void _Init()
354
+ {
355
+ Add(_T("name"), &Name);
356
+ Add(_T("starttime"), &Starttime);
357
+ Add(_T("duration"), &Duration);
358
+ Add(_T("eventid"), &Eventid);
359
+ Add(_T("shortdescription"), &Shortdescription);
360
+ Add(_T("hassubtitles"), &Hassubtitles);
361
+ Add(_T("hasaudiodescription"), &Hasaudiodescription);
362
+ Add(_T("parentalrating"), &Parentalrating);
363
+ Add(_T("contentdata"), &Contentdata);
364
+ Add(_T("hasextendedinfo"), &Hasextendedinfo);
365
+ }
366
+
367
+ public:
368
+ Core::JSON::String Name;
369
+ Core::JSON::DecUInt32 Starttime;
370
+ Core::JSON::DecUInt32 Duration;
371
+ Core::JSON::DecUInt16 Eventid;
372
+ Core::JSON::String Shortdescription;
373
+ Core::JSON::Boolean Hassubtitles;
374
+ Core::JSON::Boolean Hasaudiodescription;
375
+ Core::JSON::DecUInt8 Parentalrating;
376
+ Core::JSON::ArrayType<Core::JSON::DecUInt8> Contentdata;
377
+ Core::JSON::Boolean Hasextendedinfo;
378
+ }; // class EiteventInfo
379
+
380
+ class LnbsettingsInfo : public Core::JSON::Container {
381
+ public:
382
+ LnbsettingsInfo()
383
+ : Core::JSON::Container()
384
+ {
385
+ _Init();
386
+ }
387
+
388
+ LnbsettingsInfo(const LnbsettingsInfo& _other)
389
+ : Core::JSON::Container()
390
+ , Name(_other.Name)
391
+ , Type(_other.Type)
392
+ , Power(_other.Power)
393
+ , Diseqc_tone(_other.Diseqc_tone)
394
+ , Diseqc_cswitch(_other.Diseqc_cswitch)
395
+ , Is22k(_other.Is22k)
396
+ , Is12v(_other.Is12v)
397
+ , Ispulseposition(_other.Ispulseposition)
398
+ , Isdiseqcposition(_other.Isdiseqcposition)
399
+ , Issmatv(_other.Issmatv)
400
+ , Diseqcrepeats(_other.Diseqcrepeats)
401
+ , U_switch(_other.U_switch)
402
+ , Unicablechannel(_other.Unicablechannel)
403
+ , Unicablefreq(_other.Unicablefreq)
404
+ {
405
+ _Init();
406
+ }
407
+
408
+ LnbsettingsInfo(LnbsettingsInfo&& _other) noexcept
409
+ : Core::JSON::Container()
410
+ , Name(std::move(_other.Name))
411
+ , Type(std::move(_other.Type))
412
+ , Power(std::move(_other.Power))
413
+ , Diseqc_tone(std::move(_other.Diseqc_tone))
414
+ , Diseqc_cswitch(std::move(_other.Diseqc_cswitch))
415
+ , Is22k(std::move(_other.Is22k))
416
+ , Is12v(std::move(_other.Is12v))
417
+ , Ispulseposition(std::move(_other.Ispulseposition))
418
+ , Isdiseqcposition(std::move(_other.Isdiseqcposition))
419
+ , Issmatv(std::move(_other.Issmatv))
420
+ , Diseqcrepeats(std::move(_other.Diseqcrepeats))
421
+ , U_switch(std::move(_other.U_switch))
422
+ , Unicablechannel(std::move(_other.Unicablechannel))
423
+ , Unicablefreq(std::move(_other.Unicablefreq))
424
+ {
425
+ _Init();
426
+ }
427
+
428
+ LnbsettingsInfo& operator=(const LnbsettingsInfo& _rhs)
429
+ {
430
+ Name = _rhs.Name;
431
+ Type = _rhs.Type;
432
+ Power = _rhs.Power;
433
+ Diseqc_tone = _rhs.Diseqc_tone;
434
+ Diseqc_cswitch = _rhs.Diseqc_cswitch;
435
+ Is22k = _rhs.Is22k;
436
+ Is12v = _rhs.Is12v;
437
+ Ispulseposition = _rhs.Ispulseposition;
438
+ Isdiseqcposition = _rhs.Isdiseqcposition;
439
+ Issmatv = _rhs.Issmatv;
440
+ Diseqcrepeats = _rhs.Diseqcrepeats;
441
+ U_switch = _rhs.U_switch;
442
+ Unicablechannel = _rhs.Unicablechannel;
443
+ if (_rhs.Unicablefreq != 0) {
444
+ Unicablefreq = _rhs.Unicablefreq;
445
+ }
446
+ return (*this);
447
+ }
448
+
449
+ LnbsettingsInfo& operator=(LnbsettingsInfo&& _rhs) noexcept
450
+ {
451
+ Name = std::move(_rhs.Name);
452
+ Type = std::move(_rhs.Type);
453
+ Power = std::move(_rhs.Power);
454
+ Diseqc_tone = std::move(_rhs.Diseqc_tone);
455
+ Diseqc_cswitch = std::move(_rhs.Diseqc_cswitch);
456
+ Is22k = std::move(_rhs.Is22k);
457
+ Is12v = std::move(_rhs.Is12v);
458
+ Ispulseposition = std::move(_rhs.Ispulseposition);
459
+ Isdiseqcposition = std::move(_rhs.Isdiseqcposition);
460
+ Issmatv = std::move(_rhs.Issmatv);
461
+ Diseqcrepeats = std::move(_rhs.Diseqcrepeats);
462
+ U_switch = std::move(_rhs.U_switch);
463
+ Unicablechannel = std::move(_rhs.Unicablechannel);
464
+ Unicablefreq = std::move(_rhs.Unicablefreq);
465
+ return (*this);
466
+ }
467
+
468
+ ~LnbsettingsInfo() = default;
469
+
470
+ public:
471
+ bool IsDataValid() const
472
+ {
473
+ return ((Name.IsSet() == true) && (Type.IsSet() == true) && (Power.IsSet() == true) && (Diseqc_tone.IsSet() == true) && (Diseqc_cswitch.IsSet() == true) && (Is22k.IsSet() == true) && (Is12v.IsSet() == true) && (Ispulseposition.IsSet() == true) && (Isdiseqcposition.IsSet() == true) && (Issmatv.IsSet() == true) && (Diseqcrepeats.IsSet() == true) && (U_switch.IsSet() == true) && (Unicablechannel.IsSet() == true));
474
+ }
475
+
476
+ private:
477
+ void _Init()
478
+ {
479
+ Add(_T("name"), &Name);
480
+ Add(_T("type"), &Type);
481
+ Add(_T("power"), &Power);
482
+ Add(_T("diseqc_tone"), &Diseqc_tone);
483
+ Add(_T("diseqc_cswitch"), &Diseqc_cswitch);
484
+ Add(_T("is22k"), &Is22k);
485
+ Add(_T("is12v"), &Is12v);
486
+ Add(_T("ispulseposition"), &Ispulseposition);
487
+ Add(_T("isdiseqcposition"), &Isdiseqcposition);
488
+ Add(_T("issmatv"), &Issmatv);
489
+ Add(_T("diseqcrepeats"), &Diseqcrepeats);
490
+ Add(_T("u_switch"), &U_switch);
491
+ Add(_T("unicablechannel"), &Unicablechannel);
492
+ Add(_T("unicablefreq"), &Unicablefreq);
493
+ }
494
+
495
+ public:
496
+ Core::JSON::String Name;
497
+ Core::JSON::EnumType<LnbtypeType> Type;
498
+ Core::JSON::EnumType<LnbpowerType> Power;
499
+ Core::JSON::EnumType<Diseqc_toneType> Diseqc_tone;
500
+ Core::JSON::EnumType<Diseqc_cswitchType> Diseqc_cswitch;
501
+ Core::JSON::Boolean Is22k;
502
+ Core::JSON::Boolean Is12v;
503
+ Core::JSON::Boolean Ispulseposition;
504
+ Core::JSON::Boolean Isdiseqcposition;
505
+ Core::JSON::Boolean Issmatv;
506
+ Core::JSON::DecUInt8 Diseqcrepeats;
507
+ Core::JSON::DecUInt8 U_switch;
508
+ Core::JSON::DecUInt8 Unicablechannel;
509
+ Core::JSON::DecUInt32 Unicablefreq;
510
+ }; // class LnbsettingsInfo
511
+
512
+ class SatellitesettingsInfo : public Core::JSON::Container {
513
+ public:
514
+ SatellitesettingsInfo()
515
+ : Core::JSON::Container()
516
+ {
517
+ _Init();
518
+ }
519
+
520
+ SatellitesettingsInfo(const SatellitesettingsInfo& _other)
521
+ : Core::JSON::Container()
522
+ , Name(_other.Name)
523
+ , Longitude(_other.Longitude)
524
+ , Lnb(_other.Lnb)
525
+ {
526
+ _Init();
527
+ }
528
+
529
+ SatellitesettingsInfo(SatellitesettingsInfo&& _other) noexcept
530
+ : Core::JSON::Container()
531
+ , Name(std::move(_other.Name))
532
+ , Longitude(std::move(_other.Longitude))
533
+ , Lnb(std::move(_other.Lnb))
534
+ {
535
+ _Init();
536
+ }
537
+
538
+ SatellitesettingsInfo& operator=(const SatellitesettingsInfo& _rhs)
539
+ {
540
+ Name = _rhs.Name;
541
+ Longitude = _rhs.Longitude;
542
+ Lnb = _rhs.Lnb;
543
+ return (*this);
544
+ }
545
+
546
+ SatellitesettingsInfo& operator=(SatellitesettingsInfo&& _rhs) noexcept
547
+ {
548
+ Name = std::move(_rhs.Name);
549
+ Longitude = std::move(_rhs.Longitude);
550
+ Lnb = std::move(_rhs.Lnb);
551
+ return (*this);
552
+ }
553
+
554
+ ~SatellitesettingsInfo() = default;
555
+
556
+ public:
557
+ bool IsDataValid() const
558
+ {
559
+ return ((Name.IsSet() == true) && (Longitude.IsSet() == true) && (Lnb.IsSet() == true));
560
+ }
561
+
562
+ private:
563
+ void _Init()
564
+ {
565
+ Add(_T("name"), &Name);
566
+ Add(_T("longitude"), &Longitude);
567
+ Add(_T("lnb"), &Lnb);
568
+ }
569
+
570
+ public:
571
+ Core::JSON::String Name;
572
+ Core::JSON::DecSInt16 Longitude; // Longitudinal location of the satellite in 1/10ths of a degree, with an east coordinate given as a positive value and a west coordinate as negative. Astra 28.2E would be defined as 282 and Eutelsat 5.0W would be -50.
573
+ Core::JSON::String Lnb;
574
+ }; // class SatellitesettingsInfo
575
+
576
+ class ServiceInfo : public Core::JSON::Container {
577
+ public:
578
+ ServiceInfo()
579
+ : Core::JSON::Container()
580
+ {
581
+ _Init();
582
+ }
583
+
584
+ ServiceInfo(const ServiceInfo& _other)
585
+ : Core::JSON::Container()
586
+ , Fullname(_other.Fullname)
587
+ , Shortname(_other.Shortname)
588
+ , Dvburi(_other.Dvburi)
589
+ , Servicetype(_other.Servicetype)
590
+ , Lcn(_other.Lcn)
591
+ , Scrambled(_other.Scrambled)
592
+ , Hascadescriptor(_other.Hascadescriptor)
593
+ , Hidden(_other.Hidden)
594
+ , Selectable(_other.Selectable)
595
+ , Runningstatus(_other.Runningstatus)
596
+ {
597
+ _Init();
598
+ }
599
+
600
+ ServiceInfo(ServiceInfo&& _other) noexcept
601
+ : Core::JSON::Container()
602
+ , Fullname(std::move(_other.Fullname))
603
+ , Shortname(std::move(_other.Shortname))
604
+ , Dvburi(std::move(_other.Dvburi))
605
+ , Servicetype(std::move(_other.Servicetype))
606
+ , Lcn(std::move(_other.Lcn))
607
+ , Scrambled(std::move(_other.Scrambled))
608
+ , Hascadescriptor(std::move(_other.Hascadescriptor))
609
+ , Hidden(std::move(_other.Hidden))
610
+ , Selectable(std::move(_other.Selectable))
611
+ , Runningstatus(std::move(_other.Runningstatus))
612
+ {
613
+ _Init();
614
+ }
615
+
616
+ ServiceInfo& operator=(const ServiceInfo& _rhs)
617
+ {
618
+ Fullname = _rhs.Fullname;
619
+ Shortname = _rhs.Shortname;
620
+ Dvburi = _rhs.Dvburi;
621
+ Servicetype = _rhs.Servicetype;
622
+ Lcn = _rhs.Lcn;
623
+ Scrambled = _rhs.Scrambled;
624
+ Hascadescriptor = _rhs.Hascadescriptor;
625
+ Hidden = _rhs.Hidden;
626
+ Selectable = _rhs.Selectable;
627
+ Runningstatus = _rhs.Runningstatus;
628
+ return (*this);
629
+ }
630
+
631
+ ServiceInfo& operator=(ServiceInfo&& _rhs) noexcept
632
+ {
633
+ Fullname = std::move(_rhs.Fullname);
634
+ Shortname = std::move(_rhs.Shortname);
635
+ Dvburi = std::move(_rhs.Dvburi);
636
+ Servicetype = std::move(_rhs.Servicetype);
637
+ Lcn = std::move(_rhs.Lcn);
638
+ Scrambled = std::move(_rhs.Scrambled);
639
+ Hascadescriptor = std::move(_rhs.Hascadescriptor);
640
+ Hidden = std::move(_rhs.Hidden);
641
+ Selectable = std::move(_rhs.Selectable);
642
+ Runningstatus = std::move(_rhs.Runningstatus);
643
+ return (*this);
644
+ }
645
+
646
+ ~ServiceInfo() = default;
647
+
648
+ public:
649
+ bool IsDataValid() const
650
+ {
651
+ return ((Fullname.IsSet() == true) && (Shortname.IsSet() == true) && (Dvburi.IsSet() == true) && (Servicetype.IsSet() == true) && (Lcn.IsSet() == true) && (Scrambled.IsSet() == true) && (Hascadescriptor.IsSet() == true) && (Hidden.IsSet() == true) && (Selectable.IsSet() == true) && (Runningstatus.IsSet() == true));
652
+ }
653
+
654
+ private:
655
+ void _Init()
656
+ {
657
+ Add(_T("fullname"), &Fullname);
658
+ Add(_T("shortname"), &Shortname);
659
+ Add(_T("dvburi"), &Dvburi);
660
+ Add(_T("servicetype"), &Servicetype);
661
+ Add(_T("lcn"), &Lcn);
662
+ Add(_T("scrambled"), &Scrambled);
663
+ Add(_T("hascadescriptor"), &Hascadescriptor);
664
+ Add(_T("hidden"), &Hidden);
665
+ Add(_T("selectable"), &Selectable);
666
+ Add(_T("runningstatus"), &Runningstatus);
667
+ }
668
+
669
+ public:
670
+ Core::JSON::String Fullname;
671
+ Core::JSON::String Shortname;
672
+ Core::JSON::String Dvburi;
673
+ Core::JSON::EnumType<ServicetypeType> Servicetype;
674
+ Core::JSON::DecUInt16 Lcn;
675
+ Core::JSON::Boolean Scrambled;
676
+ Core::JSON::Boolean Hascadescriptor;
677
+ Core::JSON::Boolean Hidden;
678
+ Core::JSON::Boolean Selectable;
679
+ Core::JSON::EnumType<RunningstatusType> Runningstatus;
680
+ }; // class ServiceInfo
681
+
682
+ class ServiceupdatedParamsInfo : public Core::JSON::Container {
683
+ public:
684
+ ServiceupdatedParamsInfo()
685
+ : Core::JSON::Container()
686
+ {
687
+ Add(_T("eventtype"), &Eventtype);
688
+ Add(_T("service"), &Service);
689
+ }
690
+
691
+ ServiceupdatedParamsInfo(const ServiceupdatedParamsInfo&) = delete;
692
+ ServiceupdatedParamsInfo(ServiceupdatedParamsInfo&&) noexcept = delete;
693
+
694
+ ServiceupdatedParamsInfo& operator=(const ServiceupdatedParamsInfo&) = delete;
695
+ ServiceupdatedParamsInfo& operator=(ServiceupdatedParamsInfo&&) noexcept = delete;
696
+
697
+ ~ServiceupdatedParamsInfo() = default;
698
+
699
+ public:
700
+ bool IsDataValid() const
701
+ {
702
+ return ((Eventtype.IsSet() == true) && ((Service.IsSet() == true) && (Service.IsDataValid() == true)));
703
+ }
704
+
705
+ public:
706
+ Core::JSON::EnumType<EventtypeType> Eventtype;
707
+ ServiceInfo Service;
708
+ }; // class ServiceupdatedParamsInfo
709
+
710
+ class TransportInfo : public Core::JSON::Container {
711
+ public:
712
+ TransportInfo()
713
+ : Core::JSON::Container()
714
+ {
715
+ Add(_T("tunertype"), &Tunertype);
716
+ Add(_T("originalnetworkid"), &Originalnetworkid);
717
+ Add(_T("transportid"), &Transportid);
718
+ Add(_T("strength"), &Strength);
719
+ Add(_T("quality"), &Quality);
720
+ Add(_T("dvbctuningparams"), &Dvbctuningparams);
721
+ Add(_T("dvbstuningparams"), &Dvbstuningparams);
722
+ Add(_T("dvbttuningparams"), &Dvbttuningparams);
723
+ }
724
+
725
+ TransportInfo(const TransportInfo&) = delete;
726
+ TransportInfo(TransportInfo&&) noexcept = delete;
727
+
728
+ TransportInfo& operator=(const TransportInfo&) = delete;
729
+ TransportInfo& operator=(TransportInfo&&) noexcept = delete;
730
+
731
+ ~TransportInfo() = default;
732
+
733
+ public:
734
+ bool IsDataValid() const
735
+ {
736
+ return ((Tunertype.IsSet() == true) && (Originalnetworkid.IsSet() == true) && (Transportid.IsSet() == true) && (Strength.IsSet() == true) && (Quality.IsSet() == true) && ((Dvbctuningparams.IsSet() == false) || (Dvbctuningparams.IsDataValid() == true)) && ((Dvbstuningparams.IsSet() == false) || (Dvbstuningparams.IsDataValid() == true)) && ((Dvbttuningparams.IsSet() == false) || (Dvbttuningparams.IsDataValid() == true)));
737
+ }
738
+
739
+ public:
740
+ Core::JSON::EnumType<TunertypeType> Tunertype;
741
+ Core::JSON::DecUInt16 Originalnetworkid;
742
+ Core::JSON::DecUInt16 Transportid;
743
+ Core::JSON::DecUInt8 Strength;
744
+ Core::JSON::DecUInt8 Quality;
745
+ DvbctuningparamsInfo Dvbctuningparams;
746
+ DvbstuningparamsInfo Dvbstuningparams;
747
+ DvbttuningparamsInfo Dvbttuningparams;
748
+ }; // class TransportInfo
749
+
750
+ // Method params/result classes
751
+ //
752
+
753
+ class CountryconfigData : public Core::JSON::Container {
754
+ public:
755
+ CountryconfigData()
756
+ : Core::JSON::Container()
757
+ {
758
+ _Init();
759
+ }
760
+
761
+ CountryconfigData(const CountryconfigData& _other)
762
+ : Core::JSON::Container()
763
+ , Name(_other.Name)
764
+ , Code(_other.Code)
765
+ {
766
+ _Init();
767
+ }
768
+
769
+ CountryconfigData(CountryconfigData&& _other) noexcept
770
+ : Core::JSON::Container()
771
+ , Name(std::move(_other.Name))
772
+ , Code(std::move(_other.Code))
773
+ {
774
+ _Init();
775
+ }
776
+
777
+ CountryconfigData& operator=(const CountryconfigData& _rhs)
778
+ {
779
+ Name = _rhs.Name;
780
+ Code = _rhs.Code;
781
+ return (*this);
782
+ }
783
+
784
+ CountryconfigData& operator=(CountryconfigData&& _rhs) noexcept
785
+ {
786
+ Name = std::move(_rhs.Name);
787
+ Code = std::move(_rhs.Code);
788
+ return (*this);
789
+ }
790
+
791
+ ~CountryconfigData() = default;
792
+
793
+ public:
794
+ bool IsDataValid() const
795
+ {
796
+ return ((Name.IsSet() == true) && (Code.IsSet() == true));
797
+ }
798
+
799
+ private:
800
+ void _Init()
801
+ {
802
+ Add(_T("name"), &Name);
803
+ Add(_T("code"), &Code);
804
+ }
805
+
806
+ public:
807
+ Core::JSON::String Name; // Name of the country as a UTF-8 string
808
+ Core::JSON::DecUInt32 Code; // 3-character ISO code for the country
809
+ }; // class CountryconfigData
810
+
811
+ class EventchangedParamsData : public Core::JSON::Container {
812
+ public:
813
+ EventchangedParamsData()
814
+ : Core::JSON::Container()
815
+ {
816
+ Add(_T("eventtype"), &Eventtype);
817
+ Add(_T("service"), &Service);
818
+ Add(_T("event"), &Event);
819
+ }
820
+
821
+ EventchangedParamsData(const EventchangedParamsData&) = delete;
822
+ EventchangedParamsData(EventchangedParamsData&&) noexcept = delete;
823
+
824
+ EventchangedParamsData& operator=(const EventchangedParamsData&) = delete;
825
+ EventchangedParamsData& operator=(EventchangedParamsData&&) noexcept = delete;
826
+
827
+ ~EventchangedParamsData() = default;
828
+
829
+ public:
830
+ bool IsDataValid() const
831
+ {
832
+ return ((Eventtype.IsSet() == true) && ((Service.IsSet() == true) && (Service.IsDataValid() == true)) && ((Event.IsSet() == true) && (Event.IsDataValid() == true)));
833
+ }
834
+
835
+ public:
836
+ Core::JSON::EnumType<EventtypeType> Eventtype;
837
+ ServiceInfo Service;
838
+ EiteventInfo Event;
839
+ }; // class EventchangedParamsData
840
+
841
+ class ExtendedeventinfoData : public Core::JSON::Container {
842
+ public:
843
+ class ExtendedeventitemData : public Core::JSON::Container {
844
+ public:
845
+ ExtendedeventitemData()
846
+ : Core::JSON::Container()
847
+ {
848
+ _Init();
849
+ }
850
+
851
+ ExtendedeventitemData(const ExtendedeventitemData& _other)
852
+ : Core::JSON::Container()
853
+ , Description(_other.Description)
854
+ , Item(_other.Item)
855
+ {
856
+ _Init();
857
+ }
858
+
859
+ ExtendedeventitemData(ExtendedeventitemData&& _other) noexcept
860
+ : Core::JSON::Container()
861
+ , Description(std::move(_other.Description))
862
+ , Item(std::move(_other.Item))
863
+ {
864
+ _Init();
865
+ }
866
+
867
+ ExtendedeventitemData& operator=(const ExtendedeventitemData& _rhs)
868
+ {
869
+ Description = _rhs.Description;
870
+ Item = _rhs.Item;
871
+ return (*this);
872
+ }
873
+
874
+ ExtendedeventitemData& operator=(ExtendedeventitemData&& _rhs) noexcept
875
+ {
876
+ Description = std::move(_rhs.Description);
877
+ Item = std::move(_rhs.Item);
878
+ return (*this);
879
+ }
880
+
881
+ ~ExtendedeventitemData() = default;
882
+
883
+ public:
884
+ bool IsDataValid() const
885
+ {
886
+ return ((Description.IsSet() == true) && (Item.IsSet() == true));
887
+ }
888
+
889
+ private:
890
+ void _Init()
891
+ {
892
+ Add(_T("description"), &Description);
893
+ Add(_T("item"), &Item);
894
+ }
895
+
896
+ public:
897
+ Core::JSON::String Description;
898
+ Core::JSON::String Item;
899
+ }; // class ExtendedeventitemData
900
+
901
+ ExtendedeventinfoData()
902
+ : Core::JSON::Container()
903
+ {
904
+ Add(_T("description"), &Description);
905
+ Add(_T("items"), &Items);
906
+ }
907
+
908
+ ExtendedeventinfoData(const ExtendedeventinfoData&) = delete;
909
+ ExtendedeventinfoData(ExtendedeventinfoData&&) noexcept = delete;
910
+
911
+ ExtendedeventinfoData& operator=(const ExtendedeventinfoData&) = delete;
912
+ ExtendedeventinfoData& operator=(ExtendedeventinfoData&&) noexcept = delete;
913
+
914
+ ~ExtendedeventinfoData() = default;
915
+
916
+ public:
917
+ bool IsDataValid() const
918
+ {
919
+ return (true);
920
+ }
921
+
922
+ public:
923
+ Core::JSON::String Description;
924
+ Core::JSON::ArrayType<ExtendedeventinfoData::ExtendedeventitemData> Items;
925
+ }; // class ExtendedeventinfoData
926
+
927
+ class FinishServiceSearchParamsData : public Core::JSON::Container {
928
+ public:
929
+ FinishServiceSearchParamsData()
930
+ : Core::JSON::Container()
931
+ {
932
+ Add(_T("tunertype"), &Tunertype);
933
+ Add(_T("savechanges"), &Savechanges);
934
+ }
935
+
936
+ FinishServiceSearchParamsData(const FinishServiceSearchParamsData&) = delete;
937
+ FinishServiceSearchParamsData(FinishServiceSearchParamsData&&) noexcept = delete;
938
+
939
+ FinishServiceSearchParamsData& operator=(const FinishServiceSearchParamsData&) = delete;
940
+ FinishServiceSearchParamsData& operator=(FinishServiceSearchParamsData&&) noexcept = delete;
941
+
942
+ ~FinishServiceSearchParamsData() = default;
943
+
944
+ public:
945
+ bool IsDataValid() const
946
+ {
947
+ return ((Tunertype.IsSet() == true) && (Savechanges.IsSet() == true));
948
+ }
949
+
950
+ public:
951
+ Core::JSON::EnumType<TunertypeType> Tunertype;
952
+ Core::JSON::Boolean Savechanges;
953
+ }; // class FinishServiceSearchParamsData
954
+
955
+ class NowNextEventsData : public Core::JSON::Container {
956
+ public:
957
+ NowNextEventsData()
958
+ : Core::JSON::Container()
959
+ {
960
+ Add(_T("now"), &Now);
961
+ Add(_T("next"), &Next);
962
+ }
963
+
964
+ NowNextEventsData(const NowNextEventsData&) = delete;
965
+ NowNextEventsData(NowNextEventsData&&) noexcept = delete;
966
+
967
+ NowNextEventsData& operator=(const NowNextEventsData&) = delete;
968
+ NowNextEventsData& operator=(NowNextEventsData&&) noexcept = delete;
969
+
970
+ ~NowNextEventsData() = default;
971
+
972
+ public:
973
+ bool IsDataValid() const
974
+ {
975
+ return (((Now.IsSet() == false) || (Now.IsDataValid() == true)) && ((Next.IsSet() == false) || (Next.IsDataValid() == true)));
976
+ }
977
+
978
+ public:
979
+ EiteventInfo Now;
980
+ EiteventInfo Next;
981
+ }; // class NowNextEventsData
982
+
983
+ class SearchstatusParamsData : public Core::JSON::Container {
984
+ public:
985
+ SearchstatusParamsData()
986
+ : Core::JSON::Container()
987
+ {
988
+ Add(_T("handle"), &Handle);
989
+ Add(_T("eventtype"), &Eventtype);
990
+ Add(_T("finished"), &Finished);
991
+ Add(_T("progress"), &Progress);
992
+ Add(_T("transport"), &Transport);
993
+ }
994
+
995
+ SearchstatusParamsData(const SearchstatusParamsData&) = delete;
996
+ SearchstatusParamsData(SearchstatusParamsData&&) noexcept = delete;
997
+
998
+ SearchstatusParamsData& operator=(const SearchstatusParamsData&) = delete;
999
+ SearchstatusParamsData& operator=(SearchstatusParamsData&&) noexcept = delete;
1000
+
1001
+ ~SearchstatusParamsData() = default;
1002
+
1003
+ public:
1004
+ bool IsDataValid() const
1005
+ {
1006
+ return ((Handle.IsSet() == true) && (Eventtype.IsSet() == true) && (Finished.IsSet() == true) && (Progress.IsSet() == true) && ((Transport.IsSet() == false) || (Transport.IsDataValid() == true)));
1007
+ }
1008
+
1009
+ public:
1010
+ Core::JSON::DecUInt32 Handle;
1011
+ Core::JSON::EnumType<EventtypeType> Eventtype;
1012
+ Core::JSON::Boolean Finished;
1013
+ Core::JSON::DecUInt8 Progress;
1014
+ TransportInfo Transport;
1015
+ }; // class SearchstatusParamsData
1016
+
1017
+ class ComponentData : public Core::JSON::Container {
1018
+ public:
1019
+ enum class TypeType : uint8_t {
1020
+ VIDEO,
1021
+ AUDIO,
1022
+ SUBTITLES,
1023
+ TELETEXT,
1024
+ DATA
1025
+ };
1026
+
1027
+ class AudioData : public Core::JSON::Container {
1028
+ public:
1029
+ enum class TypeType : uint8_t {
1030
+ UNDEFINED,
1031
+ CLEAN,
1032
+ HEARINGIMPAIRED,
1033
+ VISUALLYIMPAIRED,
1034
+ UNKNOWN
1035
+ };
1036
+
1037
+ enum class ModeType : uint8_t {
1038
+ MONO,
1039
+ LEFT,
1040
+ RIGHT,
1041
+ STEREO,
1042
+ MULTICHANNEL,
1043
+ UNDEFINED
1044
+ };
1045
+
1046
+ AudioData()
1047
+ : Core::JSON::Container()
1048
+ {
1049
+ _Init();
1050
+ }
1051
+
1052
+ AudioData(const AudioData& _other)
1053
+ : Core::JSON::Container()
1054
+ , Codec(_other.Codec)
1055
+ , Language(_other.Language)
1056
+ , Type(_other.Type)
1057
+ , Mode(_other.Mode)
1058
+ {
1059
+ _Init();
1060
+ }
1061
+
1062
+ AudioData(AudioData&& _other) noexcept
1063
+ : Core::JSON::Container()
1064
+ , Codec(std::move(_other.Codec))
1065
+ , Language(std::move(_other.Language))
1066
+ , Type(std::move(_other.Type))
1067
+ , Mode(std::move(_other.Mode))
1068
+ {
1069
+ _Init();
1070
+ }
1071
+
1072
+ AudioData& operator=(const AudioData& _rhs)
1073
+ {
1074
+ Codec = _rhs.Codec;
1075
+ Language = _rhs.Language;
1076
+ Type = _rhs.Type;
1077
+ Mode = _rhs.Mode;
1078
+ return (*this);
1079
+ }
1080
+
1081
+ AudioData& operator=(AudioData&& _rhs) noexcept
1082
+ {
1083
+ Codec = std::move(_rhs.Codec);
1084
+ Language = std::move(_rhs.Language);
1085
+ Type = std::move(_rhs.Type);
1086
+ Mode = std::move(_rhs.Mode);
1087
+ return (*this);
1088
+ }
1089
+
1090
+ ~AudioData() = default;
1091
+
1092
+ public:
1093
+ bool IsDataValid() const
1094
+ {
1095
+ return ((Language.IsSet() == true) && (Type.IsSet() == true) && (Mode.IsSet() == true));
1096
+ }
1097
+
1098
+ private:
1099
+ void _Init()
1100
+ {
1101
+ Add(_T("codec"), &Codec);
1102
+ Add(_T("language"), &Language);
1103
+ Add(_T("type"), &Type);
1104
+ Add(_T("mode"), &Mode);
1105
+ }
1106
+
1107
+ public:
1108
+ Core::JSON::EnumType<CodecType> Codec;
1109
+ Core::JSON::String Language;
1110
+ Core::JSON::EnumType<ComponentData::AudioData::TypeType> Type;
1111
+ Core::JSON::EnumType<ComponentData::AudioData::ModeType> Mode;
1112
+ }; // class AudioData
1113
+
1114
+ class CodecData : public Core::JSON::Container {
1115
+ public:
1116
+ CodecData()
1117
+ : Core::JSON::Container()
1118
+ {
1119
+ _Init();
1120
+ }
1121
+
1122
+ CodecData(const CodecData& _other)
1123
+ : Core::JSON::Container()
1124
+ , Codec(_other.Codec)
1125
+ {
1126
+ _Init();
1127
+ }
1128
+
1129
+ CodecData(CodecData&& _other) noexcept
1130
+ : Core::JSON::Container()
1131
+ , Codec(std::move(_other.Codec))
1132
+ {
1133
+ _Init();
1134
+ }
1135
+
1136
+ CodecData& operator=(const CodecData& _rhs)
1137
+ {
1138
+ Codec = _rhs.Codec;
1139
+ return (*this);
1140
+ }
1141
+
1142
+ CodecData& operator=(CodecData&& _rhs) noexcept
1143
+ {
1144
+ Codec = std::move(_rhs.Codec);
1145
+ return (*this);
1146
+ }
1147
+
1148
+ ~CodecData() = default;
1149
+
1150
+ public:
1151
+ bool IsDataValid() const
1152
+ {
1153
+ return (Codec.IsSet() == true);
1154
+ }
1155
+
1156
+ private:
1157
+ void _Init()
1158
+ {
1159
+ Add(_T("codec"), &Codec);
1160
+ }
1161
+
1162
+ public:
1163
+ Core::JSON::EnumType<CodecType> Codec;
1164
+ }; // class CodecData
1165
+
1166
+ class SubtitlesData : public Core::JSON::Container {
1167
+ public:
1168
+ enum class FormatType : uint8_t {
1169
+ DEFAULT,
1170
+ E4_3,
1171
+ E16_9,
1172
+ E221_1,
1173
+ HD,
1174
+ HARDOFHEARING,
1175
+ HARDOFHEARING4_3,
1176
+ HARDOFHEARING16_9,
1177
+ HARDOFHEARING221_1,
1178
+ HARDOFHEARINGHD
1179
+ };
1180
+
1181
+ SubtitlesData()
1182
+ : Core::JSON::Container()
1183
+ {
1184
+ _Init();
1185
+ }
1186
+
1187
+ SubtitlesData(const SubtitlesData& _other)
1188
+ : Core::JSON::Container()
1189
+ , Language(_other.Language)
1190
+ , Format(_other.Format)
1191
+ , Compositionpage(_other.Compositionpage)
1192
+ , Ancillarypage(_other.Ancillarypage)
1193
+ {
1194
+ _Init();
1195
+ }
1196
+
1197
+ SubtitlesData(SubtitlesData&& _other) noexcept
1198
+ : Core::JSON::Container()
1199
+ , Language(std::move(_other.Language))
1200
+ , Format(std::move(_other.Format))
1201
+ , Compositionpage(std::move(_other.Compositionpage))
1202
+ , Ancillarypage(std::move(_other.Ancillarypage))
1203
+ {
1204
+ _Init();
1205
+ }
1206
+
1207
+ SubtitlesData& operator=(const SubtitlesData& _rhs)
1208
+ {
1209
+ Language = _rhs.Language;
1210
+ Format = _rhs.Format;
1211
+ Compositionpage = _rhs.Compositionpage;
1212
+ Ancillarypage = _rhs.Ancillarypage;
1213
+ return (*this);
1214
+ }
1215
+
1216
+ SubtitlesData& operator=(SubtitlesData&& _rhs) noexcept
1217
+ {
1218
+ Language = std::move(_rhs.Language);
1219
+ Format = std::move(_rhs.Format);
1220
+ Compositionpage = std::move(_rhs.Compositionpage);
1221
+ Ancillarypage = std::move(_rhs.Ancillarypage);
1222
+ return (*this);
1223
+ }
1224
+
1225
+ ~SubtitlesData() = default;
1226
+
1227
+ public:
1228
+ bool IsDataValid() const
1229
+ {
1230
+ return ((Language.IsSet() == true) && (Format.IsSet() == true) && (Compositionpage.IsSet() == true) && (Ancillarypage.IsSet() == true));
1231
+ }
1232
+
1233
+ private:
1234
+ void _Init()
1235
+ {
1236
+ Add(_T("language"), &Language);
1237
+ Add(_T("format"), &Format);
1238
+ Add(_T("compositionpage"), &Compositionpage);
1239
+ Add(_T("ancillarypage"), &Ancillarypage);
1240
+ }
1241
+
1242
+ public:
1243
+ Core::JSON::String Language;
1244
+ Core::JSON::EnumType<ComponentData::SubtitlesData::FormatType> Format;
1245
+ Core::JSON::DecUInt16 Compositionpage;
1246
+ Core::JSON::DecUInt16 Ancillarypage;
1247
+ }; // class SubtitlesData
1248
+
1249
+ class TeletextData : public Core::JSON::Container {
1250
+ public:
1251
+ TeletextData()
1252
+ : Core::JSON::Container()
1253
+ {
1254
+ _Init();
1255
+ }
1256
+
1257
+ TeletextData(const TeletextData& _other)
1258
+ : Core::JSON::Container()
1259
+ , Language(_other.Language)
1260
+ , Type(_other.Type)
1261
+ , Magazine(_other.Magazine)
1262
+ , Page(_other.Page)
1263
+ {
1264
+ _Init();
1265
+ }
1266
+
1267
+ TeletextData(TeletextData&& _other) noexcept
1268
+ : Core::JSON::Container()
1269
+ , Language(std::move(_other.Language))
1270
+ , Type(std::move(_other.Type))
1271
+ , Magazine(std::move(_other.Magazine))
1272
+ , Page(std::move(_other.Page))
1273
+ {
1274
+ _Init();
1275
+ }
1276
+
1277
+ TeletextData& operator=(const TeletextData& _rhs)
1278
+ {
1279
+ Language = _rhs.Language;
1280
+ Type = _rhs.Type;
1281
+ Magazine = _rhs.Magazine;
1282
+ Page = _rhs.Page;
1283
+ return (*this);
1284
+ }
1285
+
1286
+ TeletextData& operator=(TeletextData&& _rhs) noexcept
1287
+ {
1288
+ Language = std::move(_rhs.Language);
1289
+ Type = std::move(_rhs.Type);
1290
+ Magazine = std::move(_rhs.Magazine);
1291
+ Page = std::move(_rhs.Page);
1292
+ return (*this);
1293
+ }
1294
+
1295
+ ~TeletextData() = default;
1296
+
1297
+ public:
1298
+ bool IsDataValid() const
1299
+ {
1300
+ return ((Language.IsSet() == true) && (Type.IsSet() == true) && (Magazine.IsSet() == true) && (Page.IsSet() == true));
1301
+ }
1302
+
1303
+ private:
1304
+ void _Init()
1305
+ {
1306
+ Add(_T("language"), &Language);
1307
+ Add(_T("type"), &Type);
1308
+ Add(_T("magazine"), &Magazine);
1309
+ Add(_T("page"), &Page);
1310
+ }
1311
+
1312
+ public:
1313
+ Core::JSON::String Language;
1314
+ Core::JSON::DecUInt8 Type;
1315
+ Core::JSON::DecUInt8 Magazine;
1316
+ Core::JSON::DecUInt8 Page;
1317
+ }; // class TeletextData
1318
+
1319
+ ComponentData()
1320
+ : Core::JSON::Container()
1321
+ {
1322
+ _Init();
1323
+ }
1324
+
1325
+ ComponentData(const ComponentData& _other)
1326
+ : Core::JSON::Container()
1327
+ , Type(_other.Type)
1328
+ , Tags(_other.Tags)
1329
+ , Pid(_other.Pid)
1330
+ , Video(_other.Video)
1331
+ , Audio(_other.Audio)
1332
+ , Subtitles(_other.Subtitles)
1333
+ , Teletext(_other.Teletext)
1334
+ {
1335
+ _Init();
1336
+ }
1337
+
1338
+ ComponentData(ComponentData&& _other) noexcept
1339
+ : Core::JSON::Container()
1340
+ , Type(std::move(_other.Type))
1341
+ , Tags(std::move(_other.Tags))
1342
+ , Pid(std::move(_other.Pid))
1343
+ , Video(std::move(_other.Video))
1344
+ , Audio(std::move(_other.Audio))
1345
+ , Subtitles(std::move(_other.Subtitles))
1346
+ , Teletext(std::move(_other.Teletext))
1347
+ {
1348
+ _Init();
1349
+ }
1350
+
1351
+ ComponentData& operator=(const ComponentData& _rhs)
1352
+ {
1353
+ Type = _rhs.Type;
1354
+ Tags = _rhs.Tags;
1355
+ Pid = _rhs.Pid;
1356
+ Video = _rhs.Video;
1357
+ Audio = _rhs.Audio;
1358
+ Subtitles = _rhs.Subtitles;
1359
+ Teletext = _rhs.Teletext;
1360
+ return (*this);
1361
+ }
1362
+
1363
+ ComponentData& operator=(ComponentData&& _rhs) noexcept
1364
+ {
1365
+ Type = std::move(_rhs.Type);
1366
+ Tags = std::move(_rhs.Tags);
1367
+ Pid = std::move(_rhs.Pid);
1368
+ Video = std::move(_rhs.Video);
1369
+ Audio = std::move(_rhs.Audio);
1370
+ Subtitles = std::move(_rhs.Subtitles);
1371
+ Teletext = std::move(_rhs.Teletext);
1372
+ return (*this);
1373
+ }
1374
+
1375
+ ~ComponentData() = default;
1376
+
1377
+ public:
1378
+ bool IsDataValid() const
1379
+ {
1380
+ return ((Type.IsSet() == true) && (Pid.IsSet() == true) && ((Video.IsSet() == false) || (Video.IsDataValid() == true)) && ((Audio.IsSet() == false) || (Audio.IsDataValid() == true)) && ((Subtitles.IsSet() == false) || (Subtitles.IsDataValid() == true)) && ((Teletext.IsSet() == false) || (Teletext.IsDataValid() == true)));
1381
+ }
1382
+
1383
+ private:
1384
+ void _Init()
1385
+ {
1386
+ Add(_T("type"), &Type);
1387
+ Add(_T("tags"), &Tags);
1388
+ Add(_T("pid"), &Pid);
1389
+ Add(_T("video"), &Video);
1390
+ Add(_T("audio"), &Audio);
1391
+ Add(_T("subtitles"), &Subtitles);
1392
+ Add(_T("teletext"), &Teletext);
1393
+ }
1394
+
1395
+ public:
1396
+ Core::JSON::EnumType<ComponentData::TypeType> Type;
1397
+ Core::JSON::ArrayType<Core::JSON::DecUInt8> Tags;
1398
+ Core::JSON::DecUInt16 Pid;
1399
+ ComponentData::CodecData Video;
1400
+ ComponentData::AudioData Audio;
1401
+ ComponentData::SubtitlesData Subtitles;
1402
+ ComponentData::TeletextData Teletext;
1403
+ }; // class ComponentData
1404
+
1405
+ class SignalInfoData : public Core::JSON::Container {
1406
+ public:
1407
+ SignalInfoData()
1408
+ : Core::JSON::Container()
1409
+ {
1410
+ Add(_T("locked"), &Locked);
1411
+ Add(_T("strength"), &Strength);
1412
+ Add(_T("quality"), &Quality);
1413
+ }
1414
+
1415
+ SignalInfoData(const SignalInfoData&) = delete;
1416
+ SignalInfoData(SignalInfoData&&) noexcept = delete;
1417
+
1418
+ SignalInfoData& operator=(const SignalInfoData&) = delete;
1419
+ SignalInfoData& operator=(SignalInfoData&&) noexcept = delete;
1420
+
1421
+ ~SignalInfoData() = default;
1422
+
1423
+ public:
1424
+ bool IsDataValid() const
1425
+ {
1426
+ return ((Locked.IsSet() == true) && (Strength.IsSet() == true) && (Quality.IsSet() == true));
1427
+ }
1428
+
1429
+ public:
1430
+ Core::JSON::Boolean Locked;
1431
+ Core::JSON::DecUInt8 Strength;
1432
+ Core::JSON::DecUInt8 Quality;
1433
+ }; // class SignalInfoData
1434
+
1435
+ class StartPlayingParamsData : public Core::JSON::Container {
1436
+ public:
1437
+ StartPlayingParamsData()
1438
+ : Core::JSON::Container()
1439
+ {
1440
+ Add(_T("dvburi"), &Dvburi);
1441
+ Add(_T("lcn"), &Lcn);
1442
+ Add(_T("monitoronly"), &Monitoronly);
1443
+ }
1444
+
1445
+ StartPlayingParamsData(const StartPlayingParamsData&) = delete;
1446
+ StartPlayingParamsData(StartPlayingParamsData&&) noexcept = delete;
1447
+
1448
+ StartPlayingParamsData& operator=(const StartPlayingParamsData&) = delete;
1449
+ StartPlayingParamsData& operator=(StartPlayingParamsData&&) noexcept = delete;
1450
+
1451
+ ~StartPlayingParamsData() = default;
1452
+
1453
+ public:
1454
+ bool IsDataValid() const
1455
+ {
1456
+ return (true);
1457
+ }
1458
+
1459
+ public:
1460
+ Core::JSON::String Dvburi;
1461
+ Core::JSON::DecUInt16 Lcn;
1462
+ Core::JSON::Boolean Monitoronly;
1463
+ }; // class StartPlayingParamsData
1464
+
1465
+ class StartServiceSearchParamsData : public Core::JSON::Container {
1466
+ public:
1467
+ enum class SearchtypeType : uint8_t {
1468
+ FREQUENCY,
1469
+ NETWORK
1470
+ };
1471
+
1472
+ StartServiceSearchParamsData()
1473
+ : Core::JSON::Container()
1474
+ {
1475
+ Add(_T("tunertype"), &Tunertype);
1476
+ Add(_T("searchtype"), &Searchtype);
1477
+ Add(_T("retune"), &Retune);
1478
+ Add(_T("usetuningparams"), &Usetuningparams);
1479
+ Add(_T("dvbstuningparams"), &Dvbstuningparams);
1480
+ Add(_T("dvbctuningparams"), &Dvbctuningparams);
1481
+ Add(_T("dvbttuningparams"), &Dvbttuningparams);
1482
+ }
1483
+
1484
+ StartServiceSearchParamsData(const StartServiceSearchParamsData&) = delete;
1485
+ StartServiceSearchParamsData(StartServiceSearchParamsData&&) noexcept = delete;
1486
+
1487
+ StartServiceSearchParamsData& operator=(const StartServiceSearchParamsData&) = delete;
1488
+ StartServiceSearchParamsData& operator=(StartServiceSearchParamsData&&) noexcept = delete;
1489
+
1490
+ ~StartServiceSearchParamsData() = default;
1491
+
1492
+ public:
1493
+ bool IsDataValid() const
1494
+ {
1495
+ return ((Tunertype.IsSet() == true) && (Searchtype.IsSet() == true) && (Retune.IsSet() == true) && (Usetuningparams.IsSet() == true) && ((Dvbstuningparams.IsSet() == false) || (Dvbstuningparams.IsDataValid() == true)) && ((Dvbctuningparams.IsSet() == false) || (Dvbctuningparams.IsDataValid() == true)) && ((Dvbttuningparams.IsSet() == false) || (Dvbttuningparams.IsDataValid() == true)));
1496
+ }
1497
+
1498
+ public:
1499
+ Core::JSON::EnumType<TunertypeType> Tunertype;
1500
+ Core::JSON::EnumType<StartServiceSearchParamsData::SearchtypeType> Searchtype;
1501
+ Core::JSON::Boolean Retune;
1502
+ Core::JSON::Boolean Usetuningparams;
1503
+ DvbstuningparamsInfo Dvbstuningparams;
1504
+ DvbctuningparamsInfo Dvbctuningparams;
1505
+ DvbttuningparamsInfo Dvbttuningparams;
1506
+ }; // class StartServiceSearchParamsData
1507
+
1508
+ class StatusData : public Core::JSON::Container {
1509
+ public:
1510
+ StatusData()
1511
+ : Core::JSON::Container()
1512
+ {
1513
+ Add(_T("tuner"), &Tuner);
1514
+ Add(_T("demux"), &Demux);
1515
+ Add(_T("pmtpid"), &Pmtpid);
1516
+ Add(_T("dvburi"), &Dvburi);
1517
+ Add(_T("lcn"), &Lcn);
1518
+ }
1519
+
1520
+ StatusData(const StatusData&) = delete;
1521
+ StatusData(StatusData&&) noexcept = delete;
1522
+
1523
+ StatusData& operator=(const StatusData&) = delete;
1524
+ StatusData& operator=(StatusData&&) noexcept = delete;
1525
+
1526
+ ~StatusData() = default;
1527
+
1528
+ public:
1529
+ bool IsDataValid() const
1530
+ {
1531
+ return ((Tuner.IsSet() == true) && (Demux.IsSet() == true) && (Pmtpid.IsSet() == true) && (Dvburi.IsSet() == true) && (Lcn.IsSet() == true));
1532
+ }
1533
+
1534
+ public:
1535
+ Core::JSON::DecUInt8 Tuner;
1536
+ Core::JSON::DecUInt8 Demux;
1537
+ Core::JSON::DecUInt16 Pmtpid;
1538
+ Core::JSON::String Dvburi;
1539
+ Core::JSON::DecUInt16 Lcn;
1540
+ }; // class StatusData
1541
+
1542
+ } // namespace DTV
1543
+
1544
+ POP_WARNING()
1545
+
1546
+ } // namespace JsonData
1547
+
1548
+ // Enum conversion handlers
1549
+ ENUM_CONVERSION_HANDLER(JsonData::DTV::LnbtypeType)
1550
+ ENUM_CONVERSION_HANDLER(JsonData::DTV::LnbpowerType)
1551
+ ENUM_CONVERSION_HANDLER(JsonData::DTV::Diseqc_toneType)
1552
+ ENUM_CONVERSION_HANDLER(JsonData::DTV::Diseqc_cswitchType)
1553
+ ENUM_CONVERSION_HANDLER(JsonData::DTV::TunertypeType)
1554
+ ENUM_CONVERSION_HANDLER(JsonData::DTV::StartServiceSearchParamsData::SearchtypeType)
1555
+ ENUM_CONVERSION_HANDLER(JsonData::DTV::PolarityType)
1556
+ ENUM_CONVERSION_HANDLER(JsonData::DTV::FecType)
1557
+ ENUM_CONVERSION_HANDLER(JsonData::DTV::DvbsmodulationType)
1558
+ ENUM_CONVERSION_HANDLER(JsonData::DTV::DvbcmodulationType)
1559
+ ENUM_CONVERSION_HANDLER(JsonData::DTV::DvbtbandwidthType)
1560
+ ENUM_CONVERSION_HANDLER(JsonData::DTV::OfdmmodeType)
1561
+ ENUM_CONVERSION_HANDLER(JsonData::DTV::ServicetypeType)
1562
+ ENUM_CONVERSION_HANDLER(JsonData::DTV::RunningstatusType)
1563
+ ENUM_CONVERSION_HANDLER(JsonData::DTV::ComponentData::TypeType)
1564
+ ENUM_CONVERSION_HANDLER(JsonData::DTV::CodecType)
1565
+ ENUM_CONVERSION_HANDLER(JsonData::DTV::ComponentData::AudioData::TypeType)
1566
+ ENUM_CONVERSION_HANDLER(JsonData::DTV::ComponentData::AudioData::ModeType)
1567
+ ENUM_CONVERSION_HANDLER(JsonData::DTV::ComponentData::SubtitlesData::FormatType)
1568
+ ENUM_CONVERSION_HANDLER(JsonData::DTV::EventtypeType)
1569
+
1570
+ }
1571
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_DeviceIdentification.h ADDED
@@ -0,0 +1,58 @@
1
+ // C++ types for Device Identification API.
2
+ // Generated automatically from 'DeviceIdentification.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+
10
+ namespace WPEFramework {
11
+
12
+ namespace JsonData {
13
+
14
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
15
+
16
+ namespace DeviceIdentification {
17
+
18
+ // Method params/result classes
19
+ //
20
+
21
+ class DeviceidentificationData : public Core::JSON::Container {
22
+ public:
23
+ DeviceidentificationData()
24
+ : Core::JSON::Container()
25
+ {
26
+ Add(_T("firmwareversion"), &Firmwareversion);
27
+ Add(_T("chipset"), &Chipset);
28
+ Add(_T("deviceid"), &Deviceid);
29
+ }
30
+
31
+ DeviceidentificationData(const DeviceidentificationData&) = delete;
32
+ DeviceidentificationData(DeviceidentificationData&&) noexcept = delete;
33
+
34
+ DeviceidentificationData& operator=(const DeviceidentificationData&) = delete;
35
+ DeviceidentificationData& operator=(DeviceidentificationData&&) noexcept = delete;
36
+
37
+ ~DeviceidentificationData() = default;
38
+
39
+ public:
40
+ bool IsDataValid() const
41
+ {
42
+ return ((Firmwareversion.IsSet() == true) && (Chipset.IsSet() == true) && (Deviceid.IsSet() == true));
43
+ }
44
+
45
+ public:
46
+ Core::JSON::String Firmwareversion; // Version of the device firmware
47
+ Core::JSON::String Chipset; // Chipset used for this device
48
+ Core::JSON::String Deviceid; // Device ID
49
+ }; // class DeviceidentificationData
50
+
51
+ } // namespace DeviceIdentification
52
+
53
+ POP_WARNING()
54
+
55
+ } // namespace JsonData
56
+
57
+ }
58
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_DeviceInfo.h ADDED
@@ -0,0 +1,1186 @@
1
+ // C++ types for Device Info API.
2
+ // Generated automatically from 'DeviceInfo.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace DeviceInfo {
18
+
19
+ // Common enums
20
+ //
21
+
22
+ // Audio capability
23
+ enum class AudiocapabilityType : uint8_t {
24
+ NONE,
25
+ ATMOS,
26
+ DD,
27
+ DDPLUS,
28
+ DAD,
29
+ DAPV2,
30
+ MS12
31
+ };
32
+
33
+ // Audio output supported by the device
34
+ enum class AudioportType : uint8_t {
35
+ OTHER,
36
+ RF_MODULATOR,
37
+ ANALOG,
38
+ SPDIF0,
39
+ HDMI0,
40
+ HDMI1,
41
+ DISPLAYPORT
42
+ };
43
+
44
+ // HDCP support
45
+ enum class CopyprotectionType : uint8_t {
46
+ HDCP_UNAVAILABLE,
47
+ HDCP_14,
48
+ HDCP_20,
49
+ HDCP_21,
50
+ HDCP_22
51
+ };
52
+
53
+ // MS12 audio capability
54
+ enum class Ms12capabilityType : uint8_t {
55
+ NONE,
56
+ DOLBYVOLUME,
57
+ INTELIGENTEQUALIZER,
58
+ DIALOGUEENHANCER
59
+ };
60
+
61
+ // MS12 Profile
62
+ enum class Ms12profileType : uint8_t {
63
+ NONE,
64
+ MUSIC,
65
+ MOVIE,
66
+ VOICE
67
+ };
68
+
69
+ // Resolution supported by the device
70
+ enum class Output_resolutionType : uint8_t {
71
+ UNKNOWN,
72
+ E480I,
73
+ E480P,
74
+ E576I,
75
+ E576P,
76
+ E576P50,
77
+ E720P,
78
+ E720P24,
79
+ E720P25,
80
+ E720P30,
81
+ E720P50,
82
+ E720P60,
83
+ E1080I,
84
+ E1080I25,
85
+ E1080I50,
86
+ E1080I60,
87
+ E1080P,
88
+ E1080P24,
89
+ E1080P25,
90
+ E1080P30,
91
+ E1080P50,
92
+ E1080P60,
93
+ E2160P24,
94
+ E2160P25,
95
+ E2160P30,
96
+ E2160P50,
97
+ E2160P60,
98
+ E4320P30,
99
+ E4320P60
100
+ };
101
+
102
+ // Video output supported by the device
103
+ enum class VideodisplayType : uint8_t {
104
+ OTHER,
105
+ RF_MODULATOR,
106
+ COMPOSITE,
107
+ SVIDEO,
108
+ COMPONET,
109
+ SCART_RGB,
110
+ HDMI0,
111
+ HDMI1,
112
+ DISPLAYPORT
113
+ };
114
+
115
+ // Common classes
116
+ //
117
+
118
+ class AudiocapabilitiesParamsInfo : public Core::JSON::Container {
119
+ public:
120
+ AudiocapabilitiesParamsInfo()
121
+ : Core::JSON::Container()
122
+ {
123
+ Add(_T("audioPort"), &AudioPort);
124
+ }
125
+
126
+ AudiocapabilitiesParamsInfo(const AudiocapabilitiesParamsInfo&) = delete;
127
+ AudiocapabilitiesParamsInfo(AudiocapabilitiesParamsInfo&&) noexcept = delete;
128
+
129
+ AudiocapabilitiesParamsInfo& operator=(const AudiocapabilitiesParamsInfo&) = delete;
130
+ AudiocapabilitiesParamsInfo& operator=(AudiocapabilitiesParamsInfo&&) noexcept = delete;
131
+
132
+ ~AudiocapabilitiesParamsInfo() = default;
133
+
134
+ public:
135
+ bool IsDataValid() const
136
+ {
137
+ return (AudioPort.IsSet() == true);
138
+ }
139
+
140
+ public:
141
+ Core::JSON::EnumType<AudioportType> AudioPort; // Audio output supported by the device
142
+ }; // class AudiocapabilitiesParamsInfo
143
+
144
+ class FriendlynameInfo : public Core::JSON::Container {
145
+ public:
146
+ FriendlynameInfo()
147
+ : Core::JSON::Container()
148
+ {
149
+ Add(_T("name"), &Name);
150
+ }
151
+
152
+ FriendlynameInfo(const FriendlynameInfo&) = delete;
153
+ FriendlynameInfo(FriendlynameInfo&&) noexcept = delete;
154
+
155
+ FriendlynameInfo& operator=(const FriendlynameInfo&) = delete;
156
+ FriendlynameInfo& operator=(FriendlynameInfo&&) noexcept = delete;
157
+
158
+ ~FriendlynameInfo() = default;
159
+
160
+ public:
161
+ bool IsDataValid() const
162
+ {
163
+ return (Name.IsSet() == true);
164
+ }
165
+
166
+ public:
167
+ Core::JSON::String Name;
168
+ }; // class FriendlynameInfo
169
+
170
+ class SupportedresolutionsParamsInfo : public Core::JSON::Container {
171
+ public:
172
+ SupportedresolutionsParamsInfo()
173
+ : Core::JSON::Container()
174
+ {
175
+ Add(_T("videoDisplay"), &VideoDisplay);
176
+ }
177
+
178
+ SupportedresolutionsParamsInfo(const SupportedresolutionsParamsInfo&) = delete;
179
+ SupportedresolutionsParamsInfo(SupportedresolutionsParamsInfo&&) noexcept = delete;
180
+
181
+ SupportedresolutionsParamsInfo& operator=(const SupportedresolutionsParamsInfo&) = delete;
182
+ SupportedresolutionsParamsInfo& operator=(SupportedresolutionsParamsInfo&&) noexcept = delete;
183
+
184
+ ~SupportedresolutionsParamsInfo() = default;
185
+
186
+ public:
187
+ bool IsDataValid() const
188
+ {
189
+ return (VideoDisplay.IsSet() == true);
190
+ }
191
+
192
+ public:
193
+ Core::JSON::EnumType<VideodisplayType> VideoDisplay; // Video output supported by the device
194
+ }; // class SupportedresolutionsParamsInfo
195
+
196
+ // Method params/result classes
197
+ //
198
+
199
+ class AddressesData : public Core::JSON::Container {
200
+ public:
201
+ AddressesData()
202
+ : Core::JSON::Container()
203
+ {
204
+ _Init();
205
+ }
206
+
207
+ AddressesData(const AddressesData& _other)
208
+ : Core::JSON::Container()
209
+ , Name(_other.Name)
210
+ , Mac(_other.Mac)
211
+ , Ip(_other.Ip)
212
+ {
213
+ _Init();
214
+ }
215
+
216
+ AddressesData(AddressesData&& _other) noexcept
217
+ : Core::JSON::Container()
218
+ , Name(std::move(_other.Name))
219
+ , Mac(std::move(_other.Mac))
220
+ , Ip(std::move(_other.Ip))
221
+ {
222
+ _Init();
223
+ }
224
+
225
+ AddressesData& operator=(const AddressesData& _rhs)
226
+ {
227
+ Name = _rhs.Name;
228
+ Mac = _rhs.Mac;
229
+ Ip = _rhs.Ip;
230
+ return (*this);
231
+ }
232
+
233
+ AddressesData& operator=(AddressesData&& _rhs) noexcept
234
+ {
235
+ Name = std::move(_rhs.Name);
236
+ Mac = std::move(_rhs.Mac);
237
+ Ip = std::move(_rhs.Ip);
238
+ return (*this);
239
+ }
240
+
241
+ ~AddressesData() = default;
242
+
243
+ public:
244
+ bool IsDataValid() const
245
+ {
246
+ return ((Name.IsSet() == true) && (Mac.IsSet() == true));
247
+ }
248
+
249
+ private:
250
+ void _Init()
251
+ {
252
+ Add(_T("name"), &Name);
253
+ Add(_T("mac"), &Mac);
254
+ Add(_T("ip"), &Ip);
255
+ }
256
+
257
+ public:
258
+ Core::JSON::String Name; // Interface name
259
+ Core::JSON::String Mac; // Interface MAC address
260
+ Core::JSON::ArrayType<Core::JSON::String> Ip;
261
+ }; // class AddressesData
262
+
263
+ class AudiocapabilitiesResultData : public Core::JSON::Container {
264
+ public:
265
+ AudiocapabilitiesResultData()
266
+ : Core::JSON::Container()
267
+ {
268
+ Add(_T("AudioCapabilities"), &AudioCapabilities);
269
+ }
270
+
271
+ AudiocapabilitiesResultData(const AudiocapabilitiesResultData&) = delete;
272
+ AudiocapabilitiesResultData(AudiocapabilitiesResultData&&) noexcept = delete;
273
+
274
+ AudiocapabilitiesResultData& operator=(const AudiocapabilitiesResultData&) = delete;
275
+ AudiocapabilitiesResultData& operator=(AudiocapabilitiesResultData&&) noexcept = delete;
276
+
277
+ ~AudiocapabilitiesResultData() = default;
278
+
279
+ public:
280
+ bool IsDataValid() const
281
+ {
282
+ return (AudioCapabilities.IsSet() == true);
283
+ }
284
+
285
+ public:
286
+ Core::JSON::ArrayType<Core::JSON::EnumType<AudiocapabilityType>> AudioCapabilities;
287
+ }; // class AudiocapabilitiesResultData
288
+
289
+ class DefaultresolutionResultData : public Core::JSON::Container {
290
+ public:
291
+ DefaultresolutionResultData()
292
+ : Core::JSON::Container()
293
+ {
294
+ Add(_T("defaultResolution"), &DefaultResolution);
295
+ }
296
+
297
+ DefaultresolutionResultData(const DefaultresolutionResultData&) = delete;
298
+ DefaultresolutionResultData(DefaultresolutionResultData&&) noexcept = delete;
299
+
300
+ DefaultresolutionResultData& operator=(const DefaultresolutionResultData&) = delete;
301
+ DefaultresolutionResultData& operator=(DefaultresolutionResultData&&) noexcept = delete;
302
+
303
+ ~DefaultresolutionResultData() = default;
304
+
305
+ public:
306
+ bool IsDataValid() const
307
+ {
308
+ return (DefaultResolution.IsSet() == true);
309
+ }
310
+
311
+ public:
312
+ Core::JSON::EnumType<Output_resolutionType> DefaultResolution; // Resolution supported by the device
313
+ }; // class DefaultresolutionResultData
314
+
315
+ class DeviceaudiocapabilitiesData : public Core::JSON::Container {
316
+ public:
317
+ class AudiooutputcapabilitiesData : public Core::JSON::Container {
318
+ public:
319
+ AudiooutputcapabilitiesData()
320
+ : Core::JSON::Container()
321
+ {
322
+ _Init();
323
+ }
324
+
325
+ AudiooutputcapabilitiesData(const AudiooutputcapabilitiesData& _other)
326
+ : Core::JSON::Container()
327
+ , AudioPort(_other.AudioPort)
328
+ , Audiocapabilities(_other.Audiocapabilities)
329
+ , Ms12capabilities(_other.Ms12capabilities)
330
+ , Ms12profiles(_other.Ms12profiles)
331
+ {
332
+ _Init();
333
+ }
334
+
335
+ AudiooutputcapabilitiesData(AudiooutputcapabilitiesData&& _other) noexcept
336
+ : Core::JSON::Container()
337
+ , AudioPort(std::move(_other.AudioPort))
338
+ , Audiocapabilities(std::move(_other.Audiocapabilities))
339
+ , Ms12capabilities(std::move(_other.Ms12capabilities))
340
+ , Ms12profiles(std::move(_other.Ms12profiles))
341
+ {
342
+ _Init();
343
+ }
344
+
345
+ AudiooutputcapabilitiesData& operator=(const AudiooutputcapabilitiesData& _rhs)
346
+ {
347
+ AudioPort = _rhs.AudioPort;
348
+ Audiocapabilities = _rhs.Audiocapabilities;
349
+ Ms12capabilities = _rhs.Ms12capabilities;
350
+ Ms12profiles = _rhs.Ms12profiles;
351
+ return (*this);
352
+ }
353
+
354
+ AudiooutputcapabilitiesData& operator=(AudiooutputcapabilitiesData&& _rhs) noexcept
355
+ {
356
+ AudioPort = std::move(_rhs.AudioPort);
357
+ Audiocapabilities = std::move(_rhs.Audiocapabilities);
358
+ Ms12capabilities = std::move(_rhs.Ms12capabilities);
359
+ Ms12profiles = std::move(_rhs.Ms12profiles);
360
+ return (*this);
361
+ }
362
+
363
+ ~AudiooutputcapabilitiesData() = default;
364
+
365
+ public:
366
+ bool IsDataValid() const
367
+ {
368
+ return ((Audiocapabilities.IsSet() == true) && (Ms12capabilities.IsSet() == true) && (Ms12profiles.IsSet() == true));
369
+ }
370
+
371
+ private:
372
+ void _Init()
373
+ {
374
+ Add(_T("audioPort"), &AudioPort);
375
+ Add(_T("audiocapabilities"), &Audiocapabilities);
376
+ Add(_T("ms12capabilities"), &Ms12capabilities);
377
+ Add(_T("ms12profiles"), &Ms12profiles);
378
+ }
379
+
380
+ public:
381
+ Core::JSON::EnumType<AudioportType> AudioPort; // Audio Output support
382
+ Core::JSON::ArrayType<Core::JSON::EnumType<AudiocapabilityType>> Audiocapabilities; // Audio capabilities for the specified audio port
383
+ Core::JSON::ArrayType<Core::JSON::EnumType<Ms12capabilityType>> Ms12capabilities; // Audio ms12 capabilities for the specified audio port
384
+ Core::JSON::ArrayType<Core::JSON::EnumType<Ms12profileType>> Ms12profiles; // Audio ms12 profiles for the specified audio port
385
+ }; // class AudiooutputcapabilitiesData
386
+
387
+ DeviceaudiocapabilitiesData()
388
+ : Core::JSON::Container()
389
+ {
390
+ Add(_T("audiooutputcapabilities"), &Audiooutputcapabilities);
391
+ }
392
+
393
+ DeviceaudiocapabilitiesData(const DeviceaudiocapabilitiesData&) = delete;
394
+ DeviceaudiocapabilitiesData(DeviceaudiocapabilitiesData&&) noexcept = delete;
395
+
396
+ DeviceaudiocapabilitiesData& operator=(const DeviceaudiocapabilitiesData&) = delete;
397
+ DeviceaudiocapabilitiesData& operator=(DeviceaudiocapabilitiesData&&) noexcept = delete;
398
+
399
+ ~DeviceaudiocapabilitiesData() = default;
400
+
401
+ public:
402
+ bool IsDataValid() const
403
+ {
404
+ return (Audiooutputcapabilities.IsSet() == true);
405
+ }
406
+
407
+ public:
408
+ Core::JSON::ArrayType<DeviceaudiocapabilitiesData::AudiooutputcapabilitiesData> Audiooutputcapabilities;
409
+ }; // class DeviceaudiocapabilitiesData
410
+
411
+ class DeviceinfoData : public Core::JSON::Container {
412
+ public:
413
+ DeviceinfoData()
414
+ : Core::JSON::Container()
415
+ {
416
+ Add(_T("devicetype"), &Devicetype);
417
+ Add(_T("friendlyname"), &Friendlyname);
418
+ Add(_T("distributorid"), &Distributorid);
419
+ Add(_T("make"), &Make);
420
+ Add(_T("modelname"), &Modelname);
421
+ Add(_T("modelyear"), &Modelyear);
422
+ Add(_T("platformname"), &Platformname);
423
+ Add(_T("serialnumber"), &Serialnumber);
424
+ Add(_T("sku"), &Sku);
425
+ }
426
+
427
+ DeviceinfoData(const DeviceinfoData&) = delete;
428
+ DeviceinfoData(DeviceinfoData&&) noexcept = delete;
429
+
430
+ DeviceinfoData& operator=(const DeviceinfoData&) = delete;
431
+ DeviceinfoData& operator=(DeviceinfoData&&) noexcept = delete;
432
+
433
+ ~DeviceinfoData() = default;
434
+
435
+ public:
436
+ bool IsDataValid() const
437
+ {
438
+ return ((Devicetype.IsSet() == true) && (Friendlyname.IsSet() == true) && (Distributorid.IsSet() == true) && (Make.IsSet() == true) && (Modelname.IsSet() == true) && (Modelyear.IsSet() == true) && (Platformname.IsSet() == true) && (Serialnumber.IsSet() == true) && (Sku.IsSet() == true));
439
+ }
440
+
441
+ public:
442
+ Core::JSON::String Devicetype; // Device type
443
+ Core::JSON::String Friendlyname; // Friendly name
444
+ Core::JSON::String Distributorid; // Partner ID or distributor ID for device
445
+ Core::JSON::String Make; // Device manufacturer
446
+ Core::JSON::String Modelname; // Model Name
447
+ Core::JSON::DecUInt16 Modelyear; // Model Year
448
+ Core::JSON::String Platformname; // Platform name
449
+ Core::JSON::String Serialnumber; // Device serial number
450
+ Core::JSON::String Sku; // Device model number or SKU
451
+ }; // class DeviceinfoData
452
+
453
+ class DevicetypeData : public Core::JSON::Container {
454
+ public:
455
+ // Device type
456
+ enum class DevicetypeType : uint8_t {
457
+ TV,
458
+ IPSTB,
459
+ QAMIPSTB,
460
+ HYBRID,
461
+ MEDIACLIENT
462
+ };
463
+
464
+ DevicetypeData()
465
+ : Core::JSON::Container()
466
+ {
467
+ Add(_T("devicetype"), &Devicetype);
468
+ }
469
+
470
+ DevicetypeData(const DevicetypeData&) = delete;
471
+ DevicetypeData(DevicetypeData&&) noexcept = delete;
472
+
473
+ DevicetypeData& operator=(const DevicetypeData&) = delete;
474
+ DevicetypeData& operator=(DevicetypeData&&) noexcept = delete;
475
+
476
+ ~DevicetypeData() = default;
477
+
478
+ public:
479
+ bool IsDataValid() const
480
+ {
481
+ return (Devicetype.IsSet() == true);
482
+ }
483
+
484
+ public:
485
+ Core::JSON::EnumType<DevicetypeData::DevicetypeType> Devicetype; // Device type
486
+ }; // class DevicetypeData
487
+
488
+ class DevicevideocapabilitiesData : public Core::JSON::Container {
489
+ public:
490
+ class VideooutputcapabilitiesData : public Core::JSON::Container {
491
+ public:
492
+ VideooutputcapabilitiesData()
493
+ : Core::JSON::Container()
494
+ {
495
+ _Init();
496
+ }
497
+
498
+ VideooutputcapabilitiesData(const VideooutputcapabilitiesData& _other)
499
+ : Core::JSON::Container()
500
+ , Hdcp(_other.Hdcp)
501
+ , VideoDisplay(_other.VideoDisplay)
502
+ , Output_resolutions(_other.Output_resolutions)
503
+ , Defaultresolution(_other.Defaultresolution)
504
+ {
505
+ _Init();
506
+ }
507
+
508
+ VideooutputcapabilitiesData(VideooutputcapabilitiesData&& _other) noexcept
509
+ : Core::JSON::Container()
510
+ , Hdcp(std::move(_other.Hdcp))
511
+ , VideoDisplay(std::move(_other.VideoDisplay))
512
+ , Output_resolutions(std::move(_other.Output_resolutions))
513
+ , Defaultresolution(std::move(_other.Defaultresolution))
514
+ {
515
+ _Init();
516
+ }
517
+
518
+ VideooutputcapabilitiesData& operator=(const VideooutputcapabilitiesData& _rhs)
519
+ {
520
+ Hdcp = _rhs.Hdcp;
521
+ VideoDisplay = _rhs.VideoDisplay;
522
+ Output_resolutions = _rhs.Output_resolutions;
523
+ Defaultresolution = _rhs.Defaultresolution;
524
+ return (*this);
525
+ }
526
+
527
+ VideooutputcapabilitiesData& operator=(VideooutputcapabilitiesData&& _rhs) noexcept
528
+ {
529
+ Hdcp = std::move(_rhs.Hdcp);
530
+ VideoDisplay = std::move(_rhs.VideoDisplay);
531
+ Output_resolutions = std::move(_rhs.Output_resolutions);
532
+ Defaultresolution = std::move(_rhs.Defaultresolution);
533
+ return (*this);
534
+ }
535
+
536
+ ~VideooutputcapabilitiesData() = default;
537
+
538
+ public:
539
+ bool IsDataValid() const
540
+ {
541
+ return ((Hdcp.IsSet() == true) && (Output_resolutions.IsSet() == true) && (Defaultresolution.IsSet() == true));
542
+ }
543
+
544
+ private:
545
+ void _Init()
546
+ {
547
+ Add(_T("hdcp"), &Hdcp);
548
+ Add(_T("videoDisplay"), &VideoDisplay);
549
+ Add(_T("output_resolutions"), &Output_resolutions);
550
+ Add(_T("defaultresolution"), &Defaultresolution);
551
+ }
552
+
553
+ public:
554
+ Core::JSON::EnumType<CopyprotectionType> Hdcp; // HDCP support
555
+ Core::JSON::EnumType<VideodisplayType> VideoDisplay; // Video Output support
556
+ Core::JSON::ArrayType<Core::JSON::EnumType<Output_resolutionType>> Output_resolutions; // Supported resolutions
557
+ Core::JSON::EnumType<Output_resolutionType> Defaultresolution; // Default resolution
558
+ }; // class VideooutputcapabilitiesData
559
+
560
+ DevicevideocapabilitiesData()
561
+ : Core::JSON::Container()
562
+ {
563
+ Add(_T("hostedid"), &Hostedid);
564
+ Add(_T("hdr"), &Hdr);
565
+ Add(_T("atmos"), &Atmos);
566
+ Add(_T("cec"), &Cec);
567
+ Add(_T("videooutputcapabilities"), &Videooutputcapabilities);
568
+ }
569
+
570
+ DevicevideocapabilitiesData(const DevicevideocapabilitiesData&) = delete;
571
+ DevicevideocapabilitiesData(DevicevideocapabilitiesData&&) noexcept = delete;
572
+
573
+ DevicevideocapabilitiesData& operator=(const DevicevideocapabilitiesData&) = delete;
574
+ DevicevideocapabilitiesData& operator=(DevicevideocapabilitiesData&&) noexcept = delete;
575
+
576
+ ~DevicevideocapabilitiesData() = default;
577
+
578
+ public:
579
+ bool IsDataValid() const
580
+ {
581
+ return ((Hostedid.IsSet() == true) && (Hdr.IsSet() == true) && (Atmos.IsSet() == true) && (Cec.IsSet() == true) && (Videooutputcapabilities.IsSet() == true));
582
+ }
583
+
584
+ public:
585
+ Core::JSON::String Hostedid; // EDID of the host
586
+ Core::JSON::Boolean Hdr; // Is HDR supported by this device
587
+ Core::JSON::Boolean Atmos; // Is Atmos supported by this device
588
+ Core::JSON::Boolean Cec; // Is CEC supported by this device
589
+ Core::JSON::ArrayType<DevicevideocapabilitiesData::VideooutputcapabilitiesData> Videooutputcapabilities;
590
+ }; // class DevicevideocapabilitiesData
591
+
592
+ class DistributoridData : public Core::JSON::Container {
593
+ public:
594
+ // Partner ID or distributor ID for device
595
+ enum class DistributoridType : uint8_t {
596
+ COMCAST,
597
+ XGLOBAL,
598
+ SKY_DE,
599
+ SKY_ITALIA,
600
+ SKY_UK,
601
+ SKY_UK_DEV,
602
+ SKY_DEU,
603
+ SKY_DEU_DEV,
604
+ SKY_IT,
605
+ SKY_IT_DEV,
606
+ COX,
607
+ COX_HOSPITALITY,
608
+ COX_DEV,
609
+ COX_QA,
610
+ MIT,
611
+ SHAW,
612
+ SHAW_DEV,
613
+ ROGERS,
614
+ ROGERS_DEV,
615
+ VIDEOTRON,
616
+ CHARTER,
617
+ CHARTER_DEV
618
+ };
619
+
620
+ DistributoridData()
621
+ : Core::JSON::Container()
622
+ {
623
+ Add(_T("distributorid"), &Distributorid);
624
+ }
625
+
626
+ DistributoridData(const DistributoridData&) = delete;
627
+ DistributoridData(DistributoridData&&) noexcept = delete;
628
+
629
+ DistributoridData& operator=(const DistributoridData&) = delete;
630
+ DistributoridData& operator=(DistributoridData&&) noexcept = delete;
631
+
632
+ ~DistributoridData() = default;
633
+
634
+ public:
635
+ bool IsDataValid() const
636
+ {
637
+ return (Distributorid.IsSet() == true);
638
+ }
639
+
640
+ public:
641
+ Core::JSON::EnumType<DistributoridData::DistributoridType> Distributorid; // Partner ID or distributor ID for device
642
+ }; // class DistributoridData
643
+
644
+ class FirmwareversionData : public Core::JSON::Container {
645
+ public:
646
+ // Yocto version
647
+ enum class YoctoType : uint8_t {
648
+ DUNFELL,
649
+ MORTY,
650
+ DAISY,
651
+ KIRKSTONE
652
+ };
653
+
654
+ FirmwareversionData()
655
+ : Core::JSON::Container()
656
+ {
657
+ Add(_T("imagename"), &Imagename);
658
+ Add(_T("sdk"), &Sdk);
659
+ Add(_T("mediarite"), &Mediarite);
660
+ Add(_T("yocto"), &Yocto);
661
+ }
662
+
663
+ FirmwareversionData(const FirmwareversionData&) = delete;
664
+ FirmwareversionData(FirmwareversionData&&) noexcept = delete;
665
+
666
+ FirmwareversionData& operator=(const FirmwareversionData&) = delete;
667
+ FirmwareversionData& operator=(FirmwareversionData&&) noexcept = delete;
668
+
669
+ ~FirmwareversionData() = default;
670
+
671
+ public:
672
+ bool IsDataValid() const
673
+ {
674
+ return (Imagename.IsSet() == true);
675
+ }
676
+
677
+ public:
678
+ Core::JSON::String Imagename;
679
+ Core::JSON::String Sdk;
680
+ Core::JSON::String Mediarite;
681
+ Core::JSON::EnumType<FirmwareversionData::YoctoType> Yocto; // Yocto version
682
+ }; // class FirmwareversionData
683
+
684
+ class HostedidData : public Core::JSON::Container {
685
+ public:
686
+ HostedidData()
687
+ : Core::JSON::Container()
688
+ {
689
+ Add(_T("EDID"), &EDID);
690
+ }
691
+
692
+ HostedidData(const HostedidData&) = delete;
693
+ HostedidData(HostedidData&&) noexcept = delete;
694
+
695
+ HostedidData& operator=(const HostedidData&) = delete;
696
+ HostedidData& operator=(HostedidData&&) noexcept = delete;
697
+
698
+ ~HostedidData() = default;
699
+
700
+ public:
701
+ bool IsDataValid() const
702
+ {
703
+ return (EDID.IsSet() == true);
704
+ }
705
+
706
+ public:
707
+ Core::JSON::String EDID;
708
+ }; // class HostedidData
709
+
710
+ class MakeData : public Core::JSON::Container {
711
+ public:
712
+ // Device manufacturer
713
+ enum class MakeType : uint8_t {
714
+ PLATCO,
715
+ LLAMA,
716
+ HISENSE,
717
+ ELEMENT,
718
+ SKY_CP,
719
+ SKY,
720
+ SERCOMM,
721
+ COMMSCOPE,
722
+ ARRIS,
723
+ CISCO,
724
+ PACE,
725
+ SAMSUNG,
726
+ TECHNICOLOR,
727
+ AMLOGIC_INC,
728
+ RASPBERRYPI_ORG,
729
+ PIONEER,
730
+ TPV
731
+ };
732
+
733
+ MakeData()
734
+ : Core::JSON::Container()
735
+ {
736
+ Add(_T("make"), &Make);
737
+ }
738
+
739
+ MakeData(const MakeData&) = delete;
740
+ MakeData(MakeData&&) noexcept = delete;
741
+
742
+ MakeData& operator=(const MakeData&) = delete;
743
+ MakeData& operator=(MakeData&&) noexcept = delete;
744
+
745
+ ~MakeData() = default;
746
+
747
+ public:
748
+ bool IsDataValid() const
749
+ {
750
+ return (Make.IsSet() == true);
751
+ }
752
+
753
+ public:
754
+ Core::JSON::EnumType<MakeData::MakeType> Make; // Device manufacturer
755
+ }; // class MakeData
756
+
757
+ class ModelidData : public Core::JSON::Container {
758
+ public:
759
+ // Device model number or SKU
760
+ enum class SkuType : uint8_t {
761
+ PLTL11AEI,
762
+ ZWCN11MWI,
763
+ SKTL11AEI,
764
+ LS301,
765
+ HSTP11MWR,
766
+ HSTP11MWRFX50,
767
+ ELTE11MWR,
768
+ SKXI11ADS,
769
+ SKXI11AIS,
770
+ SKXI11ANS,
771
+ SCXI11AIC,
772
+ SCXI11BEI,
773
+ CMXI11BEI,
774
+ AX013AN,
775
+ AX014AN,
776
+ AX061AEI,
777
+ MX011AN,
778
+ CS011AN,
779
+ CXD01ANI,
780
+ PX001AN,
781
+ PX013AN,
782
+ PX022AN,
783
+ PX032ANI,
784
+ PX051AEI,
785
+ PXD01ANI,
786
+ SX022AN,
787
+ TX061AEI,
788
+ PI,
789
+ XUSHTC11MWR,
790
+ XUSPTC11MWR,
791
+ XUSHTB11MWR,
792
+ PITU11MWR
793
+ };
794
+
795
+ ModelidData()
796
+ : Core::JSON::Container()
797
+ {
798
+ Add(_T("sku"), &Sku);
799
+ }
800
+
801
+ ModelidData(const ModelidData&) = delete;
802
+ ModelidData(ModelidData&&) noexcept = delete;
803
+
804
+ ModelidData& operator=(const ModelidData&) = delete;
805
+ ModelidData& operator=(ModelidData&&) noexcept = delete;
806
+
807
+ ~ModelidData() = default;
808
+
809
+ public:
810
+ bool IsDataValid() const
811
+ {
812
+ return (Sku.IsSet() == true);
813
+ }
814
+
815
+ public:
816
+ Core::JSON::EnumType<ModelidData::SkuType> Sku; // Device model number or SKU
817
+ }; // class ModelidData
818
+
819
+ class ModelnameData : public Core::JSON::Container {
820
+ public:
821
+ ModelnameData()
822
+ : Core::JSON::Container()
823
+ {
824
+ Add(_T("model"), &Model);
825
+ }
826
+
827
+ ModelnameData(const ModelnameData&) = delete;
828
+ ModelnameData(ModelnameData&&) noexcept = delete;
829
+
830
+ ModelnameData& operator=(const ModelnameData&) = delete;
831
+ ModelnameData& operator=(ModelnameData&&) noexcept = delete;
832
+
833
+ ~ModelnameData() = default;
834
+
835
+ public:
836
+ bool IsDataValid() const
837
+ {
838
+ return (Model.IsSet() == true);
839
+ }
840
+
841
+ public:
842
+ Core::JSON::String Model;
843
+ }; // class ModelnameData
844
+
845
+ class ModelyearData : public Core::JSON::Container {
846
+ public:
847
+ ModelyearData()
848
+ : Core::JSON::Container()
849
+ {
850
+ Add(_T("year"), &Year);
851
+ }
852
+
853
+ ModelyearData(const ModelyearData&) = delete;
854
+ ModelyearData(ModelyearData&&) noexcept = delete;
855
+
856
+ ModelyearData& operator=(const ModelyearData&) = delete;
857
+ ModelyearData& operator=(ModelyearData&&) noexcept = delete;
858
+
859
+ ~ModelyearData() = default;
860
+
861
+ public:
862
+ bool IsDataValid() const
863
+ {
864
+ return (Year.IsSet() == true);
865
+ }
866
+
867
+ public:
868
+ Core::JSON::DecUInt16 Year;
869
+ }; // class ModelyearData
870
+
871
+ class Ms12capabilitiesResultData : public Core::JSON::Container {
872
+ public:
873
+ Ms12capabilitiesResultData()
874
+ : Core::JSON::Container()
875
+ {
876
+ Add(_T("MS12Capabilities"), &MS12Capabilities);
877
+ }
878
+
879
+ Ms12capabilitiesResultData(const Ms12capabilitiesResultData&) = delete;
880
+ Ms12capabilitiesResultData(Ms12capabilitiesResultData&&) noexcept = delete;
881
+
882
+ Ms12capabilitiesResultData& operator=(const Ms12capabilitiesResultData&) = delete;
883
+ Ms12capabilitiesResultData& operator=(Ms12capabilitiesResultData&&) noexcept = delete;
884
+
885
+ ~Ms12capabilitiesResultData() = default;
886
+
887
+ public:
888
+ bool IsDataValid() const
889
+ {
890
+ return (MS12Capabilities.IsSet() == true);
891
+ }
892
+
893
+ public:
894
+ Core::JSON::ArrayType<Core::JSON::EnumType<Ms12capabilityType>> MS12Capabilities;
895
+ }; // class Ms12capabilitiesResultData
896
+
897
+ class SerialnumberData : public Core::JSON::Container {
898
+ public:
899
+ SerialnumberData()
900
+ : Core::JSON::Container()
901
+ {
902
+ Add(_T("serialnumber"), &Serialnumber);
903
+ }
904
+
905
+ SerialnumberData(const SerialnumberData&) = delete;
906
+ SerialnumberData(SerialnumberData&&) noexcept = delete;
907
+
908
+ SerialnumberData& operator=(const SerialnumberData&) = delete;
909
+ SerialnumberData& operator=(SerialnumberData&&) noexcept = delete;
910
+
911
+ ~SerialnumberData() = default;
912
+
913
+ public:
914
+ bool IsDataValid() const
915
+ {
916
+ return (Serialnumber.IsSet() == true);
917
+ }
918
+
919
+ public:
920
+ Core::JSON::String Serialnumber;
921
+ }; // class SerialnumberData
922
+
923
+ class SocketinfoData : public Core::JSON::Container {
924
+ public:
925
+ SocketinfoData()
926
+ : Core::JSON::Container()
927
+ {
928
+ Add(_T("total"), &Total);
929
+ Add(_T("open"), &Open);
930
+ Add(_T("link"), &Link);
931
+ Add(_T("exception"), &Exception);
932
+ Add(_T("shutdown"), &Shutdown);
933
+ Add(_T("runs"), &Runs);
934
+ }
935
+
936
+ SocketinfoData(const SocketinfoData&) = delete;
937
+ SocketinfoData(SocketinfoData&&) noexcept = delete;
938
+
939
+ SocketinfoData& operator=(const SocketinfoData&) = delete;
940
+ SocketinfoData& operator=(SocketinfoData&&) noexcept = delete;
941
+
942
+ ~SocketinfoData() = default;
943
+
944
+ public:
945
+ bool IsDataValid() const
946
+ {
947
+ return (Runs.IsSet() == true);
948
+ }
949
+
950
+ public:
951
+ Core::JSON::DecUInt32 Total;
952
+ Core::JSON::DecUInt32 Open;
953
+ Core::JSON::DecUInt32 Link;
954
+ Core::JSON::DecUInt32 Exception;
955
+ Core::JSON::DecUInt32 Shutdown;
956
+ Core::JSON::DecUInt32 Runs; // Number of runs
957
+ }; // class SocketinfoData
958
+
959
+ class SupportedaudioportsData : public Core::JSON::Container {
960
+ public:
961
+ SupportedaudioportsData()
962
+ : Core::JSON::Container()
963
+ {
964
+ Add(_T("supportedAudioPorts"), &SupportedAudioPorts);
965
+ }
966
+
967
+ SupportedaudioportsData(const SupportedaudioportsData&) = delete;
968
+ SupportedaudioportsData(SupportedaudioportsData&&) noexcept = delete;
969
+
970
+ SupportedaudioportsData& operator=(const SupportedaudioportsData&) = delete;
971
+ SupportedaudioportsData& operator=(SupportedaudioportsData&&) noexcept = delete;
972
+
973
+ ~SupportedaudioportsData() = default;
974
+
975
+ public:
976
+ bool IsDataValid() const
977
+ {
978
+ return (SupportedAudioPorts.IsSet() == true);
979
+ }
980
+
981
+ public:
982
+ Core::JSON::ArrayType<Core::JSON::EnumType<AudioportType>> SupportedAudioPorts; // Audio Output support
983
+ }; // class SupportedaudioportsData
984
+
985
+ class SupportedhdcpResultData : public Core::JSON::Container {
986
+ public:
987
+ SupportedhdcpResultData()
988
+ : Core::JSON::Container()
989
+ {
990
+ Add(_T("supportedHDCPVersion"), &SupportedHDCPVersion);
991
+ }
992
+
993
+ SupportedhdcpResultData(const SupportedhdcpResultData&) = delete;
994
+ SupportedhdcpResultData(SupportedhdcpResultData&&) noexcept = delete;
995
+
996
+ SupportedhdcpResultData& operator=(const SupportedhdcpResultData&) = delete;
997
+ SupportedhdcpResultData& operator=(SupportedhdcpResultData&&) noexcept = delete;
998
+
999
+ ~SupportedhdcpResultData() = default;
1000
+
1001
+ public:
1002
+ bool IsDataValid() const
1003
+ {
1004
+ return (SupportedHDCPVersion.IsSet() == true);
1005
+ }
1006
+
1007
+ public:
1008
+ Core::JSON::EnumType<CopyprotectionType> SupportedHDCPVersion; // HDCP support
1009
+ }; // class SupportedhdcpResultData
1010
+
1011
+ class Supportedms12audioprofilesResultData : public Core::JSON::Container {
1012
+ public:
1013
+ Supportedms12audioprofilesResultData()
1014
+ : Core::JSON::Container()
1015
+ {
1016
+ Add(_T("supportedMS12AudioProfiles"), &SupportedMS12AudioProfiles);
1017
+ }
1018
+
1019
+ Supportedms12audioprofilesResultData(const Supportedms12audioprofilesResultData&) = delete;
1020
+ Supportedms12audioprofilesResultData(Supportedms12audioprofilesResultData&&) noexcept = delete;
1021
+
1022
+ Supportedms12audioprofilesResultData& operator=(const Supportedms12audioprofilesResultData&) = delete;
1023
+ Supportedms12audioprofilesResultData& operator=(Supportedms12audioprofilesResultData&&) noexcept = delete;
1024
+
1025
+ ~Supportedms12audioprofilesResultData() = default;
1026
+
1027
+ public:
1028
+ bool IsDataValid() const
1029
+ {
1030
+ return (SupportedMS12AudioProfiles.IsSet() == true);
1031
+ }
1032
+
1033
+ public:
1034
+ Core::JSON::ArrayType<Core::JSON::EnumType<Ms12profileType>> SupportedMS12AudioProfiles; // An array of ms12 audio profiles
1035
+ }; // class Supportedms12audioprofilesResultData
1036
+
1037
+ class SupportedresolutionsResultData : public Core::JSON::Container {
1038
+ public:
1039
+ SupportedresolutionsResultData()
1040
+ : Core::JSON::Container()
1041
+ {
1042
+ Add(_T("supportedResolutions"), &SupportedResolutions);
1043
+ }
1044
+
1045
+ SupportedresolutionsResultData(const SupportedresolutionsResultData&) = delete;
1046
+ SupportedresolutionsResultData(SupportedresolutionsResultData&&) noexcept = delete;
1047
+
1048
+ SupportedresolutionsResultData& operator=(const SupportedresolutionsResultData&) = delete;
1049
+ SupportedresolutionsResultData& operator=(SupportedresolutionsResultData&&) noexcept = delete;
1050
+
1051
+ ~SupportedresolutionsResultData() = default;
1052
+
1053
+ public:
1054
+ bool IsDataValid() const
1055
+ {
1056
+ return (SupportedResolutions.IsSet() == true);
1057
+ }
1058
+
1059
+ public:
1060
+ Core::JSON::ArrayType<Core::JSON::EnumType<Output_resolutionType>> SupportedResolutions;
1061
+ }; // class SupportedresolutionsResultData
1062
+
1063
+ class SupportedvideodisplaysData : public Core::JSON::Container {
1064
+ public:
1065
+ SupportedvideodisplaysData()
1066
+ : Core::JSON::Container()
1067
+ {
1068
+ Add(_T("supportedVideoDisplays"), &SupportedVideoDisplays);
1069
+ }
1070
+
1071
+ SupportedvideodisplaysData(const SupportedvideodisplaysData&) = delete;
1072
+ SupportedvideodisplaysData(SupportedvideodisplaysData&&) noexcept = delete;
1073
+
1074
+ SupportedvideodisplaysData& operator=(const SupportedvideodisplaysData&) = delete;
1075
+ SupportedvideodisplaysData& operator=(SupportedvideodisplaysData&&) noexcept = delete;
1076
+
1077
+ ~SupportedvideodisplaysData() = default;
1078
+
1079
+ public:
1080
+ bool IsDataValid() const
1081
+ {
1082
+ return (SupportedVideoDisplays.IsSet() == true);
1083
+ }
1084
+
1085
+ public:
1086
+ Core::JSON::ArrayType<Core::JSON::EnumType<VideodisplayType>> SupportedVideoDisplays; // Video Output support
1087
+ }; // class SupportedvideodisplaysData
1088
+
1089
+ class SysteminfoData : public Core::JSON::Container {
1090
+ public:
1091
+ class CpuloadavgsData : public Core::JSON::Container {
1092
+ public:
1093
+ CpuloadavgsData()
1094
+ : Core::JSON::Container()
1095
+ {
1096
+ Add(_T("avg1min"), &Avg1min);
1097
+ Add(_T("avg5min"), &Avg5min);
1098
+ Add(_T("avg15min"), &Avg15min);
1099
+ }
1100
+
1101
+ CpuloadavgsData(const CpuloadavgsData&) = delete;
1102
+ CpuloadavgsData(CpuloadavgsData&&) noexcept = delete;
1103
+
1104
+ CpuloadavgsData& operator=(const CpuloadavgsData&) = delete;
1105
+ CpuloadavgsData& operator=(CpuloadavgsData&&) noexcept = delete;
1106
+
1107
+ ~CpuloadavgsData() = default;
1108
+
1109
+ public:
1110
+ bool IsDataValid() const
1111
+ {
1112
+ return ((Avg1min.IsSet() == true) && (Avg5min.IsSet() == true) && (Avg15min.IsSet() == true));
1113
+ }
1114
+
1115
+ public:
1116
+ Core::JSON::DecUInt64 Avg1min; // 1min cpuload average
1117
+ Core::JSON::DecUInt64 Avg5min; // 5min cpuload average
1118
+ Core::JSON::DecUInt64 Avg15min; // 15min cpuload average
1119
+ }; // class CpuloadavgsData
1120
+
1121
+ SysteminfoData()
1122
+ : Core::JSON::Container()
1123
+ {
1124
+ Add(_T("version"), &Version);
1125
+ Add(_T("uptime"), &Uptime);
1126
+ Add(_T("totalram"), &Totalram);
1127
+ Add(_T("freeram"), &Freeram);
1128
+ Add(_T("totalswap"), &Totalswap);
1129
+ Add(_T("freeswap"), &Freeswap);
1130
+ Add(_T("devicename"), &Devicename);
1131
+ Add(_T("cpuload"), &Cpuload);
1132
+ Add(_T("cpuloadavg"), &Cpuloadavg);
1133
+ Add(_T("serialnumber"), &Serialnumber);
1134
+ Add(_T("time"), &Time);
1135
+ }
1136
+
1137
+ SysteminfoData(const SysteminfoData&) = delete;
1138
+ SysteminfoData(SysteminfoData&&) noexcept = delete;
1139
+
1140
+ SysteminfoData& operator=(const SysteminfoData&) = delete;
1141
+ SysteminfoData& operator=(SysteminfoData&&) noexcept = delete;
1142
+
1143
+ ~SysteminfoData() = default;
1144
+
1145
+ public:
1146
+ bool IsDataValid() const
1147
+ {
1148
+ return ((Version.IsSet() == true) && (Uptime.IsSet() == true) && (Totalram.IsSet() == true) && (Freeram.IsSet() == true) && (Totalswap.IsSet() == true) && (Freeswap.IsSet() == true) && (Devicename.IsSet() == true) && (Cpuload.IsSet() == true) && ((Cpuloadavg.IsSet() == true) && (Cpuloadavg.IsDataValid() == true)) && (Serialnumber.IsSet() == true) && (Time.IsSet() == true));
1149
+ }
1150
+
1151
+ public:
1152
+ Core::JSON::String Version; // Software version (in form *version#hashtag*)
1153
+ Core::JSON::DecUInt64 Uptime; // System uptime (in seconds)
1154
+ Core::JSON::DecUInt64 Totalram; // Total installed system RAM memory (in bytes)
1155
+ Core::JSON::DecUInt64 Freeram; // Free system RAM memory (in bytes)
1156
+ Core::JSON::DecUInt64 Totalswap; // Total swap space (in bytes)
1157
+ Core::JSON::DecUInt64 Freeswap; // Swap space still available (in bytes)
1158
+ Core::JSON::String Devicename; // Host name
1159
+ Core::JSON::String Cpuload; // Current CPU load (percentage)
1160
+ SysteminfoData::CpuloadavgsData Cpuloadavg; // CPU load average
1161
+ Core::JSON::String Serialnumber; // Device serial number
1162
+ Core::JSON::String Time; // Current system date and time
1163
+ }; // class SysteminfoData
1164
+
1165
+ } // namespace DeviceInfo
1166
+
1167
+ POP_WARNING()
1168
+
1169
+ } // namespace JsonData
1170
+
1171
+ // Enum conversion handlers
1172
+ ENUM_CONVERSION_HANDLER(JsonData::DeviceInfo::VideodisplayType)
1173
+ ENUM_CONVERSION_HANDLER(JsonData::DeviceInfo::Output_resolutionType)
1174
+ ENUM_CONVERSION_HANDLER(JsonData::DeviceInfo::CopyprotectionType)
1175
+ ENUM_CONVERSION_HANDLER(JsonData::DeviceInfo::AudioportType)
1176
+ ENUM_CONVERSION_HANDLER(JsonData::DeviceInfo::AudiocapabilityType)
1177
+ ENUM_CONVERSION_HANDLER(JsonData::DeviceInfo::Ms12capabilityType)
1178
+ ENUM_CONVERSION_HANDLER(JsonData::DeviceInfo::Ms12profileType)
1179
+ ENUM_CONVERSION_HANDLER(JsonData::DeviceInfo::FirmwareversionData::YoctoType)
1180
+ ENUM_CONVERSION_HANDLER(JsonData::DeviceInfo::MakeData::MakeType)
1181
+ ENUM_CONVERSION_HANDLER(JsonData::DeviceInfo::ModelidData::SkuType)
1182
+ ENUM_CONVERSION_HANDLER(JsonData::DeviceInfo::DevicetypeData::DevicetypeType)
1183
+ ENUM_CONVERSION_HANDLER(JsonData::DeviceInfo::DistributoridData::DistributoridType)
1184
+
1185
+ }
1186
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_DisplayInfo.h ADDED
@@ -0,0 +1,89 @@
1
+ // C++ types for Display Info API.
2
+ // Generated automatically from 'DisplayInfo.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace DisplayInfo {
18
+
19
+ // Method params/result classes
20
+ //
21
+
22
+ class DisplayinfoData : public Core::JSON::Container {
23
+ public:
24
+ // HDCP Protection
25
+ enum class HdcpprotectionType : uint8_t {
26
+ UNENCRYPTED,
27
+ HDCP1X,
28
+ HDCP2X
29
+ };
30
+
31
+ // HDR Type used
32
+ enum class HdrtypeType : uint8_t {
33
+ HDROFF,
34
+ HDR10,
35
+ HDR10PLUS,
36
+ HDRDOLBYVISION,
37
+ HDRTECHNICOLOR
38
+ };
39
+
40
+ DisplayinfoData()
41
+ : Core::JSON::Container()
42
+ {
43
+ Add(_T("totalgpuram"), &Totalgpuram);
44
+ Add(_T("freegpuram"), &Freegpuram);
45
+ Add(_T("audiopassthrough"), &Audiopassthrough);
46
+ Add(_T("connected"), &Connected);
47
+ Add(_T("width"), &Width);
48
+ Add(_T("height"), &Height);
49
+ Add(_T("hdcpprotection"), &Hdcpprotection);
50
+ Add(_T("hdrtype"), &Hdrtype);
51
+ }
52
+
53
+ DisplayinfoData(const DisplayinfoData&) = delete;
54
+ DisplayinfoData(DisplayinfoData&&) noexcept = delete;
55
+
56
+ DisplayinfoData& operator=(const DisplayinfoData&) = delete;
57
+ DisplayinfoData& operator=(DisplayinfoData&&) noexcept = delete;
58
+
59
+ ~DisplayinfoData() = default;
60
+
61
+ public:
62
+ bool IsDataValid() const
63
+ {
64
+ return ((Totalgpuram.IsSet() == true) && (Freegpuram.IsSet() == true) && (Audiopassthrough.IsSet() == true) && (Connected.IsSet() == true) && (Width.IsSet() == true) && (Height.IsSet() == true) && (Hdcpprotection.IsSet() == true) && (Hdrtype.IsSet() == true));
65
+ }
66
+
67
+ public:
68
+ Core::JSON::DecUInt64 Totalgpuram; // Total GPU DRAM memory (in bytes)
69
+ Core::JSON::DecUInt64 Freegpuram; // Free GPU DRAM memory (in bytes)
70
+ Core::JSON::Boolean Audiopassthrough; // Audio Pass through is support for this device
71
+ Core::JSON::Boolean Connected; // HDMI display connection status
72
+ Core::JSON::DecUInt32 Width; // Width of the connected HDMI display
73
+ Core::JSON::DecUInt32 Height; // Height of the connected HDMI display
74
+ Core::JSON::EnumType<DisplayinfoData::HdcpprotectionType> Hdcpprotection; // HDCP Protection
75
+ Core::JSON::EnumType<DisplayinfoData::HdrtypeType> Hdrtype; // HDR Type used
76
+ }; // class DisplayinfoData
77
+
78
+ } // namespace DisplayInfo
79
+
80
+ POP_WARNING()
81
+
82
+ } // namespace JsonData
83
+
84
+ // Enum conversion handlers
85
+ ENUM_CONVERSION_HANDLER(JsonData::DisplayInfo::DisplayinfoData::HdcpprotectionType)
86
+ ENUM_CONVERSION_HANDLER(JsonData::DisplayInfo::DisplayinfoData::HdrtypeType)
87
+
88
+ }
89
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_DisplayProperties.h ADDED
@@ -0,0 +1,40 @@
1
+ // C++ types for DisplayProperties API.
2
+ // Generated automatically from 'IDisplayInfo.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IDisplayInfo.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace DisplayProperties {
18
+
19
+ // Method params/result classes
20
+ //
21
+
22
+ } // namespace DisplayProperties
23
+
24
+ POP_WARNING()
25
+
26
+ } // namespace JsonData
27
+
28
+ // Enum conversion handlers
29
+ ENUM_CONVERSION_HANDLER(Exchange::IConnectionProperties::HDCPProtectionType)
30
+ ENUM_CONVERSION_HANDLER(Exchange::IConnectionProperties::INotification::Source)
31
+ ENUM_CONVERSION_HANDLER(Exchange::IHDRProperties::HDRType)
32
+ ENUM_CONVERSION_HANDLER(Exchange::IDisplayProperties::ColourSpaceType)
33
+ ENUM_CONVERSION_HANDLER(Exchange::IDisplayProperties::FrameRateType)
34
+ ENUM_CONVERSION_HANDLER(Exchange::IDisplayProperties::ColourDepthType)
35
+ ENUM_CONVERSION_HANDLER(Exchange::IDisplayProperties::ColorimetryType)
36
+ ENUM_CONVERSION_HANDLER(Exchange::IDisplayProperties::QuantizationRangeType)
37
+ ENUM_CONVERSION_HANDLER(Exchange::IDisplayProperties::EotfType)
38
+
39
+ }
40
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_DolbyOutput.h ADDED
@@ -0,0 +1,65 @@
1
+ // C++ types for Output API.
2
+ // Generated automatically from 'IDolby.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IDolby.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace Dolby {
18
+
19
+ namespace Output {
20
+
21
+ // Method params/result classes
22
+ //
23
+
24
+ class AudioModeChangedParamsData : public Core::JSON::Container {
25
+ public:
26
+ AudioModeChangedParamsData()
27
+ : Core::JSON::Container()
28
+ {
29
+ Add(_T("mode"), &Mode);
30
+ Add(_T("enabled"), &Enabled);
31
+ }
32
+
33
+ AudioModeChangedParamsData(const AudioModeChangedParamsData&) = delete;
34
+ AudioModeChangedParamsData(AudioModeChangedParamsData&&) noexcept = delete;
35
+
36
+ AudioModeChangedParamsData& operator=(const AudioModeChangedParamsData&) = delete;
37
+ AudioModeChangedParamsData& operator=(AudioModeChangedParamsData&&) noexcept = delete;
38
+
39
+ ~AudioModeChangedParamsData() = default;
40
+
41
+ public:
42
+ bool IsDataValid() const
43
+ {
44
+ return ((Mode.IsSet() == true) && (Enabled.IsSet() == true));
45
+ }
46
+
47
+ public:
48
+ Core::JSON::EnumType<Exchange::Dolby::IOutput::SoundModes> Mode; // Changed Mode
49
+ Core::JSON::Boolean Enabled; // Enabled/Disabled
50
+ }; // class AudioModeChangedParamsData
51
+
52
+ } // namespace Output
53
+
54
+ } // namespace Dolby
55
+
56
+ POP_WARNING()
57
+
58
+ } // namespace JsonData
59
+
60
+ // Enum conversion handlers
61
+ ENUM_CONVERSION_HANDLER(Exchange::Dolby::IOutput::SoundModes)
62
+ ENUM_CONVERSION_HANDLER(Exchange::Dolby::IOutput::Type)
63
+
64
+ }
65
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_FirmwareControl.h ADDED
@@ -0,0 +1,168 @@
1
+ // C++ types for Firmware Control API.
2
+ // Generated automatically from 'FirmwareControl.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace FirmwareControl {
18
+
19
+ // Common enums
20
+ //
21
+
22
+ // Upgrade status
23
+ enum class StatusType : uint8_t {
24
+ NONE,
25
+ UPGRADESTARTED,
26
+ DOWNLOADSTARTED,
27
+ DOWNLOADABORTED,
28
+ DOWNLOADCOMPLETED,
29
+ INSTALLINITIATED,
30
+ INSTALLNOTSTARTED,
31
+ INSTALLABORTED,
32
+ INSTALLSTARTED,
33
+ UPGRADECOMPLETED,
34
+ UPGRADECANCELLED
35
+ };
36
+
37
+ // Method params/result classes
38
+ //
39
+
40
+ class ResumeParamsData : public Core::JSON::Container {
41
+ public:
42
+ ResumeParamsData()
43
+ : Core::JSON::Container()
44
+ {
45
+ Add(_T("name"), &Name);
46
+ Add(_T("location"), &Location);
47
+ }
48
+
49
+ ResumeParamsData(const ResumeParamsData&) = delete;
50
+ ResumeParamsData(ResumeParamsData&&) noexcept = delete;
51
+
52
+ ResumeParamsData& operator=(const ResumeParamsData&) = delete;
53
+ ResumeParamsData& operator=(ResumeParamsData&&) noexcept = delete;
54
+
55
+ ~ResumeParamsData() = default;
56
+
57
+ public:
58
+ bool IsDataValid() const
59
+ {
60
+ return (Name.IsSet() == true);
61
+ }
62
+
63
+ public:
64
+ Core::JSON::String Name; // Name of the firmware
65
+ Core::JSON::String Location; // Location or URL of the firmware to be upgraded
66
+ }; // class ResumeParamsData
67
+
68
+ class UpgradeParamsData : public Core::JSON::Container {
69
+ public:
70
+ // Type of the firmware
71
+ enum class TypeType : uint8_t {
72
+ CDL,
73
+ RCDL
74
+ };
75
+
76
+ UpgradeParamsData()
77
+ : Core::JSON::Container()
78
+ {
79
+ Add(_T("name"), &Name);
80
+ Add(_T("location"), &Location);
81
+ Add(_T("type"), &Type);
82
+ Add(_T("progressinterval"), &Progressinterval);
83
+ Add(_T("hmac"), &Hmac);
84
+ }
85
+
86
+ UpgradeParamsData(const UpgradeParamsData&) = delete;
87
+ UpgradeParamsData(UpgradeParamsData&&) noexcept = delete;
88
+
89
+ UpgradeParamsData& operator=(const UpgradeParamsData&) = delete;
90
+ UpgradeParamsData& operator=(UpgradeParamsData&&) noexcept = delete;
91
+
92
+ ~UpgradeParamsData() = default;
93
+
94
+ public:
95
+ bool IsDataValid() const
96
+ {
97
+ return (Name.IsSet() == true);
98
+ }
99
+
100
+ public:
101
+ Core::JSON::String Name; // Name of the firmware
102
+ Core::JSON::String Location; // Location or URL of the firmware to be upgraded
103
+ Core::JSON::EnumType<UpgradeParamsData::TypeType> Type; // Type of the firmware
104
+ Core::JSON::DecUInt16 Progressinterval; // Number of seconds between progress update events (5 seconds, 10 seconds etc). 0 means invoking callback only once to report final upgrade result
105
+ Core::JSON::String Hmac; // HMAC value of firmare
106
+ }; // class UpgradeParamsData
107
+
108
+ class UpgradeprogressParamsData : public Core::JSON::Container {
109
+ public:
110
+ // Reason of error
111
+ enum class ErrorType : uint8_t {
112
+ NONE,
113
+ GENERIC,
114
+ INVALIDPARAMETERS,
115
+ INVALIDSTATE,
116
+ NOENOUGHSPACE,
117
+ OPERATIONOTSUPPORTED,
118
+ INCORRECTHASH,
119
+ UNAUTHENTICATED,
120
+ UNAVAILABLE,
121
+ TIMEDOUT,
122
+ DOWNLOADDIRECTORYNOTEXIST,
123
+ RESUMENOTSUPPORTED,
124
+ INVALIDRANGE,
125
+ UNKOWN
126
+ };
127
+
128
+ UpgradeprogressParamsData()
129
+ : Core::JSON::Container()
130
+ {
131
+ Add(_T("status"), &Status);
132
+ Add(_T("error"), &Error);
133
+ Add(_T("progress"), &Progress);
134
+ }
135
+
136
+ UpgradeprogressParamsData(const UpgradeprogressParamsData&) = delete;
137
+ UpgradeprogressParamsData(UpgradeprogressParamsData&&) noexcept = delete;
138
+
139
+ UpgradeprogressParamsData& operator=(const UpgradeprogressParamsData&) = delete;
140
+ UpgradeprogressParamsData& operator=(UpgradeprogressParamsData&&) noexcept = delete;
141
+
142
+ ~UpgradeprogressParamsData() = default;
143
+
144
+ public:
145
+ bool IsDataValid() const
146
+ {
147
+ return ((Status.IsSet() == true) && (Error.IsSet() == true) && (Progress.IsSet() == true));
148
+ }
149
+
150
+ public:
151
+ Core::JSON::EnumType<StatusType> Status; // Upgrade status
152
+ Core::JSON::EnumType<UpgradeprogressParamsData::ErrorType> Error; // Reason of error
153
+ Core::JSON::DecUInt32 Progress; // Progress of upgrade (number of bytes transferred during download or percentage of completion during install
154
+ }; // class UpgradeprogressParamsData
155
+
156
+ } // namespace FirmwareControl
157
+
158
+ POP_WARNING()
159
+
160
+ } // namespace JsonData
161
+
162
+ // Enum conversion handlers
163
+ ENUM_CONVERSION_HANDLER(JsonData::FirmwareControl::UpgradeParamsData::TypeType)
164
+ ENUM_CONVERSION_HANDLER(JsonData::FirmwareControl::StatusType)
165
+ ENUM_CONVERSION_HANDLER(JsonData::FirmwareControl::UpgradeprogressParamsData::ErrorType)
166
+
167
+ }
168
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_HDRProperties.h ADDED
@@ -0,0 +1,34 @@
1
+ // C++ types for HDRProperties API.
2
+ // Generated automatically from 'IDisplayInfo.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IDisplayInfo.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace HDRProperties {
18
+
19
+ // Method params/result classes
20
+ //
21
+
22
+ } // namespace HDRProperties
23
+
24
+ POP_WARNING()
25
+
26
+ } // namespace JsonData
27
+
28
+ // Enum conversion handlers
29
+ ENUM_CONVERSION_HANDLER(Exchange::IConnectionProperties::HDCPProtectionType)
30
+ ENUM_CONVERSION_HANDLER(Exchange::IConnectionProperties::INotification::Source)
31
+ ENUM_CONVERSION_HANDLER(Exchange::IHDRProperties::HDRType)
32
+
33
+ }
34
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_IOConnector.h ADDED
@@ -0,0 +1,54 @@
1
+ // C++ types for IO Connector API.
2
+ // Generated automatically from 'IOConnector.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+
10
+ namespace WPEFramework {
11
+
12
+ namespace JsonData {
13
+
14
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
15
+
16
+ namespace IOConnector {
17
+
18
+ // Method params/result classes
19
+ //
20
+
21
+ class ActivityParamsData : public Core::JSON::Container {
22
+ public:
23
+ ActivityParamsData()
24
+ : Core::JSON::Container()
25
+ {
26
+ Add(_T("value"), &Value);
27
+ }
28
+
29
+ ActivityParamsData(const ActivityParamsData&) = delete;
30
+ ActivityParamsData(ActivityParamsData&&) noexcept = delete;
31
+
32
+ ActivityParamsData& operator=(const ActivityParamsData&) = delete;
33
+ ActivityParamsData& operator=(ActivityParamsData&&) noexcept = delete;
34
+
35
+ ~ActivityParamsData() = default;
36
+
37
+ public:
38
+ bool IsDataValid() const
39
+ {
40
+ return (Value.IsSet() == true);
41
+ }
42
+
43
+ public:
44
+ Core::JSON::DecSInt32 Value;
45
+ }; // class ActivityParamsData
46
+
47
+ } // namespace IOConnector
48
+
49
+ POP_WARNING()
50
+
51
+ } // namespace JsonData
52
+
53
+ }
54
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_IOControl.h ADDED
@@ -0,0 +1,54 @@
1
+ // C++ types for IO Control API.
2
+ // Generated automatically from 'IOControl.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+
10
+ namespace WPEFramework {
11
+
12
+ namespace JsonData {
13
+
14
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
15
+
16
+ namespace IOControl {
17
+
18
+ // Method params/result classes
19
+ //
20
+
21
+ class ActivityParamsData : public Core::JSON::Container {
22
+ public:
23
+ ActivityParamsData()
24
+ : Core::JSON::Container()
25
+ {
26
+ Add(_T("value"), &Value);
27
+ }
28
+
29
+ ActivityParamsData(const ActivityParamsData&) = delete;
30
+ ActivityParamsData(ActivityParamsData&&) noexcept = delete;
31
+
32
+ ActivityParamsData& operator=(const ActivityParamsData&) = delete;
33
+ ActivityParamsData& operator=(ActivityParamsData&&) noexcept = delete;
34
+
35
+ ~ActivityParamsData() = default;
36
+
37
+ public:
38
+ bool IsDataValid() const
39
+ {
40
+ return (Value.IsSet() == true);
41
+ }
42
+
43
+ public:
44
+ Core::JSON::DecSInt32 Value;
45
+ }; // class ActivityParamsData
46
+
47
+ } // namespace IOControl
48
+
49
+ POP_WARNING()
50
+
51
+ } // namespace JsonData
52
+
53
+ }
54
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_InputSwitch.h ADDED
@@ -0,0 +1,115 @@
1
+ // C++ types for Input Switch API.
2
+ // Generated automatically from 'InputSwitch.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+
10
+ namespace WPEFramework {
11
+
12
+ namespace JsonData {
13
+
14
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
15
+
16
+ namespace InputSwitch {
17
+
18
+ // Common classes
19
+ //
20
+
21
+ class ChannelParamsInfo : public Core::JSON::Container {
22
+ public:
23
+ ChannelParamsInfo()
24
+ : Core::JSON::Container()
25
+ {
26
+ _Init();
27
+ }
28
+
29
+ ChannelParamsInfo(const ChannelParamsInfo& _other)
30
+ : Core::JSON::Container()
31
+ , Name(_other.Name)
32
+ , Enabled(_other.Enabled)
33
+ {
34
+ _Init();
35
+ }
36
+
37
+ ChannelParamsInfo(ChannelParamsInfo&& _other) noexcept
38
+ : Core::JSON::Container()
39
+ , Name(std::move(_other.Name))
40
+ , Enabled(std::move(_other.Enabled))
41
+ {
42
+ _Init();
43
+ }
44
+
45
+ ChannelParamsInfo& operator=(const ChannelParamsInfo& _rhs)
46
+ {
47
+ Name = _rhs.Name;
48
+ Enabled = _rhs.Enabled;
49
+ return (*this);
50
+ }
51
+
52
+ ChannelParamsInfo& operator=(ChannelParamsInfo&& _rhs) noexcept
53
+ {
54
+ Name = std::move(_rhs.Name);
55
+ Enabled = std::move(_rhs.Enabled);
56
+ return (*this);
57
+ }
58
+
59
+ ~ChannelParamsInfo() = default;
60
+
61
+ public:
62
+ bool IsDataValid() const
63
+ {
64
+ return ((Name.IsSet() == true) && (Enabled.IsSet() == true));
65
+ }
66
+
67
+ private:
68
+ void _Init()
69
+ {
70
+ Add(_T("name"), &Name);
71
+ Add(_T("enabled"), &Enabled);
72
+ }
73
+
74
+ public:
75
+ Core::JSON::String Name; // Callsign that is the owner of this channel
76
+ Core::JSON::Boolean Enabled; // Enable or disable the throughput of data through this channel
77
+ }; // class ChannelParamsInfo
78
+
79
+ class SelectParamsInfo : public Core::JSON::Container {
80
+ public:
81
+ SelectParamsInfo()
82
+ : Core::JSON::Container()
83
+ {
84
+ Add(_T("name"), &Name);
85
+ }
86
+
87
+ SelectParamsInfo(const SelectParamsInfo&) = delete;
88
+ SelectParamsInfo(SelectParamsInfo&&) noexcept = delete;
89
+
90
+ SelectParamsInfo& operator=(const SelectParamsInfo&) = delete;
91
+ SelectParamsInfo& operator=(SelectParamsInfo&&) noexcept = delete;
92
+
93
+ ~SelectParamsInfo() = default;
94
+
95
+ public:
96
+ bool IsDataValid() const
97
+ {
98
+ return (Name.IsSet() == true);
99
+ }
100
+
101
+ public:
102
+ Core::JSON::String Name; // Callsign that is the owner of this channel
103
+ }; // class SelectParamsInfo
104
+
105
+ // Method params/result classes
106
+ //
107
+
108
+ } // namespace InputSwitch
109
+
110
+ POP_WARNING()
111
+
112
+ } // namespace JsonData
113
+
114
+ }
115
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_LISA.h ADDED
@@ -0,0 +1,733 @@
1
+ // C++ types for LISA API.
2
+ // Generated automatically from 'LISA.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+
10
+ namespace WPEFramework {
11
+
12
+ namespace JsonData {
13
+
14
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
15
+
16
+ namespace LISA {
17
+
18
+ // Common classes
19
+ //
20
+
21
+ class CancelParamsInfo : public Core::JSON::Container {
22
+ public:
23
+ CancelParamsInfo()
24
+ : Core::JSON::Container()
25
+ {
26
+ Add(_T("handle"), &Handle);
27
+ }
28
+
29
+ CancelParamsInfo(const CancelParamsInfo&) = delete;
30
+ CancelParamsInfo(CancelParamsInfo&&) noexcept = delete;
31
+
32
+ CancelParamsInfo& operator=(const CancelParamsInfo&) = delete;
33
+ CancelParamsInfo& operator=(CancelParamsInfo&&) noexcept = delete;
34
+
35
+ ~CancelParamsInfo() = default;
36
+
37
+ public:
38
+ bool IsDataValid() const
39
+ {
40
+ return (Handle.IsSet() == true);
41
+ }
42
+
43
+ public:
44
+ Core::JSON::String Handle; // Operation handle
45
+ }; // class CancelParamsInfo
46
+
47
+ class GetStorageDetailsParamsInfo : public Core::JSON::Container {
48
+ public:
49
+ GetStorageDetailsParamsInfo()
50
+ : Core::JSON::Container()
51
+ {
52
+ Add(_T("type"), &Type);
53
+ Add(_T("id"), &Id);
54
+ Add(_T("version"), &Version);
55
+ }
56
+
57
+ GetStorageDetailsParamsInfo(const GetStorageDetailsParamsInfo&) = delete;
58
+ GetStorageDetailsParamsInfo(GetStorageDetailsParamsInfo&&) noexcept = delete;
59
+
60
+ GetStorageDetailsParamsInfo& operator=(const GetStorageDetailsParamsInfo&) = delete;
61
+ GetStorageDetailsParamsInfo& operator=(GetStorageDetailsParamsInfo&&) noexcept = delete;
62
+
63
+ ~GetStorageDetailsParamsInfo() = default;
64
+
65
+ public:
66
+ bool IsDataValid() const
67
+ {
68
+ return ((Type.IsSet() == true) && (Id.IsSet() == true) && (Version.IsSet() == true));
69
+ }
70
+
71
+ public:
72
+ Core::JSON::String Type; // Application type (mime-type)
73
+ Core::JSON::String Id; // Application ID
74
+ Core::JSON::String Version; // Application version
75
+ }; // class GetStorageDetailsParamsInfo
76
+
77
+ class KeyvalueInfo : public Core::JSON::Container {
78
+ public:
79
+ KeyvalueInfo()
80
+ : Core::JSON::Container()
81
+ {
82
+ _Init();
83
+ }
84
+
85
+ KeyvalueInfo(const KeyvalueInfo& _other)
86
+ : Core::JSON::Container()
87
+ , Key(_other.Key)
88
+ , Value(_other.Value)
89
+ {
90
+ _Init();
91
+ }
92
+
93
+ KeyvalueInfo(KeyvalueInfo&& _other) noexcept
94
+ : Core::JSON::Container()
95
+ , Key(std::move(_other.Key))
96
+ , Value(std::move(_other.Value))
97
+ {
98
+ _Init();
99
+ }
100
+
101
+ KeyvalueInfo& operator=(const KeyvalueInfo& _rhs)
102
+ {
103
+ Key = _rhs.Key;
104
+ Value = _rhs.Value;
105
+ return (*this);
106
+ }
107
+
108
+ KeyvalueInfo& operator=(KeyvalueInfo&& _rhs) noexcept
109
+ {
110
+ Key = std::move(_rhs.Key);
111
+ Value = std::move(_rhs.Value);
112
+ return (*this);
113
+ }
114
+
115
+ ~KeyvalueInfo() = default;
116
+
117
+ public:
118
+ bool IsDataValid() const
119
+ {
120
+ return ((Key.IsSet() == true) && (Value.IsSet() == true));
121
+ }
122
+
123
+ private:
124
+ void _Init()
125
+ {
126
+ Add(_T("key"), &Key);
127
+ Add(_T("value"), &Value);
128
+ }
129
+
130
+ public:
131
+ Core::JSON::String Key; // Key property
132
+ Core::JSON::String Value; // Value property
133
+ }; // class KeyvalueInfo
134
+
135
+ // Method params/result classes
136
+ //
137
+
138
+ class ClearAuxMetadataParamsData : public Core::JSON::Container {
139
+ public:
140
+ ClearAuxMetadataParamsData()
141
+ : Core::JSON::Container()
142
+ {
143
+ Add(_T("type"), &Type);
144
+ Add(_T("id"), &Id);
145
+ Add(_T("version"), &Version);
146
+ Add(_T("key"), &Key);
147
+ }
148
+
149
+ ClearAuxMetadataParamsData(const ClearAuxMetadataParamsData&) = delete;
150
+ ClearAuxMetadataParamsData(ClearAuxMetadataParamsData&&) noexcept = delete;
151
+
152
+ ClearAuxMetadataParamsData& operator=(const ClearAuxMetadataParamsData&) = delete;
153
+ ClearAuxMetadataParamsData& operator=(ClearAuxMetadataParamsData&&) noexcept = delete;
154
+
155
+ ~ClearAuxMetadataParamsData() = default;
156
+
157
+ public:
158
+ bool IsDataValid() const
159
+ {
160
+ return ((Type.IsSet() == true) && (Id.IsSet() == true) && (Version.IsSet() == true) && (Key.IsSet() == true));
161
+ }
162
+
163
+ public:
164
+ Core::JSON::String Type; // Application type (mime-type)
165
+ Core::JSON::String Id; // Application ID
166
+ Core::JSON::String Version; // Application version
167
+ Core::JSON::String Key; // Metadata key
168
+ }; // class ClearAuxMetadataParamsData
169
+
170
+ class DownloadParamsData : public Core::JSON::Container {
171
+ public:
172
+ DownloadParamsData()
173
+ : Core::JSON::Container()
174
+ {
175
+ Add(_T("type"), &Type);
176
+ Add(_T("id"), &Id);
177
+ Add(_T("version"), &Version);
178
+ Add(_T("resKey"), &ResKey);
179
+ Add(_T("resUrl"), &ResUrl);
180
+ }
181
+
182
+ DownloadParamsData(const DownloadParamsData&) = delete;
183
+ DownloadParamsData(DownloadParamsData&&) noexcept = delete;
184
+
185
+ DownloadParamsData& operator=(const DownloadParamsData&) = delete;
186
+ DownloadParamsData& operator=(DownloadParamsData&&) noexcept = delete;
187
+
188
+ ~DownloadParamsData() = default;
189
+
190
+ public:
191
+ bool IsDataValid() const
192
+ {
193
+ return ((Type.IsSet() == true) && (Id.IsSet() == true) && (Version.IsSet() == true) && (ResKey.IsSet() == true) && (ResUrl.IsSet() == true));
194
+ }
195
+
196
+ public:
197
+ Core::JSON::String Type; // Application type (mime-type)
198
+ Core::JSON::String Id; // Application ID
199
+ Core::JSON::String Version; // Application version
200
+ Core::JSON::String ResKey; // Key to access given resource file from db entry
201
+ Core::JSON::String ResUrl; // Url where to download a resource from
202
+ }; // class DownloadParamsData
203
+
204
+ class AppslistpayloadData : public Core::JSON::Container {
205
+ public:
206
+ class AppData : public Core::JSON::Container {
207
+ public:
208
+ class InstalledappData : public Core::JSON::Container {
209
+ public:
210
+ InstalledappData()
211
+ : Core::JSON::Container()
212
+ {
213
+ _Init();
214
+ }
215
+
216
+ InstalledappData(const InstalledappData& _other)
217
+ : Core::JSON::Container()
218
+ , Version(_other.Version)
219
+ , AppName(_other.AppName)
220
+ , Category(_other.Category)
221
+ , Url(_other.Url)
222
+ {
223
+ _Init();
224
+ }
225
+
226
+ InstalledappData(InstalledappData&& _other) noexcept
227
+ : Core::JSON::Container()
228
+ , Version(std::move(_other.Version))
229
+ , AppName(std::move(_other.AppName))
230
+ , Category(std::move(_other.Category))
231
+ , Url(std::move(_other.Url))
232
+ {
233
+ _Init();
234
+ }
235
+
236
+ InstalledappData& operator=(const InstalledappData& _rhs)
237
+ {
238
+ Version = _rhs.Version;
239
+ AppName = _rhs.AppName;
240
+ if (_rhs.Category.Value().empty() == false) {
241
+ Category = _rhs.Category;
242
+ }
243
+ Url = _rhs.Url;
244
+ return (*this);
245
+ }
246
+
247
+ InstalledappData& operator=(InstalledappData&& _rhs) noexcept
248
+ {
249
+ Version = std::move(_rhs.Version);
250
+ AppName = std::move(_rhs.AppName);
251
+ Category = std::move(_rhs.Category);
252
+ Url = std::move(_rhs.Url);
253
+ return (*this);
254
+ }
255
+
256
+ ~InstalledappData() = default;
257
+
258
+ public:
259
+ bool IsDataValid() const
260
+ {
261
+ return ((Version.IsSet() == true) && (AppName.IsSet() == true) && (Url.IsSet() == true));
262
+ }
263
+
264
+ private:
265
+ void _Init()
266
+ {
267
+ Add(_T("version"), &Version);
268
+ Add(_T("appName"), &AppName);
269
+ Add(_T("category"), &Category);
270
+ Add(_T("url"), &Url);
271
+ }
272
+
273
+ public:
274
+ Core::JSON::String Version; // Application version
275
+ Core::JSON::String AppName; // Application name
276
+ Core::JSON::String Category; // Application category
277
+ Core::JSON::String Url; // Application url
278
+ }; // class InstalledappData
279
+
280
+ AppData()
281
+ : Core::JSON::Container()
282
+ {
283
+ _Init();
284
+ }
285
+
286
+ AppData(const AppData& _other)
287
+ : Core::JSON::Container()
288
+ , Id(_other.Id)
289
+ , Type(_other.Type)
290
+ , Installed(_other.Installed)
291
+ {
292
+ _Init();
293
+ }
294
+
295
+ AppData(AppData&& _other) noexcept
296
+ : Core::JSON::Container()
297
+ , Id(std::move(_other.Id))
298
+ , Type(std::move(_other.Type))
299
+ , Installed(std::move(_other.Installed))
300
+ {
301
+ _Init();
302
+ }
303
+
304
+ AppData& operator=(const AppData& _rhs)
305
+ {
306
+ Id = _rhs.Id;
307
+ Type = _rhs.Type;
308
+ Installed = _rhs.Installed;
309
+ return (*this);
310
+ }
311
+
312
+ AppData& operator=(AppData&& _rhs) noexcept
313
+ {
314
+ Id = std::move(_rhs.Id);
315
+ Type = std::move(_rhs.Type);
316
+ Installed = std::move(_rhs.Installed);
317
+ return (*this);
318
+ }
319
+
320
+ ~AppData() = default;
321
+
322
+ public:
323
+ bool IsDataValid() const
324
+ {
325
+ return ((Id.IsSet() == true) && (Type.IsSet() == true) && (Installed.IsSet() == true));
326
+ }
327
+
328
+ private:
329
+ void _Init()
330
+ {
331
+ Add(_T("id"), &Id);
332
+ Add(_T("type"), &Type);
333
+ Add(_T("installed"), &Installed);
334
+ }
335
+
336
+ public:
337
+ Core::JSON::String Id; // Application ID
338
+ Core::JSON::String Type; // Application type (mime-type)
339
+ Core::JSON::ArrayType<AppslistpayloadData::AppData::InstalledappData> Installed;
340
+ }; // class AppData
341
+
342
+ AppslistpayloadData()
343
+ : Core::JSON::Container()
344
+ {
345
+ Add(_T("apps"), &Apps);
346
+ }
347
+
348
+ AppslistpayloadData(const AppslistpayloadData&) = delete;
349
+ AppslistpayloadData(AppslistpayloadData&&) noexcept = delete;
350
+
351
+ AppslistpayloadData& operator=(const AppslistpayloadData&) = delete;
352
+ AppslistpayloadData& operator=(AppslistpayloadData&&) noexcept = delete;
353
+
354
+ ~AppslistpayloadData() = default;
355
+
356
+ public:
357
+ bool IsDataValid() const
358
+ {
359
+ return (Apps.IsSet() == true);
360
+ }
361
+
362
+ public:
363
+ Core::JSON::ArrayType<AppslistpayloadData::AppData> Apps;
364
+ }; // class AppslistpayloadData
365
+
366
+ class GetListParamsData : public Core::JSON::Container {
367
+ public:
368
+ GetListParamsData()
369
+ : Core::JSON::Container()
370
+ {
371
+ Add(_T("type"), &Type);
372
+ Add(_T("id"), &Id);
373
+ Add(_T("version"), &Version);
374
+ Add(_T("appName"), &AppName);
375
+ Add(_T("category"), &Category);
376
+ }
377
+
378
+ GetListParamsData(const GetListParamsData&) = delete;
379
+ GetListParamsData(GetListParamsData&&) noexcept = delete;
380
+
381
+ GetListParamsData& operator=(const GetListParamsData&) = delete;
382
+ GetListParamsData& operator=(GetListParamsData&&) noexcept = delete;
383
+
384
+ ~GetListParamsData() = default;
385
+
386
+ public:
387
+ bool IsDataValid() const
388
+ {
389
+ return ((Type.IsSet() == true) && (Id.IsSet() == true) && (Version.IsSet() == true));
390
+ }
391
+
392
+ public:
393
+ Core::JSON::String Type; // Application type (mime-type)
394
+ Core::JSON::String Id; // Application ID
395
+ Core::JSON::String Version; // Application version
396
+ Core::JSON::String AppName; // Application name
397
+ Core::JSON::String Category; // Application category
398
+ }; // class GetListParamsData
399
+
400
+ class LockinfoData : public Core::JSON::Container {
401
+ public:
402
+ LockinfoData()
403
+ : Core::JSON::Container()
404
+ {
405
+ Add(_T("reason"), &Reason);
406
+ Add(_T("owner"), &Owner);
407
+ }
408
+
409
+ LockinfoData(const LockinfoData&) = delete;
410
+ LockinfoData(LockinfoData&&) noexcept = delete;
411
+
412
+ LockinfoData& operator=(const LockinfoData&) = delete;
413
+ LockinfoData& operator=(LockinfoData&&) noexcept = delete;
414
+
415
+ ~LockinfoData() = default;
416
+
417
+ public:
418
+ bool IsDataValid() const
419
+ {
420
+ return (true);
421
+ }
422
+
423
+ public:
424
+ Core::JSON::String Reason; // Reason for lock
425
+ Core::JSON::String Owner; // Owner of lock
426
+ }; // class LockinfoData
427
+
428
+ class MetadatapayloadData : public Core::JSON::Container {
429
+ public:
430
+ MetadatapayloadData()
431
+ : Core::JSON::Container()
432
+ {
433
+ Add(_T("appName"), &AppName);
434
+ Add(_T("category"), &Category);
435
+ Add(_T("url"), &Url);
436
+ Add(_T("resources"), &Resources);
437
+ Add(_T("auxMetadata"), &AuxMetadata);
438
+ }
439
+
440
+ MetadatapayloadData(const MetadatapayloadData&) = delete;
441
+ MetadatapayloadData(MetadatapayloadData&&) noexcept = delete;
442
+
443
+ MetadatapayloadData& operator=(const MetadatapayloadData&) = delete;
444
+ MetadatapayloadData& operator=(MetadatapayloadData&&) noexcept = delete;
445
+
446
+ ~MetadatapayloadData() = default;
447
+
448
+ public:
449
+ bool IsDataValid() const
450
+ {
451
+ return ((Resources.IsSet() == true) && (AuxMetadata.IsSet() == true));
452
+ }
453
+
454
+ public:
455
+ Core::JSON::String AppName; // Application name
456
+ Core::JSON::String Category; // Application category
457
+ Core::JSON::String Url; // Application url
458
+ Core::JSON::ArrayType<KeyvalueInfo> Resources; // List of key-value entries
459
+ Core::JSON::ArrayType<KeyvalueInfo> AuxMetadata; // List of key-value entries
460
+ }; // class MetadatapayloadData
461
+
462
+ class StoragepayloadData : public Core::JSON::Container {
463
+ public:
464
+ class StorageData : public Core::JSON::Container {
465
+ public:
466
+ StorageData()
467
+ : Core::JSON::Container()
468
+ {
469
+ Add(_T("path"), &Path);
470
+ Add(_T("quotaKB"), &QuotaKB);
471
+ Add(_T("usedKB"), &UsedKB);
472
+ }
473
+
474
+ StorageData(const StorageData&) = delete;
475
+ StorageData(StorageData&&) noexcept = delete;
476
+
477
+ StorageData& operator=(const StorageData&) = delete;
478
+ StorageData& operator=(StorageData&&) noexcept = delete;
479
+
480
+ ~StorageData() = default;
481
+
482
+ public:
483
+ bool IsDataValid() const
484
+ {
485
+ return ((Path.IsSet() == true) && (UsedKB.IsSet() == true));
486
+ }
487
+
488
+ public:
489
+ Core::JSON::String Path; // Path in local filesystem
490
+ Core::JSON::String QuotaKB; // Number of used kilobytes of storage
491
+ Core::JSON::String UsedKB; // Number of used kilobytes of storage
492
+ }; // class StorageData
493
+
494
+ StoragepayloadData()
495
+ : Core::JSON::Container()
496
+ {
497
+ Add(_T("apps"), &Apps);
498
+ Add(_T("persistent"), &Persistent);
499
+ }
500
+
501
+ StoragepayloadData(const StoragepayloadData&) = delete;
502
+ StoragepayloadData(StoragepayloadData&&) noexcept = delete;
503
+
504
+ StoragepayloadData& operator=(const StoragepayloadData&) = delete;
505
+ StoragepayloadData& operator=(StoragepayloadData&&) noexcept = delete;
506
+
507
+ ~StoragepayloadData() = default;
508
+
509
+ public:
510
+ bool IsDataValid() const
511
+ {
512
+ return (((Apps.IsSet() == true) && (Apps.IsDataValid() == true)) && ((Persistent.IsSet() == true) && (Persistent.IsDataValid() == true)));
513
+ }
514
+
515
+ public:
516
+ StoragepayloadData::StorageData Apps; // Storage entry - used in results
517
+ StorageData Persistent; // Storage entry - used in results
518
+ }; // class StoragepayloadData
519
+
520
+ class InstallParamsData : public Core::JSON::Container {
521
+ public:
522
+ InstallParamsData()
523
+ : Core::JSON::Container()
524
+ {
525
+ Add(_T("type"), &Type);
526
+ Add(_T("id"), &Id);
527
+ Add(_T("version"), &Version);
528
+ Add(_T("url"), &Url);
529
+ Add(_T("appName"), &AppName);
530
+ Add(_T("category"), &Category);
531
+ }
532
+
533
+ InstallParamsData(const InstallParamsData&) = delete;
534
+ InstallParamsData(InstallParamsData&&) noexcept = delete;
535
+
536
+ InstallParamsData& operator=(const InstallParamsData&) = delete;
537
+ InstallParamsData& operator=(InstallParamsData&&) noexcept = delete;
538
+
539
+ ~InstallParamsData() = default;
540
+
541
+ public:
542
+ bool IsDataValid() const
543
+ {
544
+ return ((Type.IsSet() == true) && (Id.IsSet() == true) && (Version.IsSet() == true) && (Url.IsSet() == true) && (AppName.IsSet() == true) && (Category.IsSet() == true));
545
+ }
546
+
547
+ public:
548
+ Core::JSON::String Type; // Application type (mime-type)
549
+ Core::JSON::String Id; // Application ID
550
+ Core::JSON::String Version; // Application version
551
+ Core::JSON::String Url; // Application url
552
+ Core::JSON::String AppName; // Application name
553
+ Core::JSON::String Category; // Application category
554
+ }; // class InstallParamsData
555
+
556
+ class LockParamsData : public Core::JSON::Container {
557
+ public:
558
+ LockParamsData()
559
+ : Core::JSON::Container()
560
+ {
561
+ Add(_T("type"), &Type);
562
+ Add(_T("id"), &Id);
563
+ Add(_T("version"), &Version);
564
+ Add(_T("reason"), &Reason);
565
+ Add(_T("owner"), &Owner);
566
+ }
567
+
568
+ LockParamsData(const LockParamsData&) = delete;
569
+ LockParamsData(LockParamsData&&) noexcept = delete;
570
+
571
+ LockParamsData& operator=(const LockParamsData&) = delete;
572
+ LockParamsData& operator=(LockParamsData&&) noexcept = delete;
573
+
574
+ ~LockParamsData() = default;
575
+
576
+ public:
577
+ bool IsDataValid() const
578
+ {
579
+ return ((Type.IsSet() == true) && (Id.IsSet() == true) && (Version.IsSet() == true));
580
+ }
581
+
582
+ public:
583
+ Core::JSON::String Type; // Application type (mime-type)
584
+ Core::JSON::String Id; // Application ID
585
+ Core::JSON::String Version; // Application version
586
+ Core::JSON::String Reason; // Reason for lock
587
+ Core::JSON::String Owner; // Owner of lock
588
+ }; // class LockParamsData
589
+
590
+ class OperationStatusParamsData : public Core::JSON::Container {
591
+ public:
592
+ OperationStatusParamsData()
593
+ : Core::JSON::Container()
594
+ {
595
+ Add(_T("handle"), &Handle);
596
+ Add(_T("operation"), &Operation);
597
+ Add(_T("type"), &Type);
598
+ Add(_T("id"), &Id);
599
+ Add(_T("version"), &Version);
600
+ Add(_T("status"), &Status);
601
+ Add(_T("details"), &Details);
602
+ }
603
+
604
+ OperationStatusParamsData(const OperationStatusParamsData&) = delete;
605
+ OperationStatusParamsData(OperationStatusParamsData&&) noexcept = delete;
606
+
607
+ OperationStatusParamsData& operator=(const OperationStatusParamsData&) = delete;
608
+ OperationStatusParamsData& operator=(OperationStatusParamsData&&) noexcept = delete;
609
+
610
+ ~OperationStatusParamsData() = default;
611
+
612
+ public:
613
+ bool IsDataValid() const
614
+ {
615
+ return ((Handle.IsSet() == true) && (Operation.IsSet() == true) && (Type.IsSet() == true) && (Id.IsSet() == true) && (Version.IsSet() == true) && (Status.IsSet() == true));
616
+ }
617
+
618
+ public:
619
+ Core::JSON::String Handle; // Operation handle
620
+ Core::JSON::String Operation; // Operation
621
+ Core::JSON::String Type; // Application type (mime-type)
622
+ Core::JSON::String Id; // Application ID
623
+ Core::JSON::String Version; // Application version
624
+ Core::JSON::String Status; // Operation status
625
+ Core::JSON::String Details; // If error occurred this property contains details on what happened
626
+ }; // class OperationStatusParamsData
627
+
628
+ class ResetParamsData : public Core::JSON::Container {
629
+ public:
630
+ ResetParamsData()
631
+ : Core::JSON::Container()
632
+ {
633
+ Add(_T("type"), &Type);
634
+ Add(_T("id"), &Id);
635
+ Add(_T("version"), &Version);
636
+ Add(_T("resetType"), &ResetType);
637
+ }
638
+
639
+ ResetParamsData(const ResetParamsData&) = delete;
640
+ ResetParamsData(ResetParamsData&&) noexcept = delete;
641
+
642
+ ResetParamsData& operator=(const ResetParamsData&) = delete;
643
+ ResetParamsData& operator=(ResetParamsData&&) noexcept = delete;
644
+
645
+ ~ResetParamsData() = default;
646
+
647
+ public:
648
+ bool IsDataValid() const
649
+ {
650
+ return ((Type.IsSet() == true) && (Id.IsSet() == true) && (Version.IsSet() == true) && (ResetType.IsSet() == true));
651
+ }
652
+
653
+ public:
654
+ Core::JSON::String Type; // Application type (mime-type)
655
+ Core::JSON::String Id; // Application ID
656
+ Core::JSON::String Version; // Application version
657
+ Core::JSON::String ResetType; // Type of the reset to perform
658
+ }; // class ResetParamsData
659
+
660
+ class SetAuxMetadataParamsData : public Core::JSON::Container {
661
+ public:
662
+ SetAuxMetadataParamsData()
663
+ : Core::JSON::Container()
664
+ {
665
+ Add(_T("type"), &Type);
666
+ Add(_T("id"), &Id);
667
+ Add(_T("version"), &Version);
668
+ Add(_T("key"), &Key);
669
+ Add(_T("value"), &Value);
670
+ }
671
+
672
+ SetAuxMetadataParamsData(const SetAuxMetadataParamsData&) = delete;
673
+ SetAuxMetadataParamsData(SetAuxMetadataParamsData&&) noexcept = delete;
674
+
675
+ SetAuxMetadataParamsData& operator=(const SetAuxMetadataParamsData&) = delete;
676
+ SetAuxMetadataParamsData& operator=(SetAuxMetadataParamsData&&) noexcept = delete;
677
+
678
+ ~SetAuxMetadataParamsData() = default;
679
+
680
+ public:
681
+ bool IsDataValid() const
682
+ {
683
+ return ((Type.IsSet() == true) && (Id.IsSet() == true) && (Version.IsSet() == true) && (Key.IsSet() == true) && (Value.IsSet() == true));
684
+ }
685
+
686
+ public:
687
+ Core::JSON::String Type; // Application type (mime-type)
688
+ Core::JSON::String Id; // Application ID
689
+ Core::JSON::String Version; // Application version
690
+ Core::JSON::String Key; // Metadata key
691
+ Core::JSON::String Value; // Metadata value
692
+ }; // class SetAuxMetadataParamsData
693
+
694
+ class UninstallParamsData : public Core::JSON::Container {
695
+ public:
696
+ UninstallParamsData()
697
+ : Core::JSON::Container()
698
+ {
699
+ Add(_T("type"), &Type);
700
+ Add(_T("id"), &Id);
701
+ Add(_T("version"), &Version);
702
+ Add(_T("uninstallType"), &UninstallType);
703
+ }
704
+
705
+ UninstallParamsData(const UninstallParamsData&) = delete;
706
+ UninstallParamsData(UninstallParamsData&&) noexcept = delete;
707
+
708
+ UninstallParamsData& operator=(const UninstallParamsData&) = delete;
709
+ UninstallParamsData& operator=(UninstallParamsData&&) noexcept = delete;
710
+
711
+ ~UninstallParamsData() = default;
712
+
713
+ public:
714
+ bool IsDataValid() const
715
+ {
716
+ return ((Type.IsSet() == true) && (Id.IsSet() == true) && (Version.IsSet() == true) && (UninstallType.IsSet() == true));
717
+ }
718
+
719
+ public:
720
+ Core::JSON::String Type; // Application type (mime-type)
721
+ Core::JSON::String Id; // Application ID
722
+ Core::JSON::String Version; // Application version
723
+ Core::JSON::String UninstallType; // Type of the uninstall to perform
724
+ }; // class UninstallParamsData
725
+
726
+ } // namespace LISA
727
+
728
+ POP_WARNING()
729
+
730
+ } // namespace JsonData
731
+
732
+ }
733
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_LocationSync.h ADDED
@@ -0,0 +1,62 @@
1
+ // C++ types for Location Sync API.
2
+ // Generated automatically from 'LocationSync.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+
10
+ namespace WPEFramework {
11
+
12
+ namespace JsonData {
13
+
14
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
15
+
16
+ namespace LocationSync {
17
+
18
+ // Method params/result classes
19
+ //
20
+
21
+ class LocationData : public Core::JSON::Container {
22
+ public:
23
+ LocationData()
24
+ : Core::JSON::Container()
25
+ {
26
+ Add(_T("city"), &City);
27
+ Add(_T("country"), &Country);
28
+ Add(_T("region"), &Region);
29
+ Add(_T("timezone"), &Timezone);
30
+ Add(_T("publicip"), &Publicip);
31
+ }
32
+
33
+ LocationData(const LocationData&) = delete;
34
+ LocationData(LocationData&&) noexcept = delete;
35
+
36
+ LocationData& operator=(const LocationData&) = delete;
37
+ LocationData& operator=(LocationData&&) noexcept = delete;
38
+
39
+ ~LocationData() = default;
40
+
41
+ public:
42
+ bool IsDataValid() const
43
+ {
44
+ return ((City.IsSet() == true) && (Country.IsSet() == true) && (Region.IsSet() == true) && (Timezone.IsSet() == true) && (Publicip.IsSet() == true));
45
+ }
46
+
47
+ public:
48
+ Core::JSON::String City; // City name
49
+ Core::JSON::String Country; // Country name
50
+ Core::JSON::String Region; // Region name
51
+ Core::JSON::String Timezone; // Time zone information
52
+ Core::JSON::String Publicip; // Public IP
53
+ }; // class LocationData
54
+
55
+ } // namespace LocationSync
56
+
57
+ POP_WARNING()
58
+
59
+ } // namespace JsonData
60
+
61
+ }
62
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Math.h ADDED
@@ -0,0 +1,60 @@
1
+ // C++ types for Math API.
2
+ // Generated automatically from 'IMath.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IMath.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace Math {
18
+
19
+ // Common classes
20
+ //
21
+
22
+ class AddParamsInfo : public Core::JSON::Container {
23
+ public:
24
+ AddParamsInfo()
25
+ : Core::JSON::Container()
26
+ {
27
+ Add(_T("a"), &A);
28
+ Add(_T("b"), &B);
29
+ }
30
+
31
+ AddParamsInfo(const AddParamsInfo&) = delete;
32
+ AddParamsInfo(AddParamsInfo&&) noexcept = delete;
33
+
34
+ AddParamsInfo& operator=(const AddParamsInfo&) = delete;
35
+ AddParamsInfo& operator=(AddParamsInfo&&) noexcept = delete;
36
+
37
+ ~AddParamsInfo() = default;
38
+
39
+ public:
40
+ bool IsDataValid() const
41
+ {
42
+ return ((A.IsSet() == true) && (B.IsSet() == true));
43
+ }
44
+
45
+ public:
46
+ Core::JSON::DecUInt16 A;
47
+ Core::JSON::DecUInt16 B;
48
+ }; // class AddParamsInfo
49
+
50
+ // Method params/result classes
51
+ //
52
+
53
+ } // namespace Math
54
+
55
+ POP_WARNING()
56
+
57
+ } // namespace JsonData
58
+
59
+ }
60
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_MessageControl.h ADDED
@@ -0,0 +1,134 @@
1
+ // C++ types for MessageControl API.
2
+ // Generated automatically from 'IMessageControl.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IMessageControl.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace MessageControl {
18
+
19
+ // Common classes
20
+ //
21
+
22
+ class ControlInfo : public Core::JSON::Container {
23
+ public:
24
+ ControlInfo()
25
+ : Core::JSON::Container()
26
+ {
27
+ _Init();
28
+ }
29
+
30
+ ControlInfo(const ControlInfo& _other)
31
+ : Core::JSON::Container()
32
+ , Type(_other.Type)
33
+ , Category(_other.Category)
34
+ , Module(_other.Module)
35
+ , Enabled(_other.Enabled)
36
+ {
37
+ _Init();
38
+ }
39
+
40
+ ControlInfo(ControlInfo&& _other) noexcept
41
+ : Core::JSON::Container()
42
+ , Type(std::move(_other.Type))
43
+ , Category(std::move(_other.Category))
44
+ , Module(std::move(_other.Module))
45
+ , Enabled(std::move(_other.Enabled))
46
+ {
47
+ _Init();
48
+ }
49
+
50
+ ControlInfo(const Exchange::IMessageControl::Control& _other)
51
+ : Core::JSON::Container()
52
+ {
53
+ Type = _other.type;
54
+ Category = _other.category;
55
+ Module = _other.module;
56
+ Enabled = _other.enabled;
57
+ _Init();
58
+ }
59
+
60
+ ControlInfo& operator=(const ControlInfo& _rhs)
61
+ {
62
+ Type = _rhs.Type;
63
+ Category = _rhs.Category;
64
+ Module = _rhs.Module;
65
+ Enabled = _rhs.Enabled;
66
+ return (*this);
67
+ }
68
+
69
+ ControlInfo& operator=(ControlInfo&& _rhs) noexcept
70
+ {
71
+ Type = std::move(_rhs.Type);
72
+ Category = std::move(_rhs.Category);
73
+ Module = std::move(_rhs.Module);
74
+ Enabled = std::move(_rhs.Enabled);
75
+ return (*this);
76
+ }
77
+
78
+ ControlInfo& operator=(const Exchange::IMessageControl::Control& _rhs)
79
+ {
80
+ Type = _rhs.type;
81
+ Category = _rhs.category;
82
+ Module = _rhs.module;
83
+ Enabled = _rhs.enabled;
84
+ return (*this);
85
+ }
86
+
87
+ operator Exchange::IMessageControl::Control() const
88
+ {
89
+ Exchange::IMessageControl::Control _value{};
90
+ _value.type = Type;
91
+ _value.category = Category;
92
+ _value.module = Module;
93
+ _value.enabled = Enabled;
94
+ return (_value);
95
+ }
96
+
97
+ ~ControlInfo() = default;
98
+
99
+ public:
100
+ bool IsDataValid() const
101
+ {
102
+ return ((Type.IsSet() == true) && (Category.IsSet() == true) && (Module.IsSet() == true) && (Enabled.IsSet() == true));
103
+ }
104
+
105
+ private:
106
+ void _Init()
107
+ {
108
+ Add(_T("type"), &Type);
109
+ Add(_T("category"), &Category);
110
+ Add(_T("module"), &Module);
111
+ Add(_T("enabled"), &Enabled);
112
+ }
113
+
114
+ public:
115
+ Core::JSON::EnumType<Exchange::IMessageControl::messagetype> Type; // Type of message
116
+ Core::JSON::String Category; // Name of the message category
117
+ Core::JSON::String Module; // Name of the module the message is originating from
118
+ Core::JSON::Boolean Enabled; // Denotes if the control is enabled (true) or disabled (false)
119
+ }; // class ControlInfo
120
+
121
+ // Method params/result classes
122
+ //
123
+
124
+ } // namespace MessageControl
125
+
126
+ POP_WARNING()
127
+
128
+ } // namespace JsonData
129
+
130
+ // Enum conversion handlers
131
+ ENUM_CONVERSION_HANDLER(Exchange::IMessageControl::messagetype)
132
+
133
+ }
134
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Messenger.h ADDED
@@ -0,0 +1,230 @@
1
+ // C++ types for Messenger API.
2
+ // Generated automatically from 'Messenger.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace Messenger {
18
+
19
+ // Common enums
20
+ //
21
+
22
+ // Room security
23
+ enum class SecureType : uint8_t {
24
+ INSECURE,
25
+ SECURE
26
+ };
27
+
28
+ // Common classes
29
+ //
30
+
31
+ class JoinResultInfo : public Core::JSON::Container {
32
+ public:
33
+ JoinResultInfo()
34
+ : Core::JSON::Container()
35
+ {
36
+ Add(_T("roomid"), &Roomid);
37
+ }
38
+
39
+ JoinResultInfo(const JoinResultInfo&) = delete;
40
+ JoinResultInfo(JoinResultInfo&&) noexcept = delete;
41
+
42
+ JoinResultInfo& operator=(const JoinResultInfo&) = delete;
43
+ JoinResultInfo& operator=(JoinResultInfo&&) noexcept = delete;
44
+
45
+ ~JoinResultInfo() = default;
46
+
47
+ public:
48
+ bool IsDataValid() const
49
+ {
50
+ return (Roomid.IsSet() == true);
51
+ }
52
+
53
+ public:
54
+ Core::JSON::String Roomid; // Unique ID of the room
55
+ }; // class JoinResultInfo
56
+
57
+ // Method params/result classes
58
+ //
59
+
60
+ class JoinParamsData : public Core::JSON::Container {
61
+ public:
62
+ JoinParamsData()
63
+ : Core::JSON::Container()
64
+ {
65
+ Add(_T("user"), &User);
66
+ Add(_T("room"), &Room);
67
+ Add(_T("secure"), &Secure);
68
+ Add(_T("acl"), &Acl);
69
+ }
70
+
71
+ JoinParamsData(const JoinParamsData&) = delete;
72
+ JoinParamsData(JoinParamsData&&) noexcept = delete;
73
+
74
+ JoinParamsData& operator=(const JoinParamsData&) = delete;
75
+ JoinParamsData& operator=(JoinParamsData&&) noexcept = delete;
76
+
77
+ ~JoinParamsData() = default;
78
+
79
+ public:
80
+ bool IsDataValid() const
81
+ {
82
+ return ((User.IsSet() == true) && (Room.IsSet() == true));
83
+ }
84
+
85
+ public:
86
+ Core::JSON::String User; // User name to join the room under (must not be empty)
87
+ Core::JSON::String Room; // Name of the room to join (must not be empty)
88
+ Core::JSON::EnumType<SecureType> Secure; // Room security
89
+ Core::JSON::ArrayType<Core::JSON::String> Acl; // Access-control list for secure room
90
+ }; // class JoinParamsData
91
+
92
+ class MessageParamsData : public Core::JSON::Container {
93
+ public:
94
+ MessageParamsData()
95
+ : Core::JSON::Container()
96
+ {
97
+ Add(_T("user"), &User);
98
+ Add(_T("message"), &Message);
99
+ }
100
+
101
+ MessageParamsData(const MessageParamsData&) = delete;
102
+ MessageParamsData(MessageParamsData&&) noexcept = delete;
103
+
104
+ MessageParamsData& operator=(const MessageParamsData&) = delete;
105
+ MessageParamsData& operator=(MessageParamsData&&) noexcept = delete;
106
+
107
+ ~MessageParamsData() = default;
108
+
109
+ public:
110
+ bool IsDataValid() const
111
+ {
112
+ return ((User.IsSet() == true) && (Message.IsSet() == true));
113
+ }
114
+
115
+ public:
116
+ Core::JSON::String User; // Name of the user that has sent the message
117
+ Core::JSON::String Message; // Content of the message
118
+ }; // class MessageParamsData
119
+
120
+ class RoomupdateParamsData : public Core::JSON::Container {
121
+ public:
122
+ // Specifies the room status change, e.g. created or destroyed
123
+ enum class ActionType : uint8_t {
124
+ CREATED,
125
+ DESTROYED
126
+ };
127
+
128
+ RoomupdateParamsData()
129
+ : Core::JSON::Container()
130
+ {
131
+ Add(_T("room"), &Room);
132
+ Add(_T("secure"), &Secure);
133
+ Add(_T("action"), &Action);
134
+ }
135
+
136
+ RoomupdateParamsData(const RoomupdateParamsData&) = delete;
137
+ RoomupdateParamsData(RoomupdateParamsData&&) noexcept = delete;
138
+
139
+ RoomupdateParamsData& operator=(const RoomupdateParamsData&) = delete;
140
+ RoomupdateParamsData& operator=(RoomupdateParamsData&&) noexcept = delete;
141
+
142
+ ~RoomupdateParamsData() = default;
143
+
144
+ public:
145
+ bool IsDataValid() const
146
+ {
147
+ return ((Room.IsSet() == true) && (Action.IsSet() == true));
148
+ }
149
+
150
+ public:
151
+ Core::JSON::String Room; // Name of the room this notification relates to
152
+ Core::JSON::EnumType<SecureType> Secure; // Room security
153
+ Core::JSON::EnumType<RoomupdateParamsData::ActionType> Action; // Specifies the room status change, e.g. created or destroyed
154
+ }; // class RoomupdateParamsData
155
+
156
+ class SendParamsData : public Core::JSON::Container {
157
+ public:
158
+ SendParamsData()
159
+ : Core::JSON::Container()
160
+ {
161
+ Add(_T("roomid"), &Roomid);
162
+ Add(_T("message"), &Message);
163
+ }
164
+
165
+ SendParamsData(const SendParamsData&) = delete;
166
+ SendParamsData(SendParamsData&&) noexcept = delete;
167
+
168
+ SendParamsData& operator=(const SendParamsData&) = delete;
169
+ SendParamsData& operator=(SendParamsData&&) noexcept = delete;
170
+
171
+ ~SendParamsData() = default;
172
+
173
+ public:
174
+ bool IsDataValid() const
175
+ {
176
+ return ((Roomid.IsSet() == true) && (Message.IsSet() == true));
177
+ }
178
+
179
+ public:
180
+ Core::JSON::String Roomid; // ID of the room to send the message to
181
+ Core::JSON::String Message; // The message content to send
182
+ }; // class SendParamsData
183
+
184
+ class UserupdateParamsData : public Core::JSON::Container {
185
+ public:
186
+ // Specifies the user status change, e.g. join or leave a room
187
+ enum class ActionType : uint8_t {
188
+ JOINED,
189
+ LEFT
190
+ };
191
+
192
+ UserupdateParamsData()
193
+ : Core::JSON::Container()
194
+ {
195
+ Add(_T("user"), &User);
196
+ Add(_T("action"), &Action);
197
+ }
198
+
199
+ UserupdateParamsData(const UserupdateParamsData&) = delete;
200
+ UserupdateParamsData(UserupdateParamsData&&) noexcept = delete;
201
+
202
+ UserupdateParamsData& operator=(const UserupdateParamsData&) = delete;
203
+ UserupdateParamsData& operator=(UserupdateParamsData&&) noexcept = delete;
204
+
205
+ ~UserupdateParamsData() = default;
206
+
207
+ public:
208
+ bool IsDataValid() const
209
+ {
210
+ return ((User.IsSet() == true) && (Action.IsSet() == true));
211
+ }
212
+
213
+ public:
214
+ Core::JSON::String User; // Name of the user that has this notification relates to
215
+ Core::JSON::EnumType<UserupdateParamsData::ActionType> Action; // Specifies the user status change, e.g. join or leave a room
216
+ }; // class UserupdateParamsData
217
+
218
+ } // namespace Messenger
219
+
220
+ POP_WARNING()
221
+
222
+ } // namespace JsonData
223
+
224
+ // Enum conversion handlers
225
+ ENUM_CONVERSION_HANDLER(JsonData::Messenger::SecureType)
226
+ ENUM_CONVERSION_HANDLER(JsonData::Messenger::RoomupdateParamsData::ActionType)
227
+ ENUM_CONVERSION_HANDLER(JsonData::Messenger::UserupdateParamsData::ActionType)
228
+
229
+ }
230
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Monitor.h ADDED
@@ -0,0 +1,389 @@
1
+ // C++ types for Monitor API.
2
+ // Generated automatically from 'Monitor.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+
10
+ namespace WPEFramework {
11
+
12
+ namespace JsonData {
13
+
14
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
15
+
16
+ namespace Monitor {
17
+
18
+ // Common classes
19
+ //
20
+
21
+ class MeasurementInfo : public Core::JSON::Container {
22
+ public:
23
+ MeasurementInfo()
24
+ : Core::JSON::Container()
25
+ {
26
+ _Init();
27
+ }
28
+
29
+ MeasurementInfo(const MeasurementInfo& _other)
30
+ : Core::JSON::Container()
31
+ , Min(_other.Min)
32
+ , Max(_other.Max)
33
+ , Average(_other.Average)
34
+ , Last(_other.Last)
35
+ {
36
+ _Init();
37
+ }
38
+
39
+ MeasurementInfo(MeasurementInfo&& _other) noexcept
40
+ : Core::JSON::Container()
41
+ , Min(std::move(_other.Min))
42
+ , Max(std::move(_other.Max))
43
+ , Average(std::move(_other.Average))
44
+ , Last(std::move(_other.Last))
45
+ {
46
+ _Init();
47
+ }
48
+
49
+ MeasurementInfo& operator=(const MeasurementInfo& _rhs)
50
+ {
51
+ Min = _rhs.Min;
52
+ Max = _rhs.Max;
53
+ Average = _rhs.Average;
54
+ Last = _rhs.Last;
55
+ return (*this);
56
+ }
57
+
58
+ MeasurementInfo& operator=(MeasurementInfo&& _rhs) noexcept
59
+ {
60
+ Min = std::move(_rhs.Min);
61
+ Max = std::move(_rhs.Max);
62
+ Average = std::move(_rhs.Average);
63
+ Last = std::move(_rhs.Last);
64
+ return (*this);
65
+ }
66
+
67
+ ~MeasurementInfo() = default;
68
+
69
+ public:
70
+ bool IsDataValid() const
71
+ {
72
+ return ((Min.IsSet() == true) && (Max.IsSet() == true) && (Average.IsSet() == true) && (Last.IsSet() == true));
73
+ }
74
+
75
+ private:
76
+ void _Init()
77
+ {
78
+ Add(_T("min"), &Min);
79
+ Add(_T("max"), &Max);
80
+ Add(_T("average"), &Average);
81
+ Add(_T("last"), &Last);
82
+ }
83
+
84
+ public:
85
+ Core::JSON::DecUInt64 Min; // Minimal value measured
86
+ Core::JSON::DecUInt64 Max; // Maximal value measured
87
+ Core::JSON::DecUInt64 Average; // Average of all measurements
88
+ Core::JSON::DecUInt64 Last; // Last measured value
89
+ }; // class MeasurementInfo
90
+
91
+ class MeasurementsInfo : public Core::JSON::Container {
92
+ public:
93
+ MeasurementsInfo()
94
+ : Core::JSON::Container()
95
+ {
96
+ _Init();
97
+ }
98
+
99
+ MeasurementsInfo(const MeasurementsInfo& _other)
100
+ : Core::JSON::Container()
101
+ , Resident(_other.Resident)
102
+ , Allocated(_other.Allocated)
103
+ , Shared(_other.Shared)
104
+ , Process(_other.Process)
105
+ , Operational(_other.Operational)
106
+ , Count(_other.Count)
107
+ {
108
+ _Init();
109
+ }
110
+
111
+ MeasurementsInfo(MeasurementsInfo&& _other) noexcept
112
+ : Core::JSON::Container()
113
+ , Resident(std::move(_other.Resident))
114
+ , Allocated(std::move(_other.Allocated))
115
+ , Shared(std::move(_other.Shared))
116
+ , Process(std::move(_other.Process))
117
+ , Operational(std::move(_other.Operational))
118
+ , Count(std::move(_other.Count))
119
+ {
120
+ _Init();
121
+ }
122
+
123
+ MeasurementsInfo& operator=(const MeasurementsInfo& _rhs)
124
+ {
125
+ Resident = _rhs.Resident;
126
+ Allocated = _rhs.Allocated;
127
+ Shared = _rhs.Shared;
128
+ Process = _rhs.Process;
129
+ Operational = _rhs.Operational;
130
+ Count = _rhs.Count;
131
+ return (*this);
132
+ }
133
+
134
+ MeasurementsInfo& operator=(MeasurementsInfo&& _rhs) noexcept
135
+ {
136
+ Resident = std::move(_rhs.Resident);
137
+ Allocated = std::move(_rhs.Allocated);
138
+ Shared = std::move(_rhs.Shared);
139
+ Process = std::move(_rhs.Process);
140
+ Operational = std::move(_rhs.Operational);
141
+ Count = std::move(_rhs.Count);
142
+ return (*this);
143
+ }
144
+
145
+ ~MeasurementsInfo() = default;
146
+
147
+ public:
148
+ bool IsDataValid() const
149
+ {
150
+ return (((Resident.IsSet() == true) && (Resident.IsDataValid() == true)) && ((Allocated.IsSet() == true) && (Allocated.IsDataValid() == true)) && ((Shared.IsSet() == true) && (Shared.IsDataValid() == true)) && ((Process.IsSet() == true) && (Process.IsDataValid() == true)) && (Operational.IsSet() == true) && (Count.IsSet() == true));
151
+ }
152
+
153
+ private:
154
+ void _Init()
155
+ {
156
+ Add(_T("resident"), &Resident);
157
+ Add(_T("allocated"), &Allocated);
158
+ Add(_T("shared"), &Shared);
159
+ Add(_T("process"), &Process);
160
+ Add(_T("operational"), &Operational);
161
+ Add(_T("count"), &Count);
162
+ }
163
+
164
+ public:
165
+ MeasurementInfo Resident; // Resident memory measurement
166
+ MeasurementInfo Allocated; // Allocated memory measurement
167
+ MeasurementInfo Shared; // Shared memory measurement
168
+ MeasurementInfo Process; // Processes measurement
169
+ Core::JSON::Boolean Operational; // Whether the service is up and running
170
+ Core::JSON::DecUInt32 Count; // Number of measurements
171
+ }; // class MeasurementsInfo
172
+
173
+ class RestartInfo : public Core::JSON::Container {
174
+ public:
175
+ RestartInfo()
176
+ : Core::JSON::Container()
177
+ {
178
+ _Init();
179
+ }
180
+
181
+ RestartInfo(const RestartInfo& _other)
182
+ : Core::JSON::Container()
183
+ , Limit(_other.Limit)
184
+ , Window(_other.Window)
185
+ {
186
+ _Init();
187
+ }
188
+
189
+ RestartInfo(RestartInfo&& _other) noexcept
190
+ : Core::JSON::Container()
191
+ , Limit(std::move(_other.Limit))
192
+ , Window(std::move(_other.Window))
193
+ {
194
+ _Init();
195
+ }
196
+
197
+ RestartInfo& operator=(const RestartInfo& _rhs)
198
+ {
199
+ Limit = _rhs.Limit;
200
+ Window = _rhs.Window;
201
+ return (*this);
202
+ }
203
+
204
+ RestartInfo& operator=(RestartInfo&& _rhs) noexcept
205
+ {
206
+ Limit = std::move(_rhs.Limit);
207
+ Window = std::move(_rhs.Window);
208
+ return (*this);
209
+ }
210
+
211
+ ~RestartInfo() = default;
212
+
213
+ public:
214
+ bool IsDataValid() const
215
+ {
216
+ return ((Limit.IsSet() == true) && (Window.IsSet() == true));
217
+ }
218
+
219
+ private:
220
+ void _Init()
221
+ {
222
+ Add(_T("limit"), &Limit);
223
+ Add(_T("window"), &Window);
224
+ }
225
+
226
+ public:
227
+ Core::JSON::DecUInt8 Limit; // Maximum number or restarts to be attempted
228
+ Core::JSON::DecUInt16 Window; // Time period (in seconds) within which failures must happen for the limit to be considered crossed
229
+ }; // class RestartInfo
230
+
231
+ class InfoInfo : public Core::JSON::Container {
232
+ public:
233
+ InfoInfo()
234
+ : Core::JSON::Container()
235
+ {
236
+ _Init();
237
+ }
238
+
239
+ InfoInfo(const InfoInfo& _other)
240
+ : Core::JSON::Container()
241
+ , Measurements(_other.Measurements)
242
+ , Observable(_other.Observable)
243
+ , Restart(_other.Restart)
244
+ {
245
+ _Init();
246
+ }
247
+
248
+ InfoInfo(InfoInfo&& _other) noexcept
249
+ : Core::JSON::Container()
250
+ , Measurements(std::move(_other.Measurements))
251
+ , Observable(std::move(_other.Observable))
252
+ , Restart(std::move(_other.Restart))
253
+ {
254
+ _Init();
255
+ }
256
+
257
+ InfoInfo& operator=(const InfoInfo& _rhs)
258
+ {
259
+ Measurements = _rhs.Measurements;
260
+ Observable = _rhs.Observable;
261
+ Restart = _rhs.Restart;
262
+ return (*this);
263
+ }
264
+
265
+ InfoInfo& operator=(InfoInfo&& _rhs) noexcept
266
+ {
267
+ Measurements = std::move(_rhs.Measurements);
268
+ Observable = std::move(_rhs.Observable);
269
+ Restart = std::move(_rhs.Restart);
270
+ return (*this);
271
+ }
272
+
273
+ ~InfoInfo() = default;
274
+
275
+ public:
276
+ bool IsDataValid() const
277
+ {
278
+ return (((Measurements.IsSet() == true) && (Measurements.IsDataValid() == true)) && (Observable.IsSet() == true) && ((Restart.IsSet() == true) && (Restart.IsDataValid() == true)));
279
+ }
280
+
281
+ private:
282
+ void _Init()
283
+ {
284
+ Add(_T("measurements"), &Measurements);
285
+ Add(_T("observable"), &Observable);
286
+ Add(_T("restart"), &Restart);
287
+ }
288
+
289
+ public:
290
+ MeasurementsInfo Measurements; // Measurements for the service
291
+ Core::JSON::String Observable; // A callsign of the watched service
292
+ RestartInfo Restart; // Restart limits for failures applying to the service
293
+ }; // class InfoInfo
294
+
295
+ // Method params/result classes
296
+ //
297
+
298
+ class ActionParamsData : public Core::JSON::Container {
299
+ public:
300
+ ActionParamsData()
301
+ : Core::JSON::Container()
302
+ {
303
+ Add(_T("callsign"), &Callsign);
304
+ Add(_T("action"), &Action);
305
+ Add(_T("reason"), &Reason);
306
+ }
307
+
308
+ ActionParamsData(const ActionParamsData&) = delete;
309
+ ActionParamsData(ActionParamsData&&) noexcept = delete;
310
+
311
+ ActionParamsData& operator=(const ActionParamsData&) = delete;
312
+ ActionParamsData& operator=(ActionParamsData&&) noexcept = delete;
313
+
314
+ ~ActionParamsData() = default;
315
+
316
+ public:
317
+ bool IsDataValid() const
318
+ {
319
+ return ((Callsign.IsSet() == true) && (Action.IsSet() == true) && (Reason.IsSet() == true));
320
+ }
321
+
322
+ public:
323
+ Core::JSON::String Callsign; // Callsign of the service the Monitor acted upon
324
+ Core::JSON::String Action; // The action executed by the Monitor on a service. One of: "Activate", "Deactivate", "StoppedRestarting"
325
+ Core::JSON::String Reason; // A message describing the reason the action was taken
326
+ }; // class ActionParamsData
327
+
328
+ class ResetstatsParamsData : public Core::JSON::Container {
329
+ public:
330
+ ResetstatsParamsData()
331
+ : Core::JSON::Container()
332
+ {
333
+ Add(_T("callsign"), &Callsign);
334
+ }
335
+
336
+ ResetstatsParamsData(const ResetstatsParamsData&) = delete;
337
+ ResetstatsParamsData(ResetstatsParamsData&&) noexcept = delete;
338
+
339
+ ResetstatsParamsData& operator=(const ResetstatsParamsData&) = delete;
340
+ ResetstatsParamsData& operator=(ResetstatsParamsData&&) noexcept = delete;
341
+
342
+ ~ResetstatsParamsData() = default;
343
+
344
+ public:
345
+ bool IsDataValid() const
346
+ {
347
+ return (Callsign.IsSet() == true);
348
+ }
349
+
350
+ public:
351
+ Core::JSON::String Callsign; // The callsign of a service to reset statistics of
352
+ }; // class ResetstatsParamsData
353
+
354
+ class RestartlimitsParamsData : public Core::JSON::Container {
355
+ public:
356
+ RestartlimitsParamsData()
357
+ : Core::JSON::Container()
358
+ {
359
+ Add(_T("callsign"), &Callsign);
360
+ Add(_T("restart"), &Restart);
361
+ }
362
+
363
+ RestartlimitsParamsData(const RestartlimitsParamsData&) = delete;
364
+ RestartlimitsParamsData(RestartlimitsParamsData&&) noexcept = delete;
365
+
366
+ RestartlimitsParamsData& operator=(const RestartlimitsParamsData&) = delete;
367
+ RestartlimitsParamsData& operator=(RestartlimitsParamsData&&) noexcept = delete;
368
+
369
+ ~RestartlimitsParamsData() = default;
370
+
371
+ public:
372
+ bool IsDataValid() const
373
+ {
374
+ return ((Callsign.IsSet() == true) && ((Restart.IsSet() == true) && (Restart.IsDataValid() == true)));
375
+ }
376
+
377
+ public:
378
+ Core::JSON::String Callsign; // The callsign of a service to reset measurements snapshot of
379
+ RestartInfo Restart; // Sets new restart limits for a service
380
+ }; // class RestartlimitsParamsData
381
+
382
+ } // namespace Monitor
383
+
384
+ POP_WARNING()
385
+
386
+ } // namespace JsonData
387
+
388
+ }
389
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Netflix.h ADDED
@@ -0,0 +1,93 @@
1
+ // C++ types for Netflix API.
2
+ // Generated automatically from 'Netflix.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace Netflix {
18
+
19
+ // Common enums
20
+ //
21
+
22
+ // Current Netflix visibility
23
+ enum class VisibilityType : uint8_t {
24
+ VISIBLE,
25
+ HIDDEN
26
+ };
27
+
28
+ // Method params/result classes
29
+ //
30
+
31
+ class PlaybackchangeParamsData : public Core::JSON::Container {
32
+ public:
33
+ PlaybackchangeParamsData()
34
+ : Core::JSON::Container()
35
+ {
36
+ Add(_T("playing"), &Playing);
37
+ }
38
+
39
+ PlaybackchangeParamsData(const PlaybackchangeParamsData&) = delete;
40
+ PlaybackchangeParamsData(PlaybackchangeParamsData&&) noexcept = delete;
41
+
42
+ PlaybackchangeParamsData& operator=(const PlaybackchangeParamsData&) = delete;
43
+ PlaybackchangeParamsData& operator=(PlaybackchangeParamsData&&) noexcept = delete;
44
+
45
+ ~PlaybackchangeParamsData() = default;
46
+
47
+ public:
48
+ bool IsDataValid() const
49
+ {
50
+ return (Playing.IsSet() == true);
51
+ }
52
+
53
+ public:
54
+ Core::JSON::Boolean Playing; // Determines if the Netflix is in playing mode (true) or not playing (false)
55
+ }; // class PlaybackchangeParamsData
56
+
57
+ class SystemcommandParamsData : public Core::JSON::Container {
58
+ public:
59
+ SystemcommandParamsData()
60
+ : Core::JSON::Container()
61
+ {
62
+ Add(_T("command"), &Command);
63
+ }
64
+
65
+ SystemcommandParamsData(const SystemcommandParamsData&) = delete;
66
+ SystemcommandParamsData(SystemcommandParamsData&&) noexcept = delete;
67
+
68
+ SystemcommandParamsData& operator=(const SystemcommandParamsData&) = delete;
69
+ SystemcommandParamsData& operator=(SystemcommandParamsData&&) noexcept = delete;
70
+
71
+ ~SystemcommandParamsData() = default;
72
+
73
+ public:
74
+ bool IsDataValid() const
75
+ {
76
+ return (Command.IsSet() == true);
77
+ }
78
+
79
+ public:
80
+ Core::JSON::String Command; // Command to send to Netflix
81
+ }; // class SystemcommandParamsData
82
+
83
+ } // namespace Netflix
84
+
85
+ POP_WARNING()
86
+
87
+ } // namespace JsonData
88
+
89
+ // Enum conversion handlers
90
+ ENUM_CONVERSION_HANDLER(JsonData::Netflix::VisibilityType)
91
+
92
+ }
93
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_NetworkControl.h ADDED
@@ -0,0 +1,265 @@
1
+ // C++ types for NetworkControl API.
2
+ // Generated automatically from 'INetworkControl.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/INetworkControl.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace NetworkControl {
18
+
19
+ // Common classes
20
+ //
21
+
22
+ class NetworkInfoInfo : public Core::JSON::Container {
23
+ public:
24
+ NetworkInfoInfo()
25
+ : Core::JSON::Container()
26
+ {
27
+ _Init();
28
+ }
29
+
30
+ NetworkInfoInfo(const NetworkInfoInfo& _other)
31
+ : Core::JSON::Container()
32
+ , Address(_other.Address)
33
+ , DefaultGateway(_other.DefaultGateway)
34
+ , Mask(_other.Mask)
35
+ , Mode(_other.Mode)
36
+ {
37
+ _Init();
38
+ }
39
+
40
+ NetworkInfoInfo(NetworkInfoInfo&& _other) noexcept
41
+ : Core::JSON::Container()
42
+ , Address(std::move(_other.Address))
43
+ , DefaultGateway(std::move(_other.DefaultGateway))
44
+ , Mask(std::move(_other.Mask))
45
+ , Mode(std::move(_other.Mode))
46
+ {
47
+ _Init();
48
+ }
49
+
50
+ NetworkInfoInfo(const Exchange::INetworkControl::NetworkInfo& _other)
51
+ : Core::JSON::Container()
52
+ {
53
+ Address = _other.address;
54
+ DefaultGateway = _other.defaultGateway;
55
+ Mask = _other.mask;
56
+ Mode = _other.mode;
57
+ _Init();
58
+ }
59
+
60
+ NetworkInfoInfo& operator=(const NetworkInfoInfo& _rhs)
61
+ {
62
+ Address = _rhs.Address;
63
+ DefaultGateway = _rhs.DefaultGateway;
64
+ Mask = _rhs.Mask;
65
+ Mode = _rhs.Mode;
66
+ return (*this);
67
+ }
68
+
69
+ NetworkInfoInfo& operator=(NetworkInfoInfo&& _rhs) noexcept
70
+ {
71
+ Address = std::move(_rhs.Address);
72
+ DefaultGateway = std::move(_rhs.DefaultGateway);
73
+ Mask = std::move(_rhs.Mask);
74
+ Mode = std::move(_rhs.Mode);
75
+ return (*this);
76
+ }
77
+
78
+ NetworkInfoInfo& operator=(const Exchange::INetworkControl::NetworkInfo& _rhs)
79
+ {
80
+ Address = _rhs.address;
81
+ DefaultGateway = _rhs.defaultGateway;
82
+ Mask = _rhs.mask;
83
+ Mode = _rhs.mode;
84
+ return (*this);
85
+ }
86
+
87
+ operator Exchange::INetworkControl::NetworkInfo() const
88
+ {
89
+ Exchange::INetworkControl::NetworkInfo _value{};
90
+ _value.address = Address;
91
+ _value.defaultGateway = DefaultGateway;
92
+ _value.mask = Mask;
93
+ _value.mode = Mode;
94
+ return (_value);
95
+ }
96
+
97
+ ~NetworkInfoInfo() = default;
98
+
99
+ public:
100
+ bool IsDataValid() const
101
+ {
102
+ return ((Address.IsSet() == true) && (DefaultGateway.IsSet() == true) && (Mask.IsSet() == true) && (Mode.IsSet() == true));
103
+ }
104
+
105
+ private:
106
+ void _Init()
107
+ {
108
+ Add(_T("address"), &Address);
109
+ Add(_T("defaultgateway"), &DefaultGateway);
110
+ Add(_T("mask"), &Mask);
111
+ Add(_T("mode"), &Mode);
112
+ }
113
+
114
+ public:
115
+ Core::JSON::String Address;
116
+ Core::JSON::String DefaultGateway;
117
+ Core::JSON::DecUInt8 Mask;
118
+ Core::JSON::EnumType<Exchange::INetworkControl::ModeType> Mode;
119
+ }; // class NetworkInfoInfo
120
+
121
+ // Method params/result classes
122
+ //
123
+
124
+ class DNSData : public Core::JSON::Container {
125
+ public:
126
+ DNSData()
127
+ : Core::JSON::Container()
128
+ {
129
+ Add(_T("value"), &Value);
130
+ }
131
+
132
+ DNSData(const DNSData&) = delete;
133
+ DNSData(DNSData&&) noexcept = delete;
134
+
135
+ DNSData& operator=(const DNSData&) = delete;
136
+ DNSData& operator=(DNSData&&) noexcept = delete;
137
+
138
+ ~DNSData() = default;
139
+
140
+ public:
141
+ bool IsDataValid() const
142
+ {
143
+ return (Value.IsSet() == true);
144
+ }
145
+
146
+ public:
147
+ Core::JSON::ArrayType<Core::JSON::String> Value; // DNS list
148
+ }; // class DNSData
149
+
150
+ class FlushParamsData : public Core::JSON::Container {
151
+ public:
152
+ FlushParamsData()
153
+ : Core::JSON::Container()
154
+ {
155
+ Add(_T("interface"), &Interface);
156
+ }
157
+
158
+ FlushParamsData(const FlushParamsData&) = delete;
159
+ FlushParamsData(FlushParamsData&&) noexcept = delete;
160
+
161
+ FlushParamsData& operator=(const FlushParamsData&) = delete;
162
+ FlushParamsData& operator=(FlushParamsData&&) noexcept = delete;
163
+
164
+ ~FlushParamsData() = default;
165
+
166
+ public:
167
+ bool IsDataValid() const
168
+ {
169
+ return (Interface.IsSet() == true);
170
+ }
171
+
172
+ public:
173
+ Core::JSON::String Interface; // Flush and reload requested interface
174
+ }; // class FlushParamsData
175
+
176
+ class NetworkData : public Core::JSON::Container {
177
+ public:
178
+ NetworkData()
179
+ : Core::JSON::Container()
180
+ {
181
+ Add(_T("value"), &Value);
182
+ }
183
+
184
+ NetworkData(const NetworkData&) = delete;
185
+ NetworkData(NetworkData&&) noexcept = delete;
186
+
187
+ NetworkData& operator=(const NetworkData&) = delete;
188
+ NetworkData& operator=(NetworkData&&) noexcept = delete;
189
+
190
+ ~NetworkData() = default;
191
+
192
+ public:
193
+ bool IsDataValid() const
194
+ {
195
+ return (Value.IsSet() == true);
196
+ }
197
+
198
+ public:
199
+ Core::JSON::ArrayType<NetworkInfoInfo> Value; // Network info of requested interface
200
+ }; // class NetworkData
201
+
202
+ class UpData : public Core::JSON::Container {
203
+ public:
204
+ UpData()
205
+ : Core::JSON::Container()
206
+ {
207
+ Add(_T("value"), &Value);
208
+ }
209
+
210
+ UpData(const UpData&) = delete;
211
+ UpData(UpData&&) noexcept = delete;
212
+
213
+ UpData& operator=(const UpData&) = delete;
214
+ UpData& operator=(UpData&&) noexcept = delete;
215
+
216
+ ~UpData() = default;
217
+
218
+ public:
219
+ bool IsDataValid() const
220
+ {
221
+ return (Value.IsSet() == true);
222
+ }
223
+
224
+ public:
225
+ Core::JSON::Boolean Value; // Provides given requested interface is up or not
226
+ }; // class UpData
227
+
228
+ class UpdateParamsData : public Core::JSON::Container {
229
+ public:
230
+ UpdateParamsData()
231
+ : Core::JSON::Container()
232
+ {
233
+ Add(_T("interfacename"), &InterfaceName);
234
+ }
235
+
236
+ UpdateParamsData(const UpdateParamsData&) = delete;
237
+ UpdateParamsData(UpdateParamsData&&) noexcept = delete;
238
+
239
+ UpdateParamsData& operator=(const UpdateParamsData&) = delete;
240
+ UpdateParamsData& operator=(UpdateParamsData&&) noexcept = delete;
241
+
242
+ ~UpdateParamsData() = default;
243
+
244
+ public:
245
+ bool IsDataValid() const
246
+ {
247
+ return (InterfaceName.IsSet() == true);
248
+ }
249
+
250
+ public:
251
+ Core::JSON::String InterfaceName;
252
+ }; // class UpdateParamsData
253
+
254
+ } // namespace NetworkControl
255
+
256
+ POP_WARNING()
257
+
258
+ } // namespace JsonData
259
+
260
+ // Enum conversion handlers
261
+ ENUM_CONVERSION_HANDLER(Exchange::INetworkControl::StatusType)
262
+ ENUM_CONVERSION_HANDLER(Exchange::INetworkControl::ModeType)
263
+
264
+ }
265
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_NetworkTools.h ADDED
@@ -0,0 +1,115 @@
1
+ // C++ types for NetworkTools API.
2
+ // Generated automatically from 'INetworkTools.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/INetworkTools.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace NetworkTools {
18
+
19
+ // Method params/result classes
20
+ //
21
+
22
+ class PingParamsData : public Core::JSON::Container {
23
+ public:
24
+ PingParamsData()
25
+ : Core::JSON::Container()
26
+ {
27
+ Add(_T("destination"), &Destination);
28
+ Add(_T("timeoutinseconds"), &TimeOutInSeconds);
29
+ Add(_T("count"), &Count);
30
+ }
31
+
32
+ PingParamsData(const PingParamsData&) = delete;
33
+ PingParamsData(PingParamsData&&) noexcept = delete;
34
+
35
+ PingParamsData& operator=(const PingParamsData&) = delete;
36
+ PingParamsData& operator=(PingParamsData&&) noexcept = delete;
37
+
38
+ ~PingParamsData() = default;
39
+
40
+ public:
41
+ bool IsDataValid() const
42
+ {
43
+ return ((Destination.IsSet() == true) && (TimeOutInSeconds.IsSet() == true) && (Count.IsSet() == true));
44
+ }
45
+
46
+ public:
47
+ Core::JSON::String Destination; // Ping the given destination with ICMP packages.
48
+ Core::JSON::DecUInt16 TimeOutInSeconds; // Ping the given destination with ICMP packages.
49
+ Core::JSON::DecUInt16 Count; // Ping the given destination with ICMP packages.
50
+ }; // class PingParamsData
51
+
52
+ class ReportParamsData : public Core::JSON::Container {
53
+ public:
54
+ ReportParamsData()
55
+ : Core::JSON::Container()
56
+ {
57
+ Add(_T("source"), &Source);
58
+ Add(_T("metadata"), &Metadata);
59
+ }
60
+
61
+ ReportParamsData(const ReportParamsData&) = delete;
62
+ ReportParamsData(ReportParamsData&&) noexcept = delete;
63
+
64
+ ReportParamsData& operator=(const ReportParamsData&) = delete;
65
+ ReportParamsData& operator=(ReportParamsData&&) noexcept = delete;
66
+
67
+ ~ReportParamsData() = default;
68
+
69
+ public:
70
+ bool IsDataValid() const
71
+ {
72
+ return ((Source.IsSet() == true) && (Metadata.IsSet() == true));
73
+ }
74
+
75
+ public:
76
+ Core::JSON::String Source; // is the NodeId of the system that send the metadta presented in the next field.
77
+ Core::JSON::String Metadata; // depending on the tool started, this JSON string will contain additiona information on this notification.
78
+ }; // class ReportParamsData
79
+
80
+ class TraceRouteParamsData : public Core::JSON::Container {
81
+ public:
82
+ TraceRouteParamsData()
83
+ : Core::JSON::Container()
84
+ {
85
+ Add(_T("destination"), &Destination);
86
+ Add(_T("timeoutinseconds"), &TimeOutInSeconds);
87
+ }
88
+
89
+ TraceRouteParamsData(const TraceRouteParamsData&) = delete;
90
+ TraceRouteParamsData(TraceRouteParamsData&&) noexcept = delete;
91
+
92
+ TraceRouteParamsData& operator=(const TraceRouteParamsData&) = delete;
93
+ TraceRouteParamsData& operator=(TraceRouteParamsData&&) noexcept = delete;
94
+
95
+ ~TraceRouteParamsData() = default;
96
+
97
+ public:
98
+ bool IsDataValid() const
99
+ {
100
+ return ((Destination.IsSet() == true) && (TimeOutInSeconds.IsSet() == true));
101
+ }
102
+
103
+ public:
104
+ Core::JSON::String Destination; // TraceRoute to the given destination with ICMP packages.
105
+ Core::JSON::DecUInt16 TimeOutInSeconds; // TraceRoute to the given destination with ICMP packages.
106
+ }; // class TraceRouteParamsData
107
+
108
+ } // namespace NetworkTools
109
+
110
+ POP_WARNING()
111
+
112
+ } // namespace JsonData
113
+
114
+ }
115
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_OCDM.h ADDED
@@ -0,0 +1,180 @@
1
+ // C++ types for OpenCDMi API.
2
+ // Generated automatically from 'OCDM.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace OCDM {
18
+
19
+ // Common classes
20
+ //
21
+
22
+ class SessionInfo : public Core::JSON::Container {
23
+ public:
24
+ SessionInfo()
25
+ : Core::JSON::Container()
26
+ {
27
+ _Init();
28
+ }
29
+
30
+ SessionInfo(const SessionInfo& _other)
31
+ : Core::JSON::Container()
32
+ , Drm(_other.Drm)
33
+ {
34
+ _Init();
35
+ }
36
+
37
+ SessionInfo(SessionInfo&& _other) noexcept
38
+ : Core::JSON::Container()
39
+ , Drm(std::move(_other.Drm))
40
+ {
41
+ _Init();
42
+ }
43
+
44
+ SessionInfo& operator=(const SessionInfo& _rhs)
45
+ {
46
+ Drm = _rhs.Drm;
47
+ return (*this);
48
+ }
49
+
50
+ SessionInfo& operator=(SessionInfo&& _rhs) noexcept
51
+ {
52
+ Drm = std::move(_rhs.Drm);
53
+ return (*this);
54
+ }
55
+
56
+ ~SessionInfo() = default;
57
+
58
+ public:
59
+ bool IsDataValid() const
60
+ {
61
+ return (Drm.IsSet() == true);
62
+ }
63
+
64
+ private:
65
+ void _Init()
66
+ {
67
+ Add(_T("drm"), &Drm);
68
+ }
69
+
70
+ public:
71
+ Core::JSON::String Drm; // Name of the DRM system
72
+ }; // class SessionInfo
73
+
74
+ // Method params/result classes
75
+ //
76
+
77
+ class DrminitializationstatusParamsData : public Core::JSON::Container {
78
+ public:
79
+ // BUSY - drm is used by another process, SUCCESS - recovered from BUSY state after retry, FAILED - not recovered after re-trying from BUSY
80
+ enum class StatusType : uint8_t {
81
+ BUSY,
82
+ SUCCESS,
83
+ FAILED
84
+ };
85
+
86
+ DrminitializationstatusParamsData()
87
+ : Core::JSON::Container()
88
+ {
89
+ Add(_T("status"), &Status);
90
+ Add(_T("drm"), &Drm);
91
+ }
92
+
93
+ DrminitializationstatusParamsData(const DrminitializationstatusParamsData&) = delete;
94
+ DrminitializationstatusParamsData(DrminitializationstatusParamsData&&) noexcept = delete;
95
+
96
+ DrminitializationstatusParamsData& operator=(const DrminitializationstatusParamsData&) = delete;
97
+ DrminitializationstatusParamsData& operator=(DrminitializationstatusParamsData&&) noexcept = delete;
98
+
99
+ ~DrminitializationstatusParamsData() = default;
100
+
101
+ public:
102
+ bool IsDataValid() const
103
+ {
104
+ return ((Status.IsSet() == true) && (Drm.IsSet() == true));
105
+ }
106
+
107
+ public:
108
+ Core::JSON::EnumType<DrminitializationstatusParamsData::StatusType> Status; // BUSY - drm is used by another process, SUCCESS - recovered from BUSY state after retry, FAILED - not recovered after re-trying from BUSY
109
+ Core::JSON::String Drm; // Name of the DRM system
110
+ }; // class DrminitializationstatusParamsData
111
+
112
+ class DrmData : public Core::JSON::Container {
113
+ public:
114
+ DrmData()
115
+ : Core::JSON::Container()
116
+ {
117
+ _Init();
118
+ }
119
+
120
+ DrmData(const DrmData& _other)
121
+ : Core::JSON::Container()
122
+ , Name(_other.Name)
123
+ , Keysystems(_other.Keysystems)
124
+ {
125
+ _Init();
126
+ }
127
+
128
+ DrmData(DrmData&& _other) noexcept
129
+ : Core::JSON::Container()
130
+ , Name(std::move(_other.Name))
131
+ , Keysystems(std::move(_other.Keysystems))
132
+ {
133
+ _Init();
134
+ }
135
+
136
+ DrmData& operator=(const DrmData& _rhs)
137
+ {
138
+ Name = _rhs.Name;
139
+ Keysystems = _rhs.Keysystems;
140
+ return (*this);
141
+ }
142
+
143
+ DrmData& operator=(DrmData&& _rhs) noexcept
144
+ {
145
+ Name = std::move(_rhs.Name);
146
+ Keysystems = std::move(_rhs.Keysystems);
147
+ return (*this);
148
+ }
149
+
150
+ ~DrmData() = default;
151
+
152
+ public:
153
+ bool IsDataValid() const
154
+ {
155
+ return ((Name.IsSet() == true) && (Keysystems.IsSet() == true));
156
+ }
157
+
158
+ private:
159
+ void _Init()
160
+ {
161
+ Add(_T("name"), &Name);
162
+ Add(_T("keysystems"), &Keysystems);
163
+ }
164
+
165
+ public:
166
+ Core::JSON::String Name; // Name of the DRM
167
+ Core::JSON::ArrayType<Core::JSON::String> Keysystems;
168
+ }; // class DrmData
169
+
170
+ } // namespace OCDM
171
+
172
+ POP_WARNING()
173
+
174
+ } // namespace JsonData
175
+
176
+ // Enum conversion handlers
177
+ ENUM_CONVERSION_HANDLER(JsonData::OCDM::DrminitializationstatusParamsData::StatusType)
178
+
179
+ }
180
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_PackageManager.h ADDED
@@ -0,0 +1,941 @@
1
+ // C++ types for PackageManager API.
2
+ // Generated automatically from 'IPackageManager.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IPackageManager.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace PackageManager {
18
+
19
+ // Common classes
20
+ //
21
+
22
+ class CancelParamsInfo : public Core::JSON::Container {
23
+ public:
24
+ CancelParamsInfo()
25
+ : Core::JSON::Container()
26
+ {
27
+ Add(_T("handle"), &Handle);
28
+ }
29
+
30
+ CancelParamsInfo(const CancelParamsInfo&) = delete;
31
+ CancelParamsInfo(CancelParamsInfo&&) noexcept = delete;
32
+
33
+ CancelParamsInfo& operator=(const CancelParamsInfo&) = delete;
34
+ CancelParamsInfo& operator=(CancelParamsInfo&&) noexcept = delete;
35
+
36
+ ~CancelParamsInfo() = default;
37
+
38
+ public:
39
+ bool IsDataValid() const
40
+ {
41
+ return (Handle.IsSet() == true);
42
+ }
43
+
44
+ public:
45
+ Core::JSON::String Handle; // Cancel asynchronous request.
46
+ }; // class CancelParamsInfo
47
+
48
+ class GetStorageDetailsParamsInfo : public Core::JSON::Container {
49
+ public:
50
+ GetStorageDetailsParamsInfo()
51
+ : Core::JSON::Container()
52
+ {
53
+ Add(_T("type"), &Type);
54
+ Add(_T("id"), &Id);
55
+ Add(_T("version"), &Version);
56
+ }
57
+
58
+ GetStorageDetailsParamsInfo(const GetStorageDetailsParamsInfo&) = delete;
59
+ GetStorageDetailsParamsInfo(GetStorageDetailsParamsInfo&&) noexcept = delete;
60
+
61
+ GetStorageDetailsParamsInfo& operator=(const GetStorageDetailsParamsInfo&) = delete;
62
+ GetStorageDetailsParamsInfo& operator=(GetStorageDetailsParamsInfo&&) noexcept = delete;
63
+
64
+ ~GetStorageDetailsParamsInfo() = default;
65
+
66
+ public:
67
+ bool IsDataValid() const
68
+ {
69
+ return ((Type.IsSet() == true) && (Id.IsSet() == true) && (Version.IsSet() == true));
70
+ }
71
+
72
+ public:
73
+ Core::JSON::String Type; // Information on the storage usage.
74
+ Core::JSON::String Id; // Information on the storage usage.
75
+ Core::JSON::String Version; // Information on the storage usage.
76
+ }; // class GetStorageDetailsParamsInfo
77
+
78
+ class KeyValueInfo : public Core::JSON::Container {
79
+ public:
80
+ KeyValueInfo()
81
+ : Core::JSON::Container()
82
+ {
83
+ _Init();
84
+ }
85
+
86
+ KeyValueInfo(const KeyValueInfo& _other)
87
+ : Core::JSON::Container()
88
+ , Key(_other.Key)
89
+ , Value(_other.Value)
90
+ {
91
+ _Init();
92
+ }
93
+
94
+ KeyValueInfo(KeyValueInfo&& _other) noexcept
95
+ : Core::JSON::Container()
96
+ , Key(std::move(_other.Key))
97
+ , Value(std::move(_other.Value))
98
+ {
99
+ _Init();
100
+ }
101
+
102
+ KeyValueInfo(const Exchange::IPackageManager::KeyValue& _other)
103
+ : Core::JSON::Container()
104
+ {
105
+ Key = _other.key;
106
+ Value = _other.value;
107
+ _Init();
108
+ }
109
+
110
+ KeyValueInfo& operator=(const KeyValueInfo& _rhs)
111
+ {
112
+ Key = _rhs.Key;
113
+ Value = _rhs.Value;
114
+ return (*this);
115
+ }
116
+
117
+ KeyValueInfo& operator=(KeyValueInfo&& _rhs) noexcept
118
+ {
119
+ Key = std::move(_rhs.Key);
120
+ Value = std::move(_rhs.Value);
121
+ return (*this);
122
+ }
123
+
124
+ KeyValueInfo& operator=(const Exchange::IPackageManager::KeyValue& _rhs)
125
+ {
126
+ Key = _rhs.key;
127
+ Value = _rhs.value;
128
+ return (*this);
129
+ }
130
+
131
+ operator Exchange::IPackageManager::KeyValue() const
132
+ {
133
+ Exchange::IPackageManager::KeyValue _value{};
134
+ _value.key = Key;
135
+ _value.value = Value;
136
+ return (_value);
137
+ }
138
+
139
+ ~KeyValueInfo() = default;
140
+
141
+ public:
142
+ bool IsDataValid() const
143
+ {
144
+ return ((Key.IsSet() == true) && (Value.IsSet() == true));
145
+ }
146
+
147
+ private:
148
+ void _Init()
149
+ {
150
+ Add(_T("key"), &Key);
151
+ Add(_T("value"), &Value);
152
+ }
153
+
154
+ public:
155
+ Core::JSON::String Key;
156
+ Core::JSON::String Value;
157
+ }; // class KeyValueInfo
158
+
159
+ // Method params/result classes
160
+ //
161
+
162
+ class ClearAuxMetadataParamsData : public Core::JSON::Container {
163
+ public:
164
+ ClearAuxMetadataParamsData()
165
+ : Core::JSON::Container()
166
+ {
167
+ Add(_T("type"), &Type);
168
+ Add(_T("id"), &Id);
169
+ Add(_T("version"), &Version);
170
+ Add(_T("key"), &Key);
171
+ }
172
+
173
+ ClearAuxMetadataParamsData(const ClearAuxMetadataParamsData&) = delete;
174
+ ClearAuxMetadataParamsData(ClearAuxMetadataParamsData&&) noexcept = delete;
175
+
176
+ ClearAuxMetadataParamsData& operator=(const ClearAuxMetadataParamsData&) = delete;
177
+ ClearAuxMetadataParamsData& operator=(ClearAuxMetadataParamsData&&) noexcept = delete;
178
+
179
+ ~ClearAuxMetadataParamsData() = default;
180
+
181
+ public:
182
+ bool IsDataValid() const
183
+ {
184
+ return ((Type.IsSet() == true) && (Id.IsSet() == true) && (Version.IsSet() == true) && (Key.IsSet() == true));
185
+ }
186
+
187
+ public:
188
+ Core::JSON::String Type; // Clears an arbitrary metadata.
189
+ Core::JSON::String Id; // Clears an arbitrary metadata.
190
+ Core::JSON::String Version; // Clears an arbitrary metadata.
191
+ Core::JSON::String Key; // Clears an arbitrary metadata.
192
+ }; // class ClearAuxMetadataParamsData
193
+
194
+ class DownloadParamsData : public Core::JSON::Container {
195
+ public:
196
+ DownloadParamsData()
197
+ : Core::JSON::Container()
198
+ {
199
+ Add(_T("type"), &Type);
200
+ Add(_T("id"), &Id);
201
+ Add(_T("version"), &Version);
202
+ Add(_T("reskey"), &ResKey);
203
+ Add(_T("url"), &Url);
204
+ }
205
+
206
+ DownloadParamsData(const DownloadParamsData&) = delete;
207
+ DownloadParamsData(DownloadParamsData&&) noexcept = delete;
208
+
209
+ DownloadParamsData& operator=(const DownloadParamsData&) = delete;
210
+ DownloadParamsData& operator=(DownloadParamsData&&) noexcept = delete;
211
+
212
+ ~DownloadParamsData() = default;
213
+
214
+ public:
215
+ bool IsDataValid() const
216
+ {
217
+ return ((Type.IsSet() == true) && (Id.IsSet() == true) && (Version.IsSet() == true) && (ResKey.IsSet() == true) && (Url.IsSet() == true));
218
+ }
219
+
220
+ public:
221
+ Core::JSON::String Type; // Download arbitrary application's resource file.
222
+ Core::JSON::String Id; // Download arbitrary application's resource file.
223
+ Core::JSON::String Version; // Download arbitrary application's resource file.
224
+ Core::JSON::String ResKey; // Download arbitrary application's resource file.
225
+ Core::JSON::String Url; // Download arbitrary application's resource file.
226
+ }; // class DownloadParamsData
227
+
228
+ class GetListParamsData : public Core::JSON::Container {
229
+ public:
230
+ GetListParamsData()
231
+ : Core::JSON::Container()
232
+ {
233
+ Add(_T("type"), &Type);
234
+ Add(_T("id"), &Id);
235
+ Add(_T("version"), &Version);
236
+ Add(_T("appname"), &AppName);
237
+ Add(_T("category"), &Category);
238
+ }
239
+
240
+ GetListParamsData(const GetListParamsData&) = delete;
241
+ GetListParamsData(GetListParamsData&&) noexcept = delete;
242
+
243
+ GetListParamsData& operator=(const GetListParamsData&) = delete;
244
+ GetListParamsData& operator=(GetListParamsData&&) noexcept = delete;
245
+
246
+ ~GetListParamsData() = default;
247
+
248
+ public:
249
+ bool IsDataValid() const
250
+ {
251
+ return ((Type.IsSet() == true) && (Id.IsSet() == true) && (Version.IsSet() == true) && (AppName.IsSet() == true) && (Category.IsSet() == true));
252
+ }
253
+
254
+ public:
255
+ Core::JSON::String Type; // List installed applications.
256
+ Core::JSON::String Id; // List installed applications.
257
+ Core::JSON::String Version; // List installed applications.
258
+ Core::JSON::String AppName; // List installed applications.
259
+ Core::JSON::String Category; // List installed applications.
260
+ }; // class GetListParamsData
261
+
262
+ class PackageKeyData : public Core::JSON::Container {
263
+ public:
264
+ PackageKeyData()
265
+ : Core::JSON::Container()
266
+ {
267
+ _Init();
268
+ }
269
+
270
+ PackageKeyData(const PackageKeyData& _other)
271
+ : Core::JSON::Container()
272
+ , Id(_other.Id)
273
+ , Version(_other.Version)
274
+ {
275
+ _Init();
276
+ }
277
+
278
+ PackageKeyData(PackageKeyData&& _other) noexcept
279
+ : Core::JSON::Container()
280
+ , Id(std::move(_other.Id))
281
+ , Version(std::move(_other.Version))
282
+ {
283
+ _Init();
284
+ }
285
+
286
+ PackageKeyData(const Exchange::IPackageManager::PackageKey& _other)
287
+ : Core::JSON::Container()
288
+ {
289
+ Id = _other.id;
290
+ Version = _other.version;
291
+ _Init();
292
+ }
293
+
294
+ PackageKeyData& operator=(const PackageKeyData& _rhs)
295
+ {
296
+ Id = _rhs.Id;
297
+ Version = _rhs.Version;
298
+ return (*this);
299
+ }
300
+
301
+ PackageKeyData& operator=(PackageKeyData&& _rhs) noexcept
302
+ {
303
+ Id = std::move(_rhs.Id);
304
+ Version = std::move(_rhs.Version);
305
+ return (*this);
306
+ }
307
+
308
+ PackageKeyData& operator=(const Exchange::IPackageManager::PackageKey& _rhs)
309
+ {
310
+ Id = _rhs.id;
311
+ Version = _rhs.version;
312
+ return (*this);
313
+ }
314
+
315
+ operator Exchange::IPackageManager::PackageKey() const
316
+ {
317
+ Exchange::IPackageManager::PackageKey _value{};
318
+ _value.id = Id;
319
+ _value.version = Version;
320
+ return (_value);
321
+ }
322
+
323
+ ~PackageKeyData() = default;
324
+
325
+ public:
326
+ bool IsDataValid() const
327
+ {
328
+ return ((Id.IsSet() == true) && (Version.IsSet() == true));
329
+ }
330
+
331
+ private:
332
+ void _Init()
333
+ {
334
+ Add(_T("id"), &Id);
335
+ Add(_T("version"), &Version);
336
+ }
337
+
338
+ public:
339
+ Core::JSON::String Id;
340
+ Core::JSON::String Version;
341
+ }; // class PackageKeyData
342
+
343
+ class LockInfoData : public Core::JSON::Container {
344
+ public:
345
+ LockInfoData()
346
+ : Core::JSON::Container()
347
+ {
348
+ _Init();
349
+ }
350
+
351
+ LockInfoData(const LockInfoData& _other)
352
+ : Core::JSON::Container()
353
+ , Reason(_other.Reason)
354
+ , Owner(_other.Owner)
355
+ {
356
+ _Init();
357
+ }
358
+
359
+ LockInfoData(LockInfoData&& _other) noexcept
360
+ : Core::JSON::Container()
361
+ , Reason(std::move(_other.Reason))
362
+ , Owner(std::move(_other.Owner))
363
+ {
364
+ _Init();
365
+ }
366
+
367
+ LockInfoData(const Exchange::IPackageManager::LockInfo& _other)
368
+ : Core::JSON::Container()
369
+ {
370
+ Reason = _other.reason;
371
+ Owner = _other.owner;
372
+ _Init();
373
+ }
374
+
375
+ LockInfoData& operator=(const LockInfoData& _rhs)
376
+ {
377
+ Reason = _rhs.Reason;
378
+ Owner = _rhs.Owner;
379
+ return (*this);
380
+ }
381
+
382
+ LockInfoData& operator=(LockInfoData&& _rhs) noexcept
383
+ {
384
+ Reason = std::move(_rhs.Reason);
385
+ Owner = std::move(_rhs.Owner);
386
+ return (*this);
387
+ }
388
+
389
+ LockInfoData& operator=(const Exchange::IPackageManager::LockInfo& _rhs)
390
+ {
391
+ Reason = _rhs.reason;
392
+ Owner = _rhs.owner;
393
+ return (*this);
394
+ }
395
+
396
+ operator Exchange::IPackageManager::LockInfo() const
397
+ {
398
+ Exchange::IPackageManager::LockInfo _value{};
399
+ _value.reason = Reason;
400
+ _value.owner = Owner;
401
+ return (_value);
402
+ }
403
+
404
+ ~LockInfoData() = default;
405
+
406
+ public:
407
+ bool IsDataValid() const
408
+ {
409
+ return ((Reason.IsSet() == true) && (Owner.IsSet() == true));
410
+ }
411
+
412
+ private:
413
+ void _Init()
414
+ {
415
+ Add(_T("reason"), &Reason);
416
+ Add(_T("owner"), &Owner);
417
+ }
418
+
419
+ public:
420
+ Core::JSON::String Reason; // Get lock info.
421
+ Core::JSON::String Owner; // Get lock info.
422
+ }; // class LockInfoData
423
+
424
+ class GetMetadataResultData : public Core::JSON::Container {
425
+ public:
426
+ class MetadataPayloadData : public Core::JSON::Container {
427
+ public:
428
+ MetadataPayloadData()
429
+ : Core::JSON::Container()
430
+ {
431
+ _Init();
432
+ }
433
+
434
+ MetadataPayloadData(const MetadataPayloadData& _other)
435
+ : Core::JSON::Container()
436
+ , AppName(_other.AppName)
437
+ , Type(_other.Type)
438
+ , Category(_other.Category)
439
+ , Url(_other.Url)
440
+ {
441
+ _Init();
442
+ }
443
+
444
+ MetadataPayloadData(MetadataPayloadData&& _other) noexcept
445
+ : Core::JSON::Container()
446
+ , AppName(std::move(_other.AppName))
447
+ , Type(std::move(_other.Type))
448
+ , Category(std::move(_other.Category))
449
+ , Url(std::move(_other.Url))
450
+ {
451
+ _Init();
452
+ }
453
+
454
+ MetadataPayloadData(const Exchange::IPackageManager::MetadataPayload& _other)
455
+ : Core::JSON::Container()
456
+ {
457
+ AppName = _other.appName;
458
+ Type = _other.type;
459
+ Category = _other.category;
460
+ Url = _other.url;
461
+ _Init();
462
+ }
463
+
464
+ MetadataPayloadData& operator=(const MetadataPayloadData& _rhs)
465
+ {
466
+ AppName = _rhs.AppName;
467
+ Type = _rhs.Type;
468
+ Category = _rhs.Category;
469
+ Url = _rhs.Url;
470
+ return (*this);
471
+ }
472
+
473
+ MetadataPayloadData& operator=(MetadataPayloadData&& _rhs) noexcept
474
+ {
475
+ AppName = std::move(_rhs.AppName);
476
+ Type = std::move(_rhs.Type);
477
+ Category = std::move(_rhs.Category);
478
+ Url = std::move(_rhs.Url);
479
+ return (*this);
480
+ }
481
+
482
+ MetadataPayloadData& operator=(const Exchange::IPackageManager::MetadataPayload& _rhs)
483
+ {
484
+ AppName = _rhs.appName;
485
+ Type = _rhs.type;
486
+ Category = _rhs.category;
487
+ Url = _rhs.url;
488
+ return (*this);
489
+ }
490
+
491
+ operator Exchange::IPackageManager::MetadataPayload() const
492
+ {
493
+ Exchange::IPackageManager::MetadataPayload _value{};
494
+ _value.appName = AppName;
495
+ _value.type = Type;
496
+ _value.category = Category;
497
+ _value.url = Url;
498
+ return (_value);
499
+ }
500
+
501
+ ~MetadataPayloadData() = default;
502
+
503
+ public:
504
+ bool IsDataValid() const
505
+ {
506
+ return ((AppName.IsSet() == true) && (Type.IsSet() == true) && (Category.IsSet() == true) && (Url.IsSet() == true));
507
+ }
508
+
509
+ private:
510
+ void _Init()
511
+ {
512
+ Add(_T("appname"), &AppName);
513
+ Add(_T("type"), &Type);
514
+ Add(_T("category"), &Category);
515
+ Add(_T("url"), &Url);
516
+ }
517
+
518
+ public:
519
+ Core::JSON::String AppName;
520
+ Core::JSON::String Type;
521
+ Core::JSON::String Category;
522
+ Core::JSON::String Url;
523
+ }; // class MetadataPayloadData
524
+
525
+ GetMetadataResultData()
526
+ : Core::JSON::Container()
527
+ {
528
+ Add(_T("metadata"), &Metadata);
529
+ Add(_T("resources"), &Resources);
530
+ Add(_T("auxmetadata"), &AuxMetadata);
531
+ }
532
+
533
+ GetMetadataResultData(const GetMetadataResultData&) = delete;
534
+ GetMetadataResultData(GetMetadataResultData&&) noexcept = delete;
535
+
536
+ GetMetadataResultData& operator=(const GetMetadataResultData&) = delete;
537
+ GetMetadataResultData& operator=(GetMetadataResultData&&) noexcept = delete;
538
+
539
+ ~GetMetadataResultData() = default;
540
+
541
+ public:
542
+ bool IsDataValid() const
543
+ {
544
+ return (((Metadata.IsSet() == true) && (Metadata.IsDataValid() == true)) && (Resources.IsSet() == true) && (AuxMetadata.IsSet() == true));
545
+ }
546
+
547
+ public:
548
+ GetMetadataResultData::MetadataPayloadData Metadata; // Get application metadata.
549
+ Core::JSON::ArrayType<KeyValueInfo> Resources; // Get application metadata.
550
+ Core::JSON::ArrayType<KeyValueInfo> AuxMetadata; // Get application metadata.
551
+ }; // class GetMetadataResultData
552
+
553
+ class StorageInfoData : public Core::JSON::Container {
554
+ public:
555
+ class StorageDetailsData : public Core::JSON::Container {
556
+ public:
557
+ StorageDetailsData()
558
+ : Core::JSON::Container()
559
+ {
560
+ _Init();
561
+ }
562
+
563
+ StorageDetailsData(const StorageDetailsData& _other)
564
+ : Core::JSON::Container()
565
+ , Path(_other.Path)
566
+ , QuotaKB(_other.QuotaKB)
567
+ , UsedKB(_other.UsedKB)
568
+ {
569
+ _Init();
570
+ }
571
+
572
+ StorageDetailsData(StorageDetailsData&& _other) noexcept
573
+ : Core::JSON::Container()
574
+ , Path(std::move(_other.Path))
575
+ , QuotaKB(std::move(_other.QuotaKB))
576
+ , UsedKB(std::move(_other.UsedKB))
577
+ {
578
+ _Init();
579
+ }
580
+
581
+ StorageDetailsData(const Exchange::IPackageManager::StorageInfo::StorageDetails& _other)
582
+ : Core::JSON::Container()
583
+ {
584
+ Path = _other.path;
585
+ QuotaKB = _other.quotaKB;
586
+ UsedKB = _other.usedKB;
587
+ _Init();
588
+ }
589
+
590
+ StorageDetailsData& operator=(const StorageDetailsData& _rhs)
591
+ {
592
+ Path = _rhs.Path;
593
+ QuotaKB = _rhs.QuotaKB;
594
+ UsedKB = _rhs.UsedKB;
595
+ return (*this);
596
+ }
597
+
598
+ StorageDetailsData& operator=(StorageDetailsData&& _rhs) noexcept
599
+ {
600
+ Path = std::move(_rhs.Path);
601
+ QuotaKB = std::move(_rhs.QuotaKB);
602
+ UsedKB = std::move(_rhs.UsedKB);
603
+ return (*this);
604
+ }
605
+
606
+ StorageDetailsData& operator=(const Exchange::IPackageManager::StorageInfo::StorageDetails& _rhs)
607
+ {
608
+ Path = _rhs.path;
609
+ QuotaKB = _rhs.quotaKB;
610
+ UsedKB = _rhs.usedKB;
611
+ return (*this);
612
+ }
613
+
614
+ operator Exchange::IPackageManager::StorageInfo::StorageDetails() const
615
+ {
616
+ Exchange::IPackageManager::StorageInfo::StorageDetails _value{};
617
+ _value.path = Path;
618
+ _value.quotaKB = QuotaKB;
619
+ _value.usedKB = UsedKB;
620
+ return (_value);
621
+ }
622
+
623
+ ~StorageDetailsData() = default;
624
+
625
+ public:
626
+ bool IsDataValid() const
627
+ {
628
+ return ((Path.IsSet() == true) && (QuotaKB.IsSet() == true) && (UsedKB.IsSet() == true));
629
+ }
630
+
631
+ private:
632
+ void _Init()
633
+ {
634
+ Add(_T("path"), &Path);
635
+ Add(_T("quotakb"), &QuotaKB);
636
+ Add(_T("usedkb"), &UsedKB);
637
+ }
638
+
639
+ public:
640
+ Core::JSON::String Path;
641
+ Core::JSON::String QuotaKB;
642
+ Core::JSON::String UsedKB;
643
+ }; // class StorageDetailsData
644
+
645
+ StorageInfoData()
646
+ : Core::JSON::Container()
647
+ {
648
+ _Init();
649
+ }
650
+
651
+ StorageInfoData(const StorageInfoData& _other)
652
+ : Core::JSON::Container()
653
+ , Apps(_other.Apps)
654
+ , Persistent(_other.Persistent)
655
+ {
656
+ _Init();
657
+ }
658
+
659
+ StorageInfoData(StorageInfoData&& _other) noexcept
660
+ : Core::JSON::Container()
661
+ , Apps(std::move(_other.Apps))
662
+ , Persistent(std::move(_other.Persistent))
663
+ {
664
+ _Init();
665
+ }
666
+
667
+ StorageInfoData(const Exchange::IPackageManager::StorageInfo& _other)
668
+ : Core::JSON::Container()
669
+ {
670
+ Apps.Set(true);
671
+ Apps = _other.apps;
672
+ Persistent.Set(true);
673
+ Persistent = _other.persistent;
674
+ _Init();
675
+ }
676
+
677
+ StorageInfoData& operator=(const StorageInfoData& _rhs)
678
+ {
679
+ Apps = _rhs.Apps;
680
+ Persistent = _rhs.Persistent;
681
+ return (*this);
682
+ }
683
+
684
+ StorageInfoData& operator=(StorageInfoData&& _rhs) noexcept
685
+ {
686
+ Apps = std::move(_rhs.Apps);
687
+ Persistent = std::move(_rhs.Persistent);
688
+ return (*this);
689
+ }
690
+
691
+ StorageInfoData& operator=(const Exchange::IPackageManager::StorageInfo& _rhs)
692
+ {
693
+ Apps.Set(true);
694
+ Apps = _rhs.apps;
695
+ Persistent.Set(true);
696
+ Persistent = _rhs.persistent;
697
+ return (*this);
698
+ }
699
+
700
+ operator Exchange::IPackageManager::StorageInfo() const
701
+ {
702
+ Exchange::IPackageManager::StorageInfo _value{};
703
+ _value.apps = Apps;
704
+ _value.persistent = Persistent;
705
+ return (_value);
706
+ }
707
+
708
+ ~StorageInfoData() = default;
709
+
710
+ public:
711
+ bool IsDataValid() const
712
+ {
713
+ return (((Apps.IsSet() == true) && (Apps.IsDataValid() == true)) && ((Persistent.IsSet() == true) && (Persistent.IsDataValid() == true)));
714
+ }
715
+
716
+ private:
717
+ void _Init()
718
+ {
719
+ Add(_T("apps"), &Apps);
720
+ Add(_T("persistent"), &Persistent);
721
+ }
722
+
723
+ public:
724
+ StorageInfoData::StorageDetailsData Apps; // Information on the storage usage.
725
+ StorageDetailsData Persistent; // Information on the storage usage.
726
+ }; // class StorageInfoData
727
+
728
+ class InstallParamsData : public Core::JSON::Container {
729
+ public:
730
+ InstallParamsData()
731
+ : Core::JSON::Container()
732
+ {
733
+ Add(_T("type"), &Type);
734
+ Add(_T("id"), &Id);
735
+ Add(_T("version"), &Version);
736
+ Add(_T("url"), &Url);
737
+ Add(_T("appname"), &AppName);
738
+ Add(_T("category"), &Category);
739
+ }
740
+
741
+ InstallParamsData(const InstallParamsData&) = delete;
742
+ InstallParamsData(InstallParamsData&&) noexcept = delete;
743
+
744
+ InstallParamsData& operator=(const InstallParamsData&) = delete;
745
+ InstallParamsData& operator=(InstallParamsData&&) noexcept = delete;
746
+
747
+ ~InstallParamsData() = default;
748
+
749
+ public:
750
+ bool IsDataValid() const
751
+ {
752
+ return ((Type.IsSet() == true) && (Id.IsSet() == true) && (Version.IsSet() == true) && (Url.IsSet() == true) && (AppName.IsSet() == true) && (Category.IsSet() == true));
753
+ }
754
+
755
+ public:
756
+ Core::JSON::String Type; // Download the application bundle.
757
+ Core::JSON::String Id; // Download the application bundle.
758
+ Core::JSON::String Version; // Download the application bundle.
759
+ Core::JSON::String Url; // Download the application bundle.
760
+ Core::JSON::String AppName; // Download the application bundle.
761
+ Core::JSON::String Category; // Download the application bundle.
762
+ }; // class InstallParamsData
763
+
764
+ class LockParamsData : public Core::JSON::Container {
765
+ public:
766
+ LockParamsData()
767
+ : Core::JSON::Container()
768
+ {
769
+ Add(_T("type"), &Type);
770
+ Add(_T("id"), &Id);
771
+ Add(_T("version"), &Version);
772
+ Add(_T("reason"), &Reason);
773
+ Add(_T("owner"), &Owner);
774
+ }
775
+
776
+ LockParamsData(const LockParamsData&) = delete;
777
+ LockParamsData(LockParamsData&&) noexcept = delete;
778
+
779
+ LockParamsData& operator=(const LockParamsData&) = delete;
780
+ LockParamsData& operator=(LockParamsData&&) noexcept = delete;
781
+
782
+ ~LockParamsData() = default;
783
+
784
+ public:
785
+ bool IsDataValid() const
786
+ {
787
+ return ((Type.IsSet() == true) && (Id.IsSet() == true) && (Version.IsSet() == true) && (Reason.IsSet() == true) && (Owner.IsSet() == true));
788
+ }
789
+
790
+ public:
791
+ Core::JSON::String Type; // Lock the application. Preventing uninstallation.
792
+ Core::JSON::String Id; // Lock the application. Preventing uninstallation.
793
+ Core::JSON::String Version; // Lock the application. Preventing uninstallation.
794
+ Core::JSON::String Reason; // Lock the application. Preventing uninstallation.
795
+ Core::JSON::String Owner; // Lock the application. Preventing uninstallation.
796
+ }; // class LockParamsData
797
+
798
+ class OperationStatusParamsData : public Core::JSON::Container {
799
+ public:
800
+ OperationStatusParamsData()
801
+ : Core::JSON::Container()
802
+ {
803
+ Add(_T("handle"), &Handle);
804
+ Add(_T("operation"), &Operation);
805
+ Add(_T("type"), &Type);
806
+ Add(_T("id"), &Id);
807
+ Add(_T("version"), &Version);
808
+ Add(_T("status"), &Status);
809
+ Add(_T("details"), &Details);
810
+ }
811
+
812
+ OperationStatusParamsData(const OperationStatusParamsData&) = delete;
813
+ OperationStatusParamsData(OperationStatusParamsData&&) noexcept = delete;
814
+
815
+ OperationStatusParamsData& operator=(const OperationStatusParamsData&) = delete;
816
+ OperationStatusParamsData& operator=(OperationStatusParamsData&&) noexcept = delete;
817
+
818
+ ~OperationStatusParamsData() = default;
819
+
820
+ public:
821
+ bool IsDataValid() const
822
+ {
823
+ return ((Handle.IsSet() == true) && (Operation.IsSet() == true) && (Type.IsSet() == true) && (Id.IsSet() == true) && (Version.IsSet() == true) && (Status.IsSet() == true) && (Details.IsSet() == true));
824
+ }
825
+
826
+ public:
827
+ Core::JSON::String Handle; // Completion of asynchronous operation.
828
+ Core::JSON::String Operation; // Completion of asynchronous operation.
829
+ Core::JSON::String Type; // Completion of asynchronous operation.
830
+ Core::JSON::String Id; // Completion of asynchronous operation.
831
+ Core::JSON::String Version; // Completion of asynchronous operation.
832
+ Core::JSON::String Status; // Completion of asynchronous operation.
833
+ Core::JSON::String Details; // Completion of asynchronous operation.
834
+ }; // class OperationStatusParamsData
835
+
836
+ class ResetParamsData : public Core::JSON::Container {
837
+ public:
838
+ ResetParamsData()
839
+ : Core::JSON::Container()
840
+ {
841
+ Add(_T("type"), &Type);
842
+ Add(_T("id"), &Id);
843
+ Add(_T("version"), &Version);
844
+ Add(_T("resettype"), &ResetType);
845
+ }
846
+
847
+ ResetParamsData(const ResetParamsData&) = delete;
848
+ ResetParamsData(ResetParamsData&&) noexcept = delete;
849
+
850
+ ResetParamsData& operator=(const ResetParamsData&) = delete;
851
+ ResetParamsData& operator=(ResetParamsData&&) noexcept = delete;
852
+
853
+ ~ResetParamsData() = default;
854
+
855
+ public:
856
+ bool IsDataValid() const
857
+ {
858
+ return ((Type.IsSet() == true) && (Id.IsSet() == true) && (Version.IsSet() == true) && (ResetType.IsSet() == true));
859
+ }
860
+
861
+ public:
862
+ Core::JSON::String Type; // Delete persistent data stored locally.
863
+ Core::JSON::String Id; // Delete persistent data stored locally.
864
+ Core::JSON::String Version; // Delete persistent data stored locally.
865
+ Core::JSON::String ResetType; // Delete persistent data stored locally.
866
+ }; // class ResetParamsData
867
+
868
+ class SetAuxMetadataParamsData : public Core::JSON::Container {
869
+ public:
870
+ SetAuxMetadataParamsData()
871
+ : Core::JSON::Container()
872
+ {
873
+ Add(_T("type"), &Type);
874
+ Add(_T("id"), &Id);
875
+ Add(_T("version"), &Version);
876
+ Add(_T("key"), &Key);
877
+ Add(_T("value"), &Value);
878
+ }
879
+
880
+ SetAuxMetadataParamsData(const SetAuxMetadataParamsData&) = delete;
881
+ SetAuxMetadataParamsData(SetAuxMetadataParamsData&&) noexcept = delete;
882
+
883
+ SetAuxMetadataParamsData& operator=(const SetAuxMetadataParamsData&) = delete;
884
+ SetAuxMetadataParamsData& operator=(SetAuxMetadataParamsData&&) noexcept = delete;
885
+
886
+ ~SetAuxMetadataParamsData() = default;
887
+
888
+ public:
889
+ bool IsDataValid() const
890
+ {
891
+ return ((Type.IsSet() == true) && (Id.IsSet() == true) && (Version.IsSet() == true) && (Key.IsSet() == true) && (Value.IsSet() == true));
892
+ }
893
+
894
+ public:
895
+ Core::JSON::String Type; // Set an arbitrary metadata.
896
+ Core::JSON::String Id; // Set an arbitrary metadata.
897
+ Core::JSON::String Version; // Set an arbitrary metadata.
898
+ Core::JSON::String Key; // Set an arbitrary metadata.
899
+ Core::JSON::String Value; // Set an arbitrary metadata.
900
+ }; // class SetAuxMetadataParamsData
901
+
902
+ class UninstallParamsData : public Core::JSON::Container {
903
+ public:
904
+ UninstallParamsData()
905
+ : Core::JSON::Container()
906
+ {
907
+ Add(_T("type"), &Type);
908
+ Add(_T("id"), &Id);
909
+ Add(_T("version"), &Version);
910
+ Add(_T("uninstalltype"), &UninstallType);
911
+ }
912
+
913
+ UninstallParamsData(const UninstallParamsData&) = delete;
914
+ UninstallParamsData(UninstallParamsData&&) noexcept = delete;
915
+
916
+ UninstallParamsData& operator=(const UninstallParamsData&) = delete;
917
+ UninstallParamsData& operator=(UninstallParamsData&&) noexcept = delete;
918
+
919
+ ~UninstallParamsData() = default;
920
+
921
+ public:
922
+ bool IsDataValid() const
923
+ {
924
+ return ((Type.IsSet() == true) && (Id.IsSet() == true) && (Version.IsSet() == true) && (UninstallType.IsSet() == true));
925
+ }
926
+
927
+ public:
928
+ Core::JSON::String Type; // Uninstall the application.
929
+ Core::JSON::String Id; // Uninstall the application.
930
+ Core::JSON::String Version; // Uninstall the application.
931
+ Core::JSON::String UninstallType; // Uninstall the application.
932
+ }; // class UninstallParamsData
933
+
934
+ } // namespace PackageManager
935
+
936
+ POP_WARNING()
937
+
938
+ } // namespace JsonData
939
+
940
+ }
941
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Packager.h ADDED
@@ -0,0 +1,58 @@
1
+ // C++ types for Packager API.
2
+ // Generated automatically from 'Packager.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+
10
+ namespace WPEFramework {
11
+
12
+ namespace JsonData {
13
+
14
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
15
+
16
+ namespace Packager {
17
+
18
+ // Method params/result classes
19
+ //
20
+
21
+ class InstallParamsData : public Core::JSON::Container {
22
+ public:
23
+ InstallParamsData()
24
+ : Core::JSON::Container()
25
+ {
26
+ Add(_T("package"), &Package);
27
+ Add(_T("version"), &Version);
28
+ Add(_T("architecture"), &Architecture);
29
+ }
30
+
31
+ InstallParamsData(const InstallParamsData&) = delete;
32
+ InstallParamsData(InstallParamsData&&) noexcept = delete;
33
+
34
+ InstallParamsData& operator=(const InstallParamsData&) = delete;
35
+ InstallParamsData& operator=(InstallParamsData&&) noexcept = delete;
36
+
37
+ ~InstallParamsData() = default;
38
+
39
+ public:
40
+ bool IsDataValid() const
41
+ {
42
+ return (Package.IsSet() == true);
43
+ }
44
+
45
+ public:
46
+ Core::JSON::String Package; // A name, an URL or a file path of the package to install
47
+ Core::JSON::String Version; // Version of the package to install
48
+ Core::JSON::String Architecture; // Architecture of the package to install
49
+ }; // class InstallParamsData
50
+
51
+ } // namespace Packager
52
+
53
+ POP_WARNING()
54
+
55
+ } // namespace JsonData
56
+
57
+ }
58
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_PerformanceMonitor.h ADDED
@@ -0,0 +1,129 @@
1
+ // C++ types for Performance Monitor API.
2
+ // Generated automatically from 'PerformanceMonitor.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+
10
+ namespace WPEFramework {
11
+
12
+ namespace JsonData {
13
+
14
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
15
+
16
+ namespace PerformanceMonitor {
17
+
18
+ // Common classes
19
+ //
20
+
21
+ class BufferInfo : public Core::JSON::Container {
22
+ public:
23
+ BufferInfo()
24
+ : Core::JSON::Container()
25
+ {
26
+ Add(_T("data"), &Data);
27
+ Add(_T("length"), &Length);
28
+ Add(_T("duration"), &Duration);
29
+ }
30
+
31
+ BufferInfo(const BufferInfo&) = delete;
32
+ BufferInfo(BufferInfo&&) noexcept = delete;
33
+
34
+ BufferInfo& operator=(const BufferInfo&) = delete;
35
+ BufferInfo& operator=(BufferInfo&&) noexcept = delete;
36
+
37
+ ~BufferInfo() = default;
38
+
39
+ public:
40
+ bool IsDataValid() const
41
+ {
42
+ return ((Data.IsSet() == true) && (Length.IsSet() == true) && (Duration.IsSet() == true));
43
+ }
44
+
45
+ public:
46
+ Core::JSON::String Data; // Any string data upto the size specified in the length
47
+ Core::JSON::DecUInt16 Length;
48
+ Core::JSON::DecUInt16 Duration;
49
+ }; // class BufferInfo
50
+
51
+ // Method params/result classes
52
+ //
53
+
54
+ class MeasurementData : public Core::JSON::Container {
55
+ public:
56
+ class StatisticsData : public Core::JSON::Container {
57
+ public:
58
+ StatisticsData()
59
+ : Core::JSON::Container()
60
+ {
61
+ Add(_T("minimum"), &Minimum);
62
+ Add(_T("maximum"), &Maximum);
63
+ Add(_T("average"), &Average);
64
+ Add(_T("count"), &Count);
65
+ }
66
+
67
+ StatisticsData(const StatisticsData&) = delete;
68
+ StatisticsData(StatisticsData&&) noexcept = delete;
69
+
70
+ StatisticsData& operator=(const StatisticsData&) = delete;
71
+ StatisticsData& operator=(StatisticsData&&) noexcept = delete;
72
+
73
+ ~StatisticsData() = default;
74
+
75
+ public:
76
+ bool IsDataValid() const
77
+ {
78
+ return ((Minimum.IsSet() == true) && (Maximum.IsSet() == true) && (Average.IsSet() == true) && (Count.IsSet() == true));
79
+ }
80
+
81
+ public:
82
+ Core::JSON::DecUInt32 Minimum;
83
+ Core::JSON::DecUInt32 Maximum;
84
+ Core::JSON::DecUInt32 Average;
85
+ Core::JSON::DecUInt32 Count;
86
+ }; // class StatisticsData
87
+
88
+ MeasurementData()
89
+ : Core::JSON::Container()
90
+ {
91
+ Add(_T("serialization"), &Serialization);
92
+ Add(_T("deserialization"), &Deserialization);
93
+ Add(_T("execution"), &Execution);
94
+ Add(_T("threadpool"), &Threadpool);
95
+ Add(_T("communication"), &Communication);
96
+ Add(_T("total"), &Total);
97
+ }
98
+
99
+ MeasurementData(const MeasurementData&) = delete;
100
+ MeasurementData(MeasurementData&&) noexcept = delete;
101
+
102
+ MeasurementData& operator=(const MeasurementData&) = delete;
103
+ MeasurementData& operator=(MeasurementData&&) noexcept = delete;
104
+
105
+ ~MeasurementData() = default;
106
+
107
+ public:
108
+ bool IsDataValid() const
109
+ {
110
+ return (((Serialization.IsSet() == true) && (Serialization.IsDataValid() == true)) && ((Deserialization.IsSet() == true) && (Deserialization.IsDataValid() == true)) && ((Execution.IsSet() == true) && (Execution.IsDataValid() == true)) && ((Threadpool.IsSet() == true) && (Threadpool.IsDataValid() == true)) && ((Communication.IsSet() == true) && (Communication.IsDataValid() == true)) && ((Total.IsSet() == true) && (Total.IsDataValid() == true)));
111
+ }
112
+
113
+ public:
114
+ MeasurementData::StatisticsData Serialization; // Time taken to complete serialization
115
+ StatisticsData Deserialization; // Time taken to complete deserialization
116
+ StatisticsData Execution; // Time taken to complete execution
117
+ StatisticsData Threadpool; // Time taken to complete threadpool wait
118
+ StatisticsData Communication; // Time taken to complete communication
119
+ StatisticsData Total; // Time taken to complete whole jsonrpc process
120
+ }; // class MeasurementData
121
+
122
+ } // namespace PerformanceMonitor
123
+
124
+ POP_WARNING()
125
+
126
+ } // namespace JsonData
127
+
128
+ }
129
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_PersistentStore.h ADDED
@@ -0,0 +1,446 @@
1
+ // C++ types for PertsistentStore API.
2
+ // Generated automatically from 'PersistentStore.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace PersistentStore {
18
+
19
+ // Common enums
20
+ //
21
+
22
+ // Deletes a key from the specified namespace
23
+ enum class ScopeType : uint8_t {
24
+ DEVICE,
25
+ ACCOUNT
26
+ };
27
+
28
+ // Common classes
29
+ //
30
+
31
+ class DeleteKeyParamsInfo : public Core::JSON::Container {
32
+ public:
33
+ DeleteKeyParamsInfo()
34
+ : Core::JSON::Container()
35
+ {
36
+ Add(_T("namespace"), &Namespace);
37
+ Add(_T("key"), &Key);
38
+ Add(_T("scope"), &Scope);
39
+ }
40
+
41
+ DeleteKeyParamsInfo(const DeleteKeyParamsInfo&) = delete;
42
+ DeleteKeyParamsInfo(DeleteKeyParamsInfo&&) noexcept = delete;
43
+
44
+ DeleteKeyParamsInfo& operator=(const DeleteKeyParamsInfo&) = delete;
45
+ DeleteKeyParamsInfo& operator=(DeleteKeyParamsInfo&&) noexcept = delete;
46
+
47
+ ~DeleteKeyParamsInfo() = default;
48
+
49
+ public:
50
+ bool IsDataValid() const
51
+ {
52
+ return ((Namespace.IsSet() == true) && (Key.IsSet() == true));
53
+ }
54
+
55
+ public:
56
+ Core::JSON::String Namespace; // Deletes a key from the specified namespace
57
+ Core::JSON::String Key; // Deletes a key from the specified namespace
58
+ Core::JSON::EnumType<ScopeType> Scope; // Deletes a key from the specified namespace
59
+ }; // class DeleteKeyParamsInfo
60
+
61
+ class DeleteKeyResultInfo : public Core::JSON::Container {
62
+ public:
63
+ DeleteKeyResultInfo()
64
+ : Core::JSON::Container()
65
+ {
66
+ Add(_T("success"), &Success);
67
+ }
68
+
69
+ DeleteKeyResultInfo(const DeleteKeyResultInfo&) = delete;
70
+ DeleteKeyResultInfo(DeleteKeyResultInfo&&) noexcept = delete;
71
+
72
+ DeleteKeyResultInfo& operator=(const DeleteKeyResultInfo&) = delete;
73
+ DeleteKeyResultInfo& operator=(DeleteKeyResultInfo&&) noexcept = delete;
74
+
75
+ ~DeleteKeyResultInfo() = default;
76
+
77
+ public:
78
+ bool IsDataValid() const
79
+ {
80
+ return (Success.IsSet() == true);
81
+ }
82
+
83
+ public:
84
+ Core::JSON::Boolean Success; // Deletes a key from the specified namespace
85
+ }; // class DeleteKeyResultInfo
86
+
87
+ class DeleteNamespaceParamsInfo : public Core::JSON::Container {
88
+ public:
89
+ DeleteNamespaceParamsInfo()
90
+ : Core::JSON::Container()
91
+ {
92
+ Add(_T("namespace"), &Namespace);
93
+ Add(_T("scope"), &Scope);
94
+ }
95
+
96
+ DeleteNamespaceParamsInfo(const DeleteNamespaceParamsInfo&) = delete;
97
+ DeleteNamespaceParamsInfo(DeleteNamespaceParamsInfo&&) noexcept = delete;
98
+
99
+ DeleteNamespaceParamsInfo& operator=(const DeleteNamespaceParamsInfo&) = delete;
100
+ DeleteNamespaceParamsInfo& operator=(DeleteNamespaceParamsInfo&&) noexcept = delete;
101
+
102
+ ~DeleteNamespaceParamsInfo() = default;
103
+
104
+ public:
105
+ bool IsDataValid() const
106
+ {
107
+ return (Namespace.IsSet() == true);
108
+ }
109
+
110
+ public:
111
+ Core::JSON::String Namespace; // Deletes the specified namespace
112
+ Core::JSON::EnumType<ScopeType> Scope; // Deletes the specified namespace
113
+ }; // class DeleteNamespaceParamsInfo
114
+
115
+ class GetNamespacesParamsInfo : public Core::JSON::Container {
116
+ public:
117
+ GetNamespacesParamsInfo()
118
+ : Core::JSON::Container()
119
+ {
120
+ Add(_T("scope"), &Scope);
121
+ }
122
+
123
+ GetNamespacesParamsInfo(const GetNamespacesParamsInfo&) = delete;
124
+ GetNamespacesParamsInfo(GetNamespacesParamsInfo&&) noexcept = delete;
125
+
126
+ GetNamespacesParamsInfo& operator=(const GetNamespacesParamsInfo&) = delete;
127
+ GetNamespacesParamsInfo& operator=(GetNamespacesParamsInfo&&) noexcept = delete;
128
+
129
+ ~GetNamespacesParamsInfo() = default;
130
+
131
+ public:
132
+ bool IsDataValid() const
133
+ {
134
+ return (true);
135
+ }
136
+
137
+ public:
138
+ Core::JSON::EnumType<ScopeType> Scope; // Returns the namespaces
139
+ }; // class GetNamespacesParamsInfo
140
+
141
+ // Method params/result classes
142
+ //
143
+
144
+ class GetKeysResultData : public Core::JSON::Container {
145
+ public:
146
+ GetKeysResultData()
147
+ : Core::JSON::Container()
148
+ {
149
+ Add(_T("keys"), &Keys);
150
+ Add(_T("success"), &Success);
151
+ }
152
+
153
+ GetKeysResultData(const GetKeysResultData&) = delete;
154
+ GetKeysResultData(GetKeysResultData&&) noexcept = delete;
155
+
156
+ GetKeysResultData& operator=(const GetKeysResultData&) = delete;
157
+ GetKeysResultData& operator=(GetKeysResultData&&) noexcept = delete;
158
+
159
+ ~GetKeysResultData() = default;
160
+
161
+ public:
162
+ bool IsDataValid() const
163
+ {
164
+ return ((Keys.IsSet() == true) && (Success.IsSet() == true));
165
+ }
166
+
167
+ public:
168
+ Core::JSON::ArrayType<Core::JSON::String> Keys; // Returns the keys that are stored in the specified namespace
169
+ Core::JSON::Boolean Success; // Returns the keys that are stored in the specified namespace
170
+ }; // class GetKeysResultData
171
+
172
+ class GetNamespaceStorageLimitResultData : public Core::JSON::Container {
173
+ public:
174
+ GetNamespaceStorageLimitResultData()
175
+ : Core::JSON::Container()
176
+ {
177
+ Add(_T("storageLimit"), &StorageLimit);
178
+ }
179
+
180
+ GetNamespaceStorageLimitResultData(const GetNamespaceStorageLimitResultData&) = delete;
181
+ GetNamespaceStorageLimitResultData(GetNamespaceStorageLimitResultData&&) noexcept = delete;
182
+
183
+ GetNamespaceStorageLimitResultData& operator=(const GetNamespaceStorageLimitResultData&) = delete;
184
+ GetNamespaceStorageLimitResultData& operator=(GetNamespaceStorageLimitResultData&&) noexcept = delete;
185
+
186
+ ~GetNamespaceStorageLimitResultData() = default;
187
+
188
+ public:
189
+ bool IsDataValid() const
190
+ {
191
+ return (StorageLimit.IsSet() == true);
192
+ }
193
+
194
+ public:
195
+ Core::JSON::DecUInt32 StorageLimit; // Returns the storage limit for a given namespace
196
+ }; // class GetNamespaceStorageLimitResultData
197
+
198
+ class GetNamespacesResultData : public Core::JSON::Container {
199
+ public:
200
+ GetNamespacesResultData()
201
+ : Core::JSON::Container()
202
+ {
203
+ Add(_T("namespaces"), &Namespaces);
204
+ Add(_T("success"), &Success);
205
+ }
206
+
207
+ GetNamespacesResultData(const GetNamespacesResultData&) = delete;
208
+ GetNamespacesResultData(GetNamespacesResultData&&) noexcept = delete;
209
+
210
+ GetNamespacesResultData& operator=(const GetNamespacesResultData&) = delete;
211
+ GetNamespacesResultData& operator=(GetNamespacesResultData&&) noexcept = delete;
212
+
213
+ ~GetNamespacesResultData() = default;
214
+
215
+ public:
216
+ bool IsDataValid() const
217
+ {
218
+ return ((Namespaces.IsSet() == true) && (Success.IsSet() == true));
219
+ }
220
+
221
+ public:
222
+ Core::JSON::ArrayType<Core::JSON::String> Namespaces; // Returns the namespaces
223
+ Core::JSON::Boolean Success; // Returns the namespaces
224
+ }; // class GetNamespacesResultData
225
+
226
+ class GetStorageSizesResultData : public Core::JSON::Container {
227
+ public:
228
+ class StorageListDataElem : public Core::JSON::Container {
229
+ public:
230
+ StorageListDataElem()
231
+ : Core::JSON::Container()
232
+ {
233
+ _Init();
234
+ }
235
+
236
+ StorageListDataElem(const StorageListDataElem& _other)
237
+ : Core::JSON::Container()
238
+ , Namespace(_other.Namespace)
239
+ , Size(_other.Size)
240
+ {
241
+ _Init();
242
+ }
243
+
244
+ StorageListDataElem(StorageListDataElem&& _other) noexcept
245
+ : Core::JSON::Container()
246
+ , Namespace(std::move(_other.Namespace))
247
+ , Size(std::move(_other.Size))
248
+ {
249
+ _Init();
250
+ }
251
+
252
+ StorageListDataElem& operator=(const StorageListDataElem& _rhs)
253
+ {
254
+ Namespace = _rhs.Namespace;
255
+ Size = _rhs.Size;
256
+ return (*this);
257
+ }
258
+
259
+ StorageListDataElem& operator=(StorageListDataElem&& _rhs) noexcept
260
+ {
261
+ Namespace = std::move(_rhs.Namespace);
262
+ Size = std::move(_rhs.Size);
263
+ return (*this);
264
+ }
265
+
266
+ ~StorageListDataElem() = default;
267
+
268
+ public:
269
+ bool IsDataValid() const
270
+ {
271
+ return ((Namespace.IsSet() == true) && (Size.IsSet() == true));
272
+ }
273
+
274
+ private:
275
+ void _Init()
276
+ {
277
+ Add(_T("namespace"), &Namespace);
278
+ Add(_T("size"), &Size);
279
+ }
280
+
281
+ public:
282
+ Core::JSON::String Namespace;
283
+ Core::JSON::DecUInt32 Size;
284
+ }; // class StorageListDataElem
285
+
286
+ GetStorageSizesResultData()
287
+ : Core::JSON::Container()
288
+ {
289
+ Add(_T("storageList"), &StorageList);
290
+ }
291
+
292
+ GetStorageSizesResultData(const GetStorageSizesResultData&) = delete;
293
+ GetStorageSizesResultData(GetStorageSizesResultData&&) noexcept = delete;
294
+
295
+ GetStorageSizesResultData& operator=(const GetStorageSizesResultData&) = delete;
296
+ GetStorageSizesResultData& operator=(GetStorageSizesResultData&&) noexcept = delete;
297
+
298
+ ~GetStorageSizesResultData() = default;
299
+
300
+ public:
301
+ bool IsDataValid() const
302
+ {
303
+ return (StorageList.IsSet() == true);
304
+ }
305
+
306
+ public:
307
+ Core::JSON::ArrayType<GetStorageSizesResultData::StorageListDataElem> StorageList; // Returns the size occupied by each namespace
308
+ }; // class GetStorageSizesResultData
309
+
310
+ class GetValueResultData : public Core::JSON::Container {
311
+ public:
312
+ GetValueResultData()
313
+ : Core::JSON::Container()
314
+ {
315
+ Add(_T("value"), &Value);
316
+ Add(_T("success"), &Success);
317
+ Add(_T("ttl"), &Ttl);
318
+ }
319
+
320
+ GetValueResultData(const GetValueResultData&) = delete;
321
+ GetValueResultData(GetValueResultData&&) noexcept = delete;
322
+
323
+ GetValueResultData& operator=(const GetValueResultData&) = delete;
324
+ GetValueResultData& operator=(GetValueResultData&&) noexcept = delete;
325
+
326
+ ~GetValueResultData() = default;
327
+
328
+ public:
329
+ bool IsDataValid() const
330
+ {
331
+ return ((Value.IsSet() == true) && (Success.IsSet() == true));
332
+ }
333
+
334
+ public:
335
+ Core::JSON::String Value; // Returns the value of a key from the specified namespace
336
+ Core::JSON::Boolean Success; // Returns the value of a key from the specified namespace
337
+ Core::JSON::DecUInt32 Ttl; // Returns the value of a key from the specified namespace
338
+ }; // class GetValueResultData
339
+
340
+ class OnValueChangedParamsData : public Core::JSON::Container {
341
+ public:
342
+ OnValueChangedParamsData()
343
+ : Core::JSON::Container()
344
+ {
345
+ Add(_T("namespace"), &Namespace);
346
+ Add(_T("key"), &Key);
347
+ Add(_T("value"), &Value);
348
+ Add(_T("scope"), &Scope);
349
+ }
350
+
351
+ OnValueChangedParamsData(const OnValueChangedParamsData&) = delete;
352
+ OnValueChangedParamsData(OnValueChangedParamsData&&) noexcept = delete;
353
+
354
+ OnValueChangedParamsData& operator=(const OnValueChangedParamsData&) = delete;
355
+ OnValueChangedParamsData& operator=(OnValueChangedParamsData&&) noexcept = delete;
356
+
357
+ ~OnValueChangedParamsData() = default;
358
+
359
+ public:
360
+ bool IsDataValid() const
361
+ {
362
+ return ((Namespace.IsSet() == true) && (Key.IsSet() == true) && (Value.IsSet() == true) && (Scope.IsSet() == true));
363
+ }
364
+
365
+ public:
366
+ Core::JSON::String Namespace; // Triggered whenever any of the values stored are changed using setValue
367
+ Core::JSON::String Key; // Triggered whenever any of the values stored are changed using setValue
368
+ Core::JSON::String Value; // Triggered whenever any of the values stored are changed using setValue
369
+ Core::JSON::EnumType<ScopeType> Scope; // Triggered whenever any of the values stored are changed using setValue
370
+ }; // class OnValueChangedParamsData
371
+
372
+ class SetNamespaceStorageLimitParamsData : public Core::JSON::Container {
373
+ public:
374
+ SetNamespaceStorageLimitParamsData()
375
+ : Core::JSON::Container()
376
+ {
377
+ Add(_T("namespace"), &Namespace);
378
+ Add(_T("storageLimit"), &StorageLimit);
379
+ Add(_T("scope"), &Scope);
380
+ }
381
+
382
+ SetNamespaceStorageLimitParamsData(const SetNamespaceStorageLimitParamsData&) = delete;
383
+ SetNamespaceStorageLimitParamsData(SetNamespaceStorageLimitParamsData&&) noexcept = delete;
384
+
385
+ SetNamespaceStorageLimitParamsData& operator=(const SetNamespaceStorageLimitParamsData&) = delete;
386
+ SetNamespaceStorageLimitParamsData& operator=(SetNamespaceStorageLimitParamsData&&) noexcept = delete;
387
+
388
+ ~SetNamespaceStorageLimitParamsData() = default;
389
+
390
+ public:
391
+ bool IsDataValid() const
392
+ {
393
+ return ((Namespace.IsSet() == true) && (StorageLimit.IsSet() == true));
394
+ }
395
+
396
+ public:
397
+ Core::JSON::String Namespace; // Sets the storage limit for a given namespace
398
+ Core::JSON::DecUInt32 StorageLimit; // Sets the storage limit for a given namespace
399
+ Core::JSON::EnumType<ScopeType> Scope; // Sets the storage limit for a given namespace
400
+ }; // class SetNamespaceStorageLimitParamsData
401
+
402
+ class SetValueParamsData : public Core::JSON::Container {
403
+ public:
404
+ SetValueParamsData()
405
+ : Core::JSON::Container()
406
+ {
407
+ Add(_T("namespace"), &Namespace);
408
+ Add(_T("key"), &Key);
409
+ Add(_T("value"), &Value);
410
+ Add(_T("scope"), &Scope);
411
+ Add(_T("ttl"), &Ttl);
412
+ }
413
+
414
+ SetValueParamsData(const SetValueParamsData&) = delete;
415
+ SetValueParamsData(SetValueParamsData&&) noexcept = delete;
416
+
417
+ SetValueParamsData& operator=(const SetValueParamsData&) = delete;
418
+ SetValueParamsData& operator=(SetValueParamsData&&) noexcept = delete;
419
+
420
+ ~SetValueParamsData() = default;
421
+
422
+ public:
423
+ bool IsDataValid() const
424
+ {
425
+ return ((Namespace.IsSet() == true) && (Key.IsSet() == true) && (Value.IsSet() == true));
426
+ }
427
+
428
+ public:
429
+ Core::JSON::String Namespace; // Sets the value of a key in the the specified namespace
430
+ Core::JSON::String Key; // Sets the value of a key in the the specified namespace
431
+ Core::JSON::String Value; // Sets the value of a key in the the specified namespace
432
+ Core::JSON::EnumType<ScopeType> Scope; // Sets the value of a key in the the specified namespace
433
+ Core::JSON::DecUInt32 Ttl; // Sets the value of a key in the the specified namespace
434
+ }; // class SetValueParamsData
435
+
436
+ } // namespace PersistentStore
437
+
438
+ POP_WARNING()
439
+
440
+ } // namespace JsonData
441
+
442
+ // Enum conversion handlers
443
+ ENUM_CONVERSION_HANDLER(JsonData::PersistentStore::ScopeType)
444
+
445
+ }
446
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_PlayerInfo.h ADDED
@@ -0,0 +1,125 @@
1
+ // C++ types for Player Info API.
2
+ // Generated automatically from 'PlayerInfo.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace PlayerInfo {
18
+
19
+ // Method params/result classes
20
+ //
21
+
22
+ class DolbymodeData : public Core::JSON::Container {
23
+ public:
24
+ // Dolby output mode
25
+ enum class DolbyType : uint8_t {
26
+ DIGITAL_PCM = 0,
27
+ DIGITAL_PLUS = 3,
28
+ DIGITAL_AC3 = 4,
29
+ AUTO = 5
30
+ };
31
+
32
+ DolbymodeData()
33
+ : Core::JSON::Container()
34
+ {
35
+ Add(_T("value"), &Value);
36
+ }
37
+
38
+ DolbymodeData(const DolbymodeData&) = delete;
39
+ DolbymodeData(DolbymodeData&&) noexcept = delete;
40
+
41
+ DolbymodeData& operator=(const DolbymodeData&) = delete;
42
+ DolbymodeData& operator=(DolbymodeData&&) noexcept = delete;
43
+
44
+ ~DolbymodeData() = default;
45
+
46
+ public:
47
+ bool IsDataValid() const
48
+ {
49
+ return (Value.IsSet() == true);
50
+ }
51
+
52
+ public:
53
+ Core::JSON::EnumType<DolbymodeData::DolbyType> Value; // Dolby output mode
54
+ }; // class DolbymodeData
55
+
56
+ class CodecsData : public Core::JSON::Container {
57
+ public:
58
+ // Audio Codec supported by the platform
59
+ enum class AudiocodecsType : uint8_t {
60
+ UNDEFINED,
61
+ AAC,
62
+ AC3,
63
+ AC3PLUS,
64
+ DTS,
65
+ MPEG1,
66
+ MPEG2,
67
+ MPEG3,
68
+ MPEG4,
69
+ OPUS,
70
+ VORBISOGG,
71
+ WAV
72
+ };
73
+
74
+ // Video Codec supported by the platform
75
+ enum class VideocodecsType : uint8_t {
76
+ UNDEFINED,
77
+ H263,
78
+ H264,
79
+ H265,
80
+ H26510,
81
+ MPEG,
82
+ VP8,
83
+ VP9,
84
+ VP10
85
+ };
86
+
87
+ CodecsData()
88
+ : Core::JSON::Container()
89
+ {
90
+ Add(_T("audio"), &Audio);
91
+ Add(_T("video"), &Video);
92
+ }
93
+
94
+ CodecsData(const CodecsData&) = delete;
95
+ CodecsData(CodecsData&&) noexcept = delete;
96
+
97
+ CodecsData& operator=(const CodecsData&) = delete;
98
+ CodecsData& operator=(CodecsData&&) noexcept = delete;
99
+
100
+ ~CodecsData() = default;
101
+
102
+ public:
103
+ bool IsDataValid() const
104
+ {
105
+ return ((Audio.IsSet() == true) && (Video.IsSet() == true));
106
+ }
107
+
108
+ public:
109
+ Core::JSON::ArrayType<Core::JSON::EnumType<CodecsData::AudiocodecsType>> Audio; // Player general information
110
+ Core::JSON::ArrayType<Core::JSON::EnumType<CodecsData::VideocodecsType>> Video; // Player general information
111
+ }; // class CodecsData
112
+
113
+ } // namespace PlayerInfo
114
+
115
+ POP_WARNING()
116
+
117
+ } // namespace JsonData
118
+
119
+ // Enum conversion handlers
120
+ ENUM_CONVERSION_HANDLER(JsonData::PlayerInfo::CodecsData::AudiocodecsType)
121
+ ENUM_CONVERSION_HANDLER(JsonData::PlayerInfo::CodecsData::VideocodecsType)
122
+ ENUM_CONVERSION_HANDLER(JsonData::PlayerInfo::DolbymodeData::DolbyType)
123
+
124
+ }
125
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_PlayerProperties.h ADDED
@@ -0,0 +1,34 @@
1
+ // C++ types for PlayerProperties API.
2
+ // Generated automatically from 'IPlayerInfo.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IPlayerInfo.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace PlayerProperties {
18
+
19
+ // Method params/result classes
20
+ //
21
+
22
+ } // namespace PlayerProperties
23
+
24
+ POP_WARNING()
25
+
26
+ } // namespace JsonData
27
+
28
+ // Enum conversion handlers
29
+ ENUM_CONVERSION_HANDLER(Exchange::IPlayerProperties::AudioCodec)
30
+ ENUM_CONVERSION_HANDLER(Exchange::IPlayerProperties::VideoCodec)
31
+ ENUM_CONVERSION_HANDLER(Exchange::IPlayerProperties::PlaybackResolution)
32
+
33
+ }
34
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Power.h ADDED
@@ -0,0 +1,73 @@
1
+ // C++ types for Power API.
2
+ // Generated automatically from 'Power.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace Power {
18
+
19
+ // Common enums
20
+ //
21
+
22
+ // Power state
23
+ enum StateType : uint8_t {
24
+ ON = 1,
25
+ ACTIVESTANDBY = 2,
26
+ PASSIVESTANDBY = 3,
27
+ SUSPENDTORAM = 4,
28
+ HIBERNATE = 5,
29
+ POWEROFF = 6
30
+ };
31
+
32
+ // Method params/result classes
33
+ //
34
+
35
+ class PowerData : public Core::JSON::Container {
36
+ public:
37
+ PowerData()
38
+ : Core::JSON::Container()
39
+ {
40
+ Add(_T("powerstate"), &Powerstate);
41
+ Add(_T("timeout"), &Timeout);
42
+ }
43
+
44
+ PowerData(const PowerData&) = delete;
45
+ PowerData(PowerData&&) noexcept = delete;
46
+
47
+ PowerData& operator=(const PowerData&) = delete;
48
+ PowerData& operator=(PowerData&&) noexcept = delete;
49
+
50
+ ~PowerData() = default;
51
+
52
+ public:
53
+ bool IsDataValid() const
54
+ {
55
+ return ((Powerstate.IsSet() == true) && (Timeout.IsSet() == true));
56
+ }
57
+
58
+ public:
59
+ Core::JSON::EnumType<StateType> Powerstate; // Power state
60
+ Core::JSON::DecUInt32 Timeout; // Time to wait for power state change
61
+ }; // class PowerData
62
+
63
+ } // namespace Power
64
+
65
+ POP_WARNING()
66
+
67
+ } // namespace JsonData
68
+
69
+ // Enum conversion handlers
70
+ ENUM_CONVERSION_HANDLER(JsonData::Power::StateType)
71
+
72
+ }
73
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Provisioning.h ADDED
@@ -0,0 +1,112 @@
1
+ // C++ types for Provisioning API.
2
+ // Generated automatically from 'Provisioning.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+
10
+ namespace WPEFramework {
11
+
12
+ namespace JsonData {
13
+
14
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
15
+
16
+ namespace Provisioning {
17
+
18
+ // Method params/result classes
19
+ //
20
+
21
+ class IndexParamsData : public Core::JSON::Container {
22
+ public:
23
+ IndexParamsData()
24
+ : Core::JSON::Container()
25
+ {
26
+ Add(_T("label"), &Label);
27
+ Add(_T("index"), &Index);
28
+ }
29
+
30
+ IndexParamsData(const IndexParamsData&) = delete;
31
+ IndexParamsData(IndexParamsData&&) noexcept = delete;
32
+
33
+ IndexParamsData& operator=(const IndexParamsData&) = delete;
34
+ IndexParamsData& operator=(IndexParamsData&&) noexcept = delete;
35
+
36
+ ~IndexParamsData() = default;
37
+
38
+ public:
39
+ bool IsDataValid() const
40
+ {
41
+ return ((Label.IsSet() == true) && (Index.IsSet() == true));
42
+ }
43
+
44
+ public:
45
+ Core::JSON::String Label; // The label name for which the index should be changed
46
+ Core::JSON::DecUInt32 Index; // Index to be used for the key
47
+ }; // class IndexParamsData
48
+
49
+ class ProvisioningchangeParamsData : public Core::JSON::Container {
50
+ public:
51
+ ProvisioningchangeParamsData()
52
+ : Core::JSON::Container()
53
+ {
54
+ Add(_T("status"), &Status);
55
+ }
56
+
57
+ ProvisioningchangeParamsData(const ProvisioningchangeParamsData&) = delete;
58
+ ProvisioningchangeParamsData(ProvisioningchangeParamsData&&) noexcept = delete;
59
+
60
+ ProvisioningchangeParamsData& operator=(const ProvisioningchangeParamsData&) = delete;
61
+ ProvisioningchangeParamsData& operator=(ProvisioningchangeParamsData&&) noexcept = delete;
62
+
63
+ ~ProvisioningchangeParamsData() = default;
64
+
65
+ public:
66
+ bool IsDataValid() const
67
+ {
68
+ return (Status.IsSet() == true);
69
+ }
70
+
71
+ public:
72
+ Core::JSON::DecUInt32 Status; // Provision status
73
+ }; // class ProvisioningchangeParamsData
74
+
75
+ class StateData : public Core::JSON::Container {
76
+ public:
77
+ StateData()
78
+ : Core::JSON::Container()
79
+ {
80
+ Add(_T("id"), &Id);
81
+ Add(_T("status"), &Status);
82
+ Add(_T("tokens"), &Tokens);
83
+ }
84
+
85
+ StateData(const StateData&) = delete;
86
+ StateData(StateData&&) noexcept = delete;
87
+
88
+ StateData& operator=(const StateData&) = delete;
89
+ StateData& operator=(StateData&&) noexcept = delete;
90
+
91
+ ~StateData() = default;
92
+
93
+ public:
94
+ bool IsDataValid() const
95
+ {
96
+ return ((Id.IsSet() == true) && (Status.IsSet() == true) && (Tokens.IsSet() == true));
97
+ }
98
+
99
+ public:
100
+ Core::JSON::String Id; // Provision ID value
101
+ Core::JSON::DecUInt32 Status; // Provision status
102
+ Core::JSON::ArrayType<Core::JSON::String> Tokens; // List of provisioned systems
103
+ }; // class StateData
104
+
105
+ } // namespace Provisioning
106
+
107
+ POP_WARNING()
108
+
109
+ } // namespace JsonData
110
+
111
+ }
112
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_RemoteControl.h ADDED
@@ -0,0 +1,244 @@
1
+ // C++ types for Remote Control API.
2
+ // Generated automatically from 'RemoteControl.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace RemoteControl {
18
+
19
+ // Common enums
20
+ //
21
+
22
+ // Key modifier
23
+ enum ModifiersType : uint8_t {
24
+ LEFTSHIFT = 1,
25
+ RIGHTSHIFT = 2,
26
+ LEFTALT = 4,
27
+ RIGHTALT = 8,
28
+ LEFTCTRL = 16,
29
+ RIGHTCTRL = 32
30
+ };
31
+
32
+ // Common classes
33
+ //
34
+
35
+ class KeyobjInfo : public Core::JSON::Container {
36
+ public:
37
+ KeyobjInfo()
38
+ : Core::JSON::Container()
39
+ {
40
+ Add(_T("device"), &Device);
41
+ Add(_T("code"), &Code);
42
+ }
43
+
44
+ KeyobjInfo(const KeyobjInfo&) = delete;
45
+ KeyobjInfo(KeyobjInfo&&) noexcept = delete;
46
+
47
+ KeyobjInfo& operator=(const KeyobjInfo&) = delete;
48
+ KeyobjInfo& operator=(KeyobjInfo&&) noexcept = delete;
49
+
50
+ ~KeyobjInfo() = default;
51
+
52
+ public:
53
+ bool IsDataValid() const
54
+ {
55
+ return ((Device.IsSet() == true) && (Code.IsSet() == true));
56
+ }
57
+
58
+ public:
59
+ Core::JSON::String Device; // Device name
60
+ Core::JSON::DecUInt32 Code; // Key code
61
+ }; // class KeyobjInfo
62
+
63
+ class LoadParamsInfo : public Core::JSON::Container {
64
+ public:
65
+ LoadParamsInfo()
66
+ : Core::JSON::Container()
67
+ {
68
+ Add(_T("device"), &Device);
69
+ }
70
+
71
+ LoadParamsInfo(const LoadParamsInfo&) = delete;
72
+ LoadParamsInfo(LoadParamsInfo&&) noexcept = delete;
73
+
74
+ LoadParamsInfo& operator=(const LoadParamsInfo&) = delete;
75
+ LoadParamsInfo& operator=(LoadParamsInfo&&) noexcept = delete;
76
+
77
+ ~LoadParamsInfo() = default;
78
+
79
+ public:
80
+ bool IsDataValid() const
81
+ {
82
+ return (Device.IsSet() == true);
83
+ }
84
+
85
+ public:
86
+ Core::JSON::String Device; // Device name
87
+ }; // class LoadParamsInfo
88
+
89
+ class RcobjInfo : public Core::JSON::Container {
90
+ public:
91
+ RcobjInfo()
92
+ : Core::JSON::Container()
93
+ {
94
+ Add(_T("device"), &Device);
95
+ Add(_T("code"), &Code);
96
+ Add(_T("key"), &Key);
97
+ Add(_T("modifiers"), &Modifiers);
98
+ }
99
+
100
+ RcobjInfo(const RcobjInfo&) = delete;
101
+ RcobjInfo(RcobjInfo&&) noexcept = delete;
102
+
103
+ RcobjInfo& operator=(const RcobjInfo&) = delete;
104
+ RcobjInfo& operator=(RcobjInfo&&) noexcept = delete;
105
+
106
+ ~RcobjInfo() = default;
107
+
108
+ public:
109
+ bool IsDataValid() const
110
+ {
111
+ return ((Device.IsSet() == true) && (Code.IsSet() == true) && (Key.IsSet() == true));
112
+ }
113
+
114
+ public:
115
+ Core::JSON::String Device; // Device name
116
+ Core::JSON::DecUInt32 Code; // Key code
117
+ Core::JSON::DecUInt16 Key; // Key ingest value
118
+ Core::JSON::ArrayType<Core::JSON::EnumType<ModifiersType>> Modifiers; // List of key modifiers
119
+ }; // class RcobjInfo
120
+
121
+ // Method params/result classes
122
+ //
123
+
124
+ class DeviceData : public Core::JSON::Container {
125
+ public:
126
+ DeviceData()
127
+ : Core::JSON::Container()
128
+ {
129
+ Add(_T("metadata"), &Metadata);
130
+ }
131
+
132
+ DeviceData(const DeviceData&) = delete;
133
+ DeviceData(DeviceData&&) noexcept = delete;
134
+
135
+ DeviceData& operator=(const DeviceData&) = delete;
136
+ DeviceData& operator=(DeviceData&&) noexcept = delete;
137
+
138
+ ~DeviceData() = default;
139
+
140
+ public:
141
+ bool IsDataValid() const
142
+ {
143
+ return (Metadata.IsSet() == true);
144
+ }
145
+
146
+ public:
147
+ Core::JSON::String Metadata; // Device metadata
148
+ }; // class DeviceData
149
+
150
+ class KeyResultData : public Core::JSON::Container {
151
+ public:
152
+ KeyResultData()
153
+ : Core::JSON::Container()
154
+ {
155
+ Add(_T("code"), &Code);
156
+ Add(_T("key"), &Key);
157
+ Add(_T("modifiers"), &Modifiers);
158
+ }
159
+
160
+ KeyResultData(const KeyResultData&) = delete;
161
+ KeyResultData(KeyResultData&&) noexcept = delete;
162
+
163
+ KeyResultData& operator=(const KeyResultData&) = delete;
164
+ KeyResultData& operator=(KeyResultData&&) noexcept = delete;
165
+
166
+ ~KeyResultData() = default;
167
+
168
+ public:
169
+ bool IsDataValid() const
170
+ {
171
+ return ((Code.IsSet() == true) && (Key.IsSet() == true));
172
+ }
173
+
174
+ public:
175
+ Core::JSON::DecUInt32 Code; // Key code
176
+ Core::JSON::DecUInt16 Key; // Key ingest value
177
+ Core::JSON::ArrayType<Core::JSON::EnumType<ModifiersType>> Modifiers; // List of key modifiers
178
+ }; // class KeyResultData
179
+
180
+ class KeypressedParamsData : public Core::JSON::Container {
181
+ public:
182
+ KeypressedParamsData()
183
+ : Core::JSON::Container()
184
+ {
185
+ Add(_T("pressed"), &Pressed);
186
+ }
187
+
188
+ KeypressedParamsData(const KeypressedParamsData&) = delete;
189
+ KeypressedParamsData(KeypressedParamsData&&) noexcept = delete;
190
+
191
+ KeypressedParamsData& operator=(const KeypressedParamsData&) = delete;
192
+ KeypressedParamsData& operator=(KeypressedParamsData&&) noexcept = delete;
193
+
194
+ ~KeypressedParamsData() = default;
195
+
196
+ public:
197
+ bool IsDataValid() const
198
+ {
199
+ return (Pressed.IsSet() == true);
200
+ }
201
+
202
+ public:
203
+ Core::JSON::Boolean Pressed; // Denotes if the key was pressed (true) or released (false)
204
+ }; // class KeypressedParamsData
205
+
206
+ class UnpairParamsData : public Core::JSON::Container {
207
+ public:
208
+ UnpairParamsData()
209
+ : Core::JSON::Container()
210
+ {
211
+ Add(_T("device"), &Device);
212
+ Add(_T("bindid"), &Bindid);
213
+ }
214
+
215
+ UnpairParamsData(const UnpairParamsData&) = delete;
216
+ UnpairParamsData(UnpairParamsData&&) noexcept = delete;
217
+
218
+ UnpairParamsData& operator=(const UnpairParamsData&) = delete;
219
+ UnpairParamsData& operator=(UnpairParamsData&&) noexcept = delete;
220
+
221
+ ~UnpairParamsData() = default;
222
+
223
+ public:
224
+ bool IsDataValid() const
225
+ {
226
+ return ((Device.IsSet() == true) && (Bindid.IsSet() == true));
227
+ }
228
+
229
+ public:
230
+ Core::JSON::String Device; // Device name
231
+ Core::JSON::String Bindid; // Binding ID
232
+ }; // class UnpairParamsData
233
+
234
+ } // namespace RemoteControl
235
+
236
+ POP_WARNING()
237
+
238
+ } // namespace JsonData
239
+
240
+ // Enum conversion handlers
241
+ ENUM_CONVERSION_HANDLER(JsonData::RemoteControl::ModifiersType)
242
+
243
+ }
244
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_ScriptEngine.h ADDED
@@ -0,0 +1,81 @@
1
+ // C++ types for ScriptEngine API.
2
+ // Generated automatically from 'IScriptEngine.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IScriptEngine.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace ScriptEngine {
18
+
19
+ // Method params/result classes
20
+ //
21
+
22
+ class URLChangedParamsData : public Core::JSON::Container {
23
+ public:
24
+ URLChangedParamsData()
25
+ : Core::JSON::Container()
26
+ {
27
+ Add(_T("url"), &URL);
28
+ }
29
+
30
+ URLChangedParamsData(const URLChangedParamsData&) = delete;
31
+ URLChangedParamsData(URLChangedParamsData&&) noexcept = delete;
32
+
33
+ URLChangedParamsData& operator=(const URLChangedParamsData&) = delete;
34
+ URLChangedParamsData& operator=(URLChangedParamsData&&) noexcept = delete;
35
+
36
+ ~URLChangedParamsData() = default;
37
+
38
+ public:
39
+ bool IsDataValid() const
40
+ {
41
+ return (URL.IsSet() == true);
42
+ }
43
+
44
+ public:
45
+ Core::JSON::String URL;
46
+ }; // class URLChangedParamsData
47
+
48
+ class URLData : public Core::JSON::Container {
49
+ public:
50
+ URLData()
51
+ : Core::JSON::Container()
52
+ {
53
+ Add(_T("value"), &Value);
54
+ }
55
+
56
+ URLData(const URLData&) = delete;
57
+ URLData(URLData&&) noexcept = delete;
58
+
59
+ URLData& operator=(const URLData&) = delete;
60
+ URLData& operator=(URLData&&) noexcept = delete;
61
+
62
+ ~URLData() = default;
63
+
64
+ public:
65
+ bool IsDataValid() const
66
+ {
67
+ return (Value.IsSet() == true);
68
+ }
69
+
70
+ public:
71
+ Core::JSON::String Value; // Script to be loaded into the engine and to be executed.
72
+ }; // class URLData
73
+
74
+ } // namespace ScriptEngine
75
+
76
+ POP_WARNING()
77
+
78
+ } // namespace JsonData
79
+
80
+ }
81
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_SecureShellServer.h ADDED
@@ -0,0 +1,118 @@
1
+ // C++ types for SecureShell Server API.
2
+ // Generated automatically from 'SecureShellServer.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+
10
+ namespace WPEFramework {
11
+
12
+ namespace JsonData {
13
+
14
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
15
+
16
+ namespace SecureShellServer {
17
+
18
+ // Method params/result classes
19
+ //
20
+
21
+ class Close_client_sessionParamsData : public Core::JSON::Container {
22
+ public:
23
+ Close_client_sessionParamsData()
24
+ : Core::JSON::Container()
25
+ {
26
+ Add(_T("clientpid"), &Clientpid);
27
+ }
28
+
29
+ Close_client_sessionParamsData(const Close_client_sessionParamsData&) = delete;
30
+ Close_client_sessionParamsData(Close_client_sessionParamsData&&) noexcept = delete;
31
+
32
+ Close_client_sessionParamsData& operator=(const Close_client_sessionParamsData&) = delete;
33
+ Close_client_sessionParamsData& operator=(Close_client_sessionParamsData&&) noexcept = delete;
34
+
35
+ ~Close_client_sessionParamsData() = default;
36
+
37
+ public:
38
+ bool IsDataValid() const
39
+ {
40
+ return (Clientpid.IsSet() == true);
41
+ }
42
+
43
+ public:
44
+ Core::JSON::String Clientpid; // SSH client process id
45
+ }; // class Close_client_sessionParamsData
46
+
47
+ class Get_active_sessions_infoResultDataElem : public Core::JSON::Container {
48
+ public:
49
+ Get_active_sessions_infoResultDataElem()
50
+ : Core::JSON::Container()
51
+ {
52
+ _Init();
53
+ }
54
+
55
+ Get_active_sessions_infoResultDataElem(const Get_active_sessions_infoResultDataElem& _other)
56
+ : Core::JSON::Container()
57
+ , Pid(_other.Pid)
58
+ , Ipaddress(_other.Ipaddress)
59
+ , Timestamp(_other.Timestamp)
60
+ {
61
+ _Init();
62
+ }
63
+
64
+ Get_active_sessions_infoResultDataElem(Get_active_sessions_infoResultDataElem&& _other) noexcept
65
+ : Core::JSON::Container()
66
+ , Pid(std::move(_other.Pid))
67
+ , Ipaddress(std::move(_other.Ipaddress))
68
+ , Timestamp(std::move(_other.Timestamp))
69
+ {
70
+ _Init();
71
+ }
72
+
73
+ Get_active_sessions_infoResultDataElem& operator=(const Get_active_sessions_infoResultDataElem& _rhs)
74
+ {
75
+ Pid = _rhs.Pid;
76
+ Ipaddress = _rhs.Ipaddress;
77
+ Timestamp = _rhs.Timestamp;
78
+ return (*this);
79
+ }
80
+
81
+ Get_active_sessions_infoResultDataElem& operator=(Get_active_sessions_infoResultDataElem&& _rhs) noexcept
82
+ {
83
+ Pid = std::move(_rhs.Pid);
84
+ Ipaddress = std::move(_rhs.Ipaddress);
85
+ Timestamp = std::move(_rhs.Timestamp);
86
+ return (*this);
87
+ }
88
+
89
+ ~Get_active_sessions_infoResultDataElem() = default;
90
+
91
+ public:
92
+ bool IsDataValid() const
93
+ {
94
+ return ((Pid.IsSet() == true) && (Ipaddress.IsSet() == true) && (Timestamp.IsSet() == true));
95
+ }
96
+
97
+ private:
98
+ void _Init()
99
+ {
100
+ Add(_T("pid"), &Pid);
101
+ Add(_T("ipaddress"), &Ipaddress);
102
+ Add(_T("timestamp"), &Timestamp);
103
+ }
104
+
105
+ public:
106
+ Core::JSON::DecUInt64 Pid; // SSH client process ID
107
+ Core::JSON::String Ipaddress; // SSH client connected from this IP address
108
+ Core::JSON::String Timestamp; // SSH client connected at this timestamp
109
+ }; // class Get_active_sessions_infoResultDataElem
110
+
111
+ } // namespace SecureShellServer
112
+
113
+ POP_WARNING()
114
+
115
+ } // namespace JsonData
116
+
117
+ }
118
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_SecurityAgent.h ADDED
@@ -0,0 +1,113 @@
1
+ // C++ types for Security Agent API.
2
+ // Generated automatically from 'SecurityAgent.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+
10
+ namespace WPEFramework {
11
+
12
+ namespace JsonData {
13
+
14
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
15
+
16
+ namespace SecurityAgent {
17
+
18
+ // Common classes
19
+ //
20
+
21
+ class CreatetokenResultInfo : public Core::JSON::Container {
22
+ public:
23
+ CreatetokenResultInfo()
24
+ : Core::JSON::Container()
25
+ {
26
+ Add(_T("token"), &Token);
27
+ }
28
+
29
+ CreatetokenResultInfo(const CreatetokenResultInfo&) = delete;
30
+ CreatetokenResultInfo(CreatetokenResultInfo&&) noexcept = delete;
31
+
32
+ CreatetokenResultInfo& operator=(const CreatetokenResultInfo&) = delete;
33
+ CreatetokenResultInfo& operator=(CreatetokenResultInfo&&) noexcept = delete;
34
+
35
+ ~CreatetokenResultInfo() = default;
36
+
37
+ public:
38
+ bool IsDataValid() const
39
+ {
40
+ return (Token.IsSet() == true);
41
+ }
42
+
43
+ public:
44
+ Core::JSON::String Token; // Signed JsonWeb token
45
+ }; // class CreatetokenResultInfo
46
+
47
+ // Method params/result classes
48
+ //
49
+
50
+ class CreatetokenParamsData : public Core::JSON::Container {
51
+ public:
52
+ CreatetokenParamsData()
53
+ : Core::JSON::Container()
54
+ {
55
+ Add(_T("url"), &Url);
56
+ Add(_T("user"), &User);
57
+ Add(_T("hash"), &Hash);
58
+ }
59
+
60
+ CreatetokenParamsData(const CreatetokenParamsData&) = delete;
61
+ CreatetokenParamsData(CreatetokenParamsData&&) noexcept = delete;
62
+
63
+ CreatetokenParamsData& operator=(const CreatetokenParamsData&) = delete;
64
+ CreatetokenParamsData& operator=(CreatetokenParamsData&&) noexcept = delete;
65
+
66
+ ~CreatetokenParamsData() = default;
67
+
68
+ public:
69
+ bool IsDataValid() const
70
+ {
71
+ return ((Url.IsSet() == true) && (User.IsSet() == true) && (Hash.IsSet() == true));
72
+ }
73
+
74
+ public:
75
+ Core::JSON::String Url; // Url of application origin
76
+ Core::JSON::String User; // Username
77
+ Core::JSON::String Hash; // Random hash
78
+ }; // class CreatetokenParamsData
79
+
80
+ class ValidateResultData : public Core::JSON::Container {
81
+ public:
82
+ ValidateResultData()
83
+ : Core::JSON::Container()
84
+ {
85
+ Add(_T("valid"), &Valid);
86
+ }
87
+
88
+ ValidateResultData(const ValidateResultData&) = delete;
89
+ ValidateResultData(ValidateResultData&&) noexcept = delete;
90
+
91
+ ValidateResultData& operator=(const ValidateResultData&) = delete;
92
+ ValidateResultData& operator=(ValidateResultData&&) noexcept = delete;
93
+
94
+ ~ValidateResultData() = default;
95
+
96
+ public:
97
+ bool IsDataValid() const
98
+ {
99
+ return (Valid.IsSet() == true);
100
+ }
101
+
102
+ public:
103
+ Core::JSON::Boolean Valid; // Tells whether token is signature is correct
104
+ }; // class ValidateResultData
105
+
106
+ } // namespace SecurityAgent
107
+
108
+ POP_WARNING()
109
+
110
+ } // namespace JsonData
111
+
112
+ }
113
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_StateControl.h ADDED
@@ -0,0 +1,67 @@
1
+ // C++ types for StateControl API.
2
+ // Generated automatically from 'StateControl.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace StateControl {
18
+
19
+ // Common enums
20
+ //
21
+
22
+ // Running state of the service
23
+ enum class StateType : uint8_t {
24
+ RESUMED,
25
+ SUSPENDED
26
+ };
27
+
28
+ // Method params/result classes
29
+ //
30
+
31
+ class StatechangeParamsData : public Core::JSON::Container {
32
+ public:
33
+ StatechangeParamsData()
34
+ : Core::JSON::Container()
35
+ {
36
+ Add(_T("suspended"), &Suspended);
37
+ }
38
+
39
+ StatechangeParamsData(const StatechangeParamsData&) = delete;
40
+ StatechangeParamsData(StatechangeParamsData&&) noexcept = delete;
41
+
42
+ StatechangeParamsData& operator=(const StatechangeParamsData&) = delete;
43
+ StatechangeParamsData& operator=(StatechangeParamsData&&) noexcept = delete;
44
+
45
+ ~StatechangeParamsData() = default;
46
+
47
+ public:
48
+ bool IsDataValid() const
49
+ {
50
+ return (Suspended.IsSet() == true);
51
+ }
52
+
53
+ public:
54
+ Core::JSON::Boolean Suspended; // Determines if the service has entered suspended state (true) or resumed state (false)
55
+ }; // class StatechangeParamsData
56
+
57
+ } // namespace StateControl
58
+
59
+ POP_WARNING()
60
+
61
+ } // namespace JsonData
62
+
63
+ // Enum conversion handlers
64
+ ENUM_CONVERSION_HANDLER(JsonData::StateControl::StateType)
65
+
66
+ }
67
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_Streamer.h ADDED
@@ -0,0 +1,324 @@
1
+ // C++ types for Streamer API.
2
+ // Generated automatically from 'Streamer.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace Streamer {
18
+
19
+ // Common enums
20
+ //
21
+
22
+ // DRM used
23
+ enum class DrmType : uint8_t {
24
+ NONE,
25
+ CLEARKEY,
26
+ PLAYREADY,
27
+ WIDEVINE,
28
+ UNKNOWN
29
+ };
30
+
31
+ // Stream state
32
+ enum class StateType : uint8_t {
33
+ IDLE,
34
+ LOADING,
35
+ PREPARED,
36
+ CONTROLLED,
37
+ ERROR
38
+ };
39
+
40
+ // Stream type
41
+ enum class StreamType : uint8_t {
42
+ UNDEFINED = 0,
43
+ CABLE = 1,
44
+ HANDHELD = 2,
45
+ SATELLITE = 4,
46
+ TERRESTRIAL = 8,
47
+ DAB = 16,
48
+ RF = 31,
49
+ UNICAST = 32,
50
+ MULTICAST = 64,
51
+ IP = 96
52
+ };
53
+
54
+ // Common classes
55
+ //
56
+
57
+ class IdInfo : public Core::JSON::Container {
58
+ public:
59
+ IdInfo()
60
+ : Core::JSON::Container()
61
+ {
62
+ Add(_T("id"), &Id);
63
+ }
64
+
65
+ IdInfo(const IdInfo&) = delete;
66
+ IdInfo(IdInfo&&) noexcept = delete;
67
+
68
+ IdInfo& operator=(const IdInfo&) = delete;
69
+ IdInfo& operator=(IdInfo&&) noexcept = delete;
70
+
71
+ ~IdInfo() = default;
72
+
73
+ public:
74
+ bool IsDataValid() const
75
+ {
76
+ return (Id.IsSet() == true);
77
+ }
78
+
79
+ public:
80
+ Core::JSON::DecUInt8 Id; // Stream ID
81
+ }; // class IdInfo
82
+
83
+ class StreamParamsInfo : public Core::JSON::Container {
84
+ public:
85
+ StreamParamsInfo()
86
+ : Core::JSON::Container()
87
+ {
88
+ Add(_T("code"), &Code);
89
+ }
90
+
91
+ StreamParamsInfo(const StreamParamsInfo&) = delete;
92
+ StreamParamsInfo(StreamParamsInfo&&) noexcept = delete;
93
+
94
+ StreamParamsInfo& operator=(const StreamParamsInfo&) = delete;
95
+ StreamParamsInfo& operator=(StreamParamsInfo&&) noexcept = delete;
96
+
97
+ ~StreamParamsInfo() = default;
98
+
99
+ public:
100
+ bool IsDataValid() const
101
+ {
102
+ return (Code.IsSet() == true);
103
+ }
104
+
105
+ public:
106
+ Core::JSON::DecUInt32 Code; // Implementation-specific incident code
107
+ }; // class StreamParamsInfo
108
+
109
+ // Method params/result classes
110
+ //
111
+
112
+ class CreateParamsData : public Core::JSON::Container {
113
+ public:
114
+ CreateParamsData()
115
+ : Core::JSON::Container()
116
+ {
117
+ Add(_T("type"), &Type);
118
+ }
119
+
120
+ CreateParamsData(const CreateParamsData&) = delete;
121
+ CreateParamsData(CreateParamsData&&) noexcept = delete;
122
+
123
+ CreateParamsData& operator=(const CreateParamsData&) = delete;
124
+ CreateParamsData& operator=(CreateParamsData&&) noexcept = delete;
125
+
126
+ ~CreateParamsData() = default;
127
+
128
+ public:
129
+ bool IsDataValid() const
130
+ {
131
+ return (Type.IsSet() == true);
132
+ }
133
+
134
+ public:
135
+ Core::JSON::EnumType<StreamType> Type; // Stream type
136
+ }; // class CreateParamsData
137
+
138
+ class StreamelementData : public Core::JSON::Container {
139
+ public:
140
+ // Stream element type
141
+ enum class ElementType : uint8_t {
142
+ VIDEO,
143
+ AUDIO,
144
+ SUBTITLES,
145
+ TELETEXT,
146
+ DATA
147
+ };
148
+
149
+ StreamelementData()
150
+ : Core::JSON::Container()
151
+ {
152
+ _Init();
153
+ }
154
+
155
+ StreamelementData(const StreamelementData& _other)
156
+ : Core::JSON::Container()
157
+ , Type(_other.Type)
158
+ {
159
+ _Init();
160
+ }
161
+
162
+ StreamelementData(StreamelementData&& _other) noexcept
163
+ : Core::JSON::Container()
164
+ , Type(std::move(_other.Type))
165
+ {
166
+ _Init();
167
+ }
168
+
169
+ StreamelementData& operator=(const StreamelementData& _rhs)
170
+ {
171
+ Type = _rhs.Type;
172
+ return (*this);
173
+ }
174
+
175
+ StreamelementData& operator=(StreamelementData&& _rhs) noexcept
176
+ {
177
+ Type = std::move(_rhs.Type);
178
+ return (*this);
179
+ }
180
+
181
+ ~StreamelementData() = default;
182
+
183
+ public:
184
+ bool IsDataValid() const
185
+ {
186
+ return (Type.IsSet() == true);
187
+ }
188
+
189
+ private:
190
+ void _Init()
191
+ {
192
+ Add(_T("type"), &Type);
193
+ }
194
+
195
+ public:
196
+ Core::JSON::EnumType<StreamelementData::ElementType> Type; // Stream element type
197
+ }; // class StreamelementData
198
+
199
+ class LoadParamsData : public Core::JSON::Container {
200
+ public:
201
+ LoadParamsData()
202
+ : Core::JSON::Container()
203
+ {
204
+ Add(_T("id"), &Id);
205
+ Add(_T("location"), &Location);
206
+ }
207
+
208
+ LoadParamsData(const LoadParamsData&) = delete;
209
+ LoadParamsData(LoadParamsData&&) noexcept = delete;
210
+
211
+ LoadParamsData& operator=(const LoadParamsData&) = delete;
212
+ LoadParamsData& operator=(LoadParamsData&&) noexcept = delete;
213
+
214
+ ~LoadParamsData() = default;
215
+
216
+ public:
217
+ bool IsDataValid() const
218
+ {
219
+ return ((Id.IsSet() == true) && (Location.IsSet() == true));
220
+ }
221
+
222
+ public:
223
+ Core::JSON::DecUInt8 Id; // Stream ID
224
+ Core::JSON::String Location; // Location of the source to load
225
+ }; // class LoadParamsData
226
+
227
+ class StatechangeParamsData : public Core::JSON::Container {
228
+ public:
229
+ StatechangeParamsData()
230
+ : Core::JSON::Container()
231
+ {
232
+ Add(_T("state"), &State);
233
+ }
234
+
235
+ StatechangeParamsData(const StatechangeParamsData&) = delete;
236
+ StatechangeParamsData(StatechangeParamsData&&) noexcept = delete;
237
+
238
+ StatechangeParamsData& operator=(const StatechangeParamsData&) = delete;
239
+ StatechangeParamsData& operator=(StatechangeParamsData&&) noexcept = delete;
240
+
241
+ ~StatechangeParamsData() = default;
242
+
243
+ public:
244
+ bool IsDataValid() const
245
+ {
246
+ return (State.IsSet() == true);
247
+ }
248
+
249
+ public:
250
+ Core::JSON::EnumType<StateType> State; // Stream state
251
+ }; // class StatechangeParamsData
252
+
253
+ class TimeupdateParamsData : public Core::JSON::Container {
254
+ public:
255
+ TimeupdateParamsData()
256
+ : Core::JSON::Container()
257
+ {
258
+ Add(_T("time"), &Time);
259
+ }
260
+
261
+ TimeupdateParamsData(const TimeupdateParamsData&) = delete;
262
+ TimeupdateParamsData(TimeupdateParamsData&&) noexcept = delete;
263
+
264
+ TimeupdateParamsData& operator=(const TimeupdateParamsData&) = delete;
265
+ TimeupdateParamsData& operator=(TimeupdateParamsData&&) noexcept = delete;
266
+
267
+ ~TimeupdateParamsData() = default;
268
+
269
+ public:
270
+ bool IsDataValid() const
271
+ {
272
+ return (Time.IsSet() == true);
273
+ }
274
+
275
+ public:
276
+ Core::JSON::DecUInt64 Time; // Stream position in miliseconds
277
+ }; // class TimeupdateParamsData
278
+
279
+ class WindowData : public Core::JSON::Container {
280
+ public:
281
+ WindowData()
282
+ : Core::JSON::Container()
283
+ {
284
+ Add(_T("x"), &X);
285
+ Add(_T("y"), &Y);
286
+ Add(_T("width"), &Width);
287
+ Add(_T("height"), &Height);
288
+ }
289
+
290
+ WindowData(const WindowData&) = delete;
291
+ WindowData(WindowData&&) noexcept = delete;
292
+
293
+ WindowData& operator=(const WindowData&) = delete;
294
+ WindowData& operator=(WindowData&&) noexcept = delete;
295
+
296
+ ~WindowData() = default;
297
+
298
+ public:
299
+ bool IsDataValid() const
300
+ {
301
+ return ((X.IsSet() == true) && (Y.IsSet() == true) && (Width.IsSet() == true) && (Height.IsSet() == true));
302
+ }
303
+
304
+ public:
305
+ Core::JSON::DecUInt32 X; // Horizontal position of the window (in pixels)
306
+ Core::JSON::DecUInt32 Y; // Vertical position of the window (in pixels)
307
+ Core::JSON::DecUInt32 Width; // Width of the window (in pixels)
308
+ Core::JSON::DecUInt32 Height; // Height of the window (in pixels)
309
+ }; // class WindowData
310
+
311
+ } // namespace Streamer
312
+
313
+ POP_WARNING()
314
+
315
+ } // namespace JsonData
316
+
317
+ // Enum conversion handlers
318
+ ENUM_CONVERSION_HANDLER(JsonData::Streamer::StreamType)
319
+ ENUM_CONVERSION_HANDLER(JsonData::Streamer::DrmType)
320
+ ENUM_CONVERSION_HANDLER(JsonData::Streamer::StateType)
321
+ ENUM_CONVERSION_HANDLER(JsonData::Streamer::StreamelementData::ElementType)
322
+
323
+ }
324
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_SubsystemControl.h ADDED
@@ -0,0 +1,82 @@
1
+ // C++ types for Subsystem Control API.
2
+ // Generated automatically from 'SubsystemControl.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace SubsystemControl {
18
+
19
+ // Common enums
20
+ //
21
+
22
+ // Subsystem to activate
23
+ enum class SubsystemType : uint8_t {
24
+ PLATFORM,
25
+ NETWORK,
26
+ INTERNET,
27
+ TIME,
28
+ SECURITY,
29
+ LOCATION,
30
+ IDENTIFIER,
31
+ PROVISIONING,
32
+ DECRYPTION,
33
+ BLUETOOTH,
34
+ WEBSOURCE,
35
+ GRAPHICS,
36
+ STREAMING,
37
+ CRYPTOGRAPHY,
38
+ INSTALLATION
39
+ };
40
+
41
+ // Method params/result classes
42
+ //
43
+
44
+ class ActivateParamsData : public Core::JSON::Container {
45
+ public:
46
+ ActivateParamsData()
47
+ : Core::JSON::Container()
48
+ {
49
+ Add(_T("system"), &System);
50
+ Add(_T("configuration"), &Configuration);
51
+ }
52
+
53
+ ActivateParamsData(const ActivateParamsData&) = delete;
54
+ ActivateParamsData(ActivateParamsData&&) noexcept = delete;
55
+
56
+ ActivateParamsData& operator=(const ActivateParamsData&) = delete;
57
+ ActivateParamsData& operator=(ActivateParamsData&&) noexcept = delete;
58
+
59
+ ~ActivateParamsData() = default;
60
+
61
+ public:
62
+ bool IsDataValid() const
63
+ {
64
+ return (System.IsSet() == true);
65
+ }
66
+
67
+ public:
68
+ Core::JSON::EnumType<SubsystemType> System; // Subsystem to activate
69
+ Core::JSON::String Configuration; // A JSON string that holds the information applicable to the subsystem to be activated
70
+ }; // class ActivateParamsData
71
+
72
+ } // namespace SubsystemControl
73
+
74
+ POP_WARNING()
75
+
76
+ } // namespace JsonData
77
+
78
+ // Enum conversion handlers
79
+ ENUM_CONVERSION_HANDLER(JsonData::SubsystemControl::SubsystemType)
80
+
81
+ }
82
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_SystemCommands.h ADDED
@@ -0,0 +1,54 @@
1
+ // C++ types for System Commands API.
2
+ // Generated automatically from 'SystemCommands.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+
10
+ namespace WPEFramework {
11
+
12
+ namespace JsonData {
13
+
14
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
15
+
16
+ namespace SystemCommands {
17
+
18
+ // Method params/result classes
19
+ //
20
+
21
+ class UsbresetParamsData : public Core::JSON::Container {
22
+ public:
23
+ UsbresetParamsData()
24
+ : Core::JSON::Container()
25
+ {
26
+ Add(_T("device"), &Device);
27
+ }
28
+
29
+ UsbresetParamsData(const UsbresetParamsData&) = delete;
30
+ UsbresetParamsData(UsbresetParamsData&&) noexcept = delete;
31
+
32
+ UsbresetParamsData& operator=(const UsbresetParamsData&) = delete;
33
+ UsbresetParamsData& operator=(UsbresetParamsData&&) noexcept = delete;
34
+
35
+ ~UsbresetParamsData() = default;
36
+
37
+ public:
38
+ bool IsDataValid() const
39
+ {
40
+ return (Device.IsSet() == true);
41
+ }
42
+
43
+ public:
44
+ Core::JSON::String Device; // USB device to reset
45
+ }; // class UsbresetParamsData
46
+
47
+ } // namespace SystemCommands
48
+
49
+ POP_WARNING()
50
+
51
+ } // namespace JsonData
52
+
53
+ }
54
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_TestController.h ADDED
@@ -0,0 +1,142 @@
1
+ // C++ types for Test Controller API.
2
+ // Generated automatically from 'TestController.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+
10
+ namespace WPEFramework {
11
+
12
+ namespace JsonData {
13
+
14
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
15
+
16
+ namespace TestController {
17
+
18
+ // Method params/result classes
19
+ //
20
+
21
+ class DescriptionData : public Core::JSON::Container {
22
+ public:
23
+ DescriptionData()
24
+ : Core::JSON::Container()
25
+ {
26
+ Add(_T("description"), &Description);
27
+ }
28
+
29
+ DescriptionData(const DescriptionData&) = delete;
30
+ DescriptionData(DescriptionData&&) noexcept = delete;
31
+
32
+ DescriptionData& operator=(const DescriptionData&) = delete;
33
+ DescriptionData& operator=(DescriptionData&&) noexcept = delete;
34
+
35
+ ~DescriptionData() = default;
36
+
37
+ public:
38
+ bool IsDataValid() const
39
+ {
40
+ return (Description.IsSet() == true);
41
+ }
42
+
43
+ public:
44
+ Core::JSON::String Description; // Test description
45
+ }; // class DescriptionData
46
+
47
+ class RunParamsData : public Core::JSON::Container {
48
+ public:
49
+ RunParamsData()
50
+ : Core::JSON::Container()
51
+ {
52
+ Add(_T("category"), &Category);
53
+ Add(_T("test"), &Test);
54
+ Add(_T("args"), &Args);
55
+ }
56
+
57
+ RunParamsData(const RunParamsData&) = delete;
58
+ RunParamsData(RunParamsData&&) noexcept = delete;
59
+
60
+ RunParamsData& operator=(const RunParamsData&) = delete;
61
+ RunParamsData& operator=(RunParamsData&&) noexcept = delete;
62
+
63
+ ~RunParamsData() = default;
64
+
65
+ public:
66
+ bool IsDataValid() const
67
+ {
68
+ return ((Category.IsSet() == true) && (Test.IsSet() == true) && (Args.IsSet() == true));
69
+ }
70
+
71
+ public:
72
+ Core::JSON::String Category; // Test category name, if omitted: all tests are executed
73
+ Core::JSON::String Test; // Test name, if omitted: all tests of category are executed
74
+ Core::JSON::String Args; // The test arguments in JSON format
75
+ }; // class RunParamsData
76
+
77
+ class RunResultDataElem : public Core::JSON::Container {
78
+ public:
79
+ RunResultDataElem()
80
+ : Core::JSON::Container()
81
+ {
82
+ _Init();
83
+ }
84
+
85
+ RunResultDataElem(const RunResultDataElem& _other)
86
+ : Core::JSON::Container()
87
+ , Test(_other.Test)
88
+ , Status(_other.Status)
89
+ {
90
+ _Init();
91
+ }
92
+
93
+ RunResultDataElem(RunResultDataElem&& _other) noexcept
94
+ : Core::JSON::Container()
95
+ , Test(std::move(_other.Test))
96
+ , Status(std::move(_other.Status))
97
+ {
98
+ _Init();
99
+ }
100
+
101
+ RunResultDataElem& operator=(const RunResultDataElem& _rhs)
102
+ {
103
+ Test = _rhs.Test;
104
+ Status = _rhs.Status;
105
+ return (*this);
106
+ }
107
+
108
+ RunResultDataElem& operator=(RunResultDataElem&& _rhs) noexcept
109
+ {
110
+ Test = std::move(_rhs.Test);
111
+ Status = std::move(_rhs.Status);
112
+ return (*this);
113
+ }
114
+
115
+ ~RunResultDataElem() = default;
116
+
117
+ public:
118
+ bool IsDataValid() const
119
+ {
120
+ return ((Test.IsSet() == true) && (Status.IsSet() == true));
121
+ }
122
+
123
+ private:
124
+ void _Init()
125
+ {
126
+ Add(_T("test"), &Test);
127
+ Add(_T("status"), &Status);
128
+ }
129
+
130
+ public:
131
+ Core::JSON::String Test; // Test name
132
+ Core::JSON::String Status; // Test status
133
+ }; // class RunResultDataElem
134
+
135
+ } // namespace TestController
136
+
137
+ POP_WARNING()
138
+
139
+ } // namespace JsonData
140
+
141
+ }
142
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_TestUtility.h ADDED
@@ -0,0 +1,253 @@
1
+ // C++ types for Test Utility API.
2
+ // Generated automatically from 'TestUtility.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace TestUtility {
18
+
19
+ // Common enums
20
+ //
21
+
22
+ // Test command input parameter type
23
+ enum class TypeType : uint8_t {
24
+ NUMBER,
25
+ STRING,
26
+ BOOLEAN,
27
+ OBJECT,
28
+ SYMBOL
29
+ };
30
+
31
+ // Common classes
32
+ //
33
+
34
+ class InputInfo : public Core::JSON::Container {
35
+ public:
36
+ InputInfo()
37
+ : Core::JSON::Container()
38
+ {
39
+ _Init();
40
+ }
41
+
42
+ InputInfo(const InputInfo& _other)
43
+ : Core::JSON::Container()
44
+ , Name(_other.Name)
45
+ , Type(_other.Type)
46
+ , Comment(_other.Comment)
47
+ {
48
+ _Init();
49
+ }
50
+
51
+ InputInfo(InputInfo&& _other) noexcept
52
+ : Core::JSON::Container()
53
+ , Name(std::move(_other.Name))
54
+ , Type(std::move(_other.Type))
55
+ , Comment(std::move(_other.Comment))
56
+ {
57
+ _Init();
58
+ }
59
+
60
+ InputInfo& operator=(const InputInfo& _rhs)
61
+ {
62
+ Name = _rhs.Name;
63
+ Type = _rhs.Type;
64
+ Comment = _rhs.Comment;
65
+ return (*this);
66
+ }
67
+
68
+ InputInfo& operator=(InputInfo&& _rhs) noexcept
69
+ {
70
+ Name = std::move(_rhs.Name);
71
+ Type = std::move(_rhs.Type);
72
+ Comment = std::move(_rhs.Comment);
73
+ return (*this);
74
+ }
75
+
76
+ ~InputInfo() = default;
77
+
78
+ public:
79
+ bool IsDataValid() const
80
+ {
81
+ return ((Name.IsSet() == true) && (Type.IsSet() == true) && (Comment.IsSet() == true));
82
+ }
83
+
84
+ private:
85
+ void _Init()
86
+ {
87
+ Add(_T("name"), &Name);
88
+ Add(_T("type"), &Type);
89
+ Add(_T("comment"), &Comment);
90
+ }
91
+
92
+ public:
93
+ Core::JSON::String Name; // Test command input parameter
94
+ Core::JSON::EnumType<TypeType> Type; // Test command input parameter type
95
+ Core::JSON::String Comment; // Test command input parameter description
96
+ }; // class InputInfo
97
+
98
+ // Method params/result classes
99
+ //
100
+
101
+ class DescriptionData : public Core::JSON::Container {
102
+ public:
103
+ DescriptionData()
104
+ : Core::JSON::Container()
105
+ {
106
+ Add(_T("description"), &Description);
107
+ }
108
+
109
+ DescriptionData(const DescriptionData&) = delete;
110
+ DescriptionData(DescriptionData&&) noexcept = delete;
111
+
112
+ DescriptionData& operator=(const DescriptionData&) = delete;
113
+ DescriptionData& operator=(DescriptionData&&) noexcept = delete;
114
+
115
+ ~DescriptionData() = default;
116
+
117
+ public:
118
+ bool IsDataValid() const
119
+ {
120
+ return (Description.IsSet() == true);
121
+ }
122
+
123
+ public:
124
+ Core::JSON::String Description; // Test command description
125
+ }; // class DescriptionData
126
+
127
+ class ParametersData : public Core::JSON::Container {
128
+ public:
129
+ ParametersData()
130
+ : Core::JSON::Container()
131
+ {
132
+ Add(_T("input"), &Input);
133
+ Add(_T("output"), &Output);
134
+ }
135
+
136
+ ParametersData(const ParametersData&) = delete;
137
+ ParametersData(ParametersData&&) noexcept = delete;
138
+
139
+ ParametersData& operator=(const ParametersData&) = delete;
140
+ ParametersData& operator=(ParametersData&&) noexcept = delete;
141
+
142
+ ~ParametersData() = default;
143
+
144
+ public:
145
+ bool IsDataValid() const
146
+ {
147
+ return ((Output.IsSet() == true) && (Output.IsDataValid() == true));
148
+ }
149
+
150
+ public:
151
+ Core::JSON::ArrayType<InputInfo> Input;
152
+ InputInfo Output;
153
+ }; // class ParametersData
154
+
155
+ class RuncrashParamsData : public Core::JSON::Container {
156
+ public:
157
+ RuncrashParamsData()
158
+ : Core::JSON::Container()
159
+ {
160
+ Add(_T("command"), &Command);
161
+ Add(_T("delay"), &Delay);
162
+ Add(_T("count"), &Count);
163
+ }
164
+
165
+ RuncrashParamsData(const RuncrashParamsData&) = delete;
166
+ RuncrashParamsData(RuncrashParamsData&&) noexcept = delete;
167
+
168
+ RuncrashParamsData& operator=(const RuncrashParamsData&) = delete;
169
+ RuncrashParamsData& operator=(RuncrashParamsData&&) noexcept = delete;
170
+
171
+ ~RuncrashParamsData() = default;
172
+
173
+ public:
174
+ bool IsDataValid() const
175
+ {
176
+ return (Command.IsSet() == true);
177
+ }
178
+
179
+ public:
180
+ Core::JSON::String Command; // Test command name
181
+ Core::JSON::DecUInt8 Delay; // Delay (in seconds) before the crash attempt (applicable for *Crash* command)
182
+ Core::JSON::DecUInt8 Count; // How many times a Crash command will be executed consecutively (applicable for *CrashNTimes* command)
183
+ }; // class RuncrashParamsData
184
+
185
+ class RunmemoryParamsData : public Core::JSON::Container {
186
+ public:
187
+ RunmemoryParamsData()
188
+ : Core::JSON::Container()
189
+ {
190
+ Add(_T("command"), &Command);
191
+ Add(_T("size"), &Size);
192
+ }
193
+
194
+ RunmemoryParamsData(const RunmemoryParamsData&) = delete;
195
+ RunmemoryParamsData(RunmemoryParamsData&&) noexcept = delete;
196
+
197
+ RunmemoryParamsData& operator=(const RunmemoryParamsData&) = delete;
198
+ RunmemoryParamsData& operator=(RunmemoryParamsData&&) noexcept = delete;
199
+
200
+ ~RunmemoryParamsData() = default;
201
+
202
+ public:
203
+ bool IsDataValid() const
204
+ {
205
+ return (Command.IsSet() == true);
206
+ }
207
+
208
+ public:
209
+ Core::JSON::String Command; // Test command name
210
+ Core::JSON::DecUInt32 Size; // The amount of memory in KB for allocation (applicable for *Malloc* commands)
211
+ }; // class RunmemoryParamsData
212
+
213
+ class RunmemoryResultData : public Core::JSON::Container {
214
+ public:
215
+ RunmemoryResultData()
216
+ : Core::JSON::Container()
217
+ {
218
+ Add(_T("allocated"), &Allocated);
219
+ Add(_T("size"), &Size);
220
+ Add(_T("resident"), &Resident);
221
+ }
222
+
223
+ RunmemoryResultData(const RunmemoryResultData&) = delete;
224
+ RunmemoryResultData(RunmemoryResultData&&) noexcept = delete;
225
+
226
+ RunmemoryResultData& operator=(const RunmemoryResultData&) = delete;
227
+ RunmemoryResultData& operator=(RunmemoryResultData&&) noexcept = delete;
228
+
229
+ ~RunmemoryResultData() = default;
230
+
231
+ public:
232
+ bool IsDataValid() const
233
+ {
234
+ return ((Allocated.IsSet() == true) && (Size.IsSet() == true) && (Resident.IsSet() == true));
235
+ }
236
+
237
+ public:
238
+ Core::JSON::DecUInt32 Allocated; // Already allocated memory in KB
239
+ Core::JSON::DecUInt32 Size; // Current allocation in KB
240
+ Core::JSON::DecUInt32 Resident; // Resident memory in KB
241
+ }; // class RunmemoryResultData
242
+
243
+ } // namespace TestUtility
244
+
245
+ POP_WARNING()
246
+
247
+ } // namespace JsonData
248
+
249
+ // Enum conversion handlers
250
+ ENUM_CONVERSION_HANDLER(JsonData::TestUtility::TypeType)
251
+
252
+ }
253
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_TimeSync.h ADDED
@@ -0,0 +1,56 @@
1
+ // C++ types for Time Sync API.
2
+ // Generated automatically from 'TimeSync.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+
10
+ namespace WPEFramework {
11
+
12
+ namespace JsonData {
13
+
14
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
15
+
16
+ namespace TimeSync {
17
+
18
+ // Method params/result classes
19
+ //
20
+
21
+ class SynctimeData : public Core::JSON::Container {
22
+ public:
23
+ SynctimeData()
24
+ : Core::JSON::Container()
25
+ {
26
+ Add(_T("time"), &Time);
27
+ Add(_T("source"), &Source);
28
+ }
29
+
30
+ SynctimeData(const SynctimeData&) = delete;
31
+ SynctimeData(SynctimeData&&) noexcept = delete;
32
+
33
+ SynctimeData& operator=(const SynctimeData&) = delete;
34
+ SynctimeData& operator=(SynctimeData&&) noexcept = delete;
35
+
36
+ ~SynctimeData() = default;
37
+
38
+ public:
39
+ bool IsDataValid() const
40
+ {
41
+ return (Time.IsSet() == true);
42
+ }
43
+
44
+ public:
45
+ Core::JSON::String Time; // Synchronized time (in ISO8601 format); empty string if the time has never been synchronized
46
+ Core::JSON::String Source; // The synchronization source e.g. an NTP server
47
+ }; // class SynctimeData
48
+
49
+ } // namespace TimeSync
50
+
51
+ POP_WARNING()
52
+
53
+ } // namespace JsonData
54
+
55
+ }
56
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_TraceControl.h ADDED
@@ -0,0 +1,195 @@
1
+ // C++ types for Trace Control API.
2
+ // Generated automatically from 'TraceControl.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <core/Enumerate.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace TraceControl {
18
+
19
+ // Common enums
20
+ //
21
+
22
+ // State value
23
+ enum class StateType : uint8_t {
24
+ ENABLED,
25
+ DISABLED,
26
+ TRISTATED
27
+ };
28
+
29
+ // Common classes
30
+ //
31
+
32
+ class TraceInfo : public Core::JSON::Container {
33
+ public:
34
+ TraceInfo()
35
+ : Core::JSON::Container()
36
+ {
37
+ _Init();
38
+ }
39
+
40
+ TraceInfo(const TraceInfo& _other)
41
+ : Core::JSON::Container()
42
+ , Module(_other.Module)
43
+ , Category(_other.Category)
44
+ , State(_other.State)
45
+ {
46
+ _Init();
47
+ }
48
+
49
+ TraceInfo(TraceInfo&& _other) noexcept
50
+ : Core::JSON::Container()
51
+ , Module(std::move(_other.Module))
52
+ , Category(std::move(_other.Category))
53
+ , State(std::move(_other.State))
54
+ {
55
+ _Init();
56
+ }
57
+
58
+ TraceInfo& operator=(const TraceInfo& _rhs)
59
+ {
60
+ Module = _rhs.Module;
61
+ Category = _rhs.Category;
62
+ State = _rhs.State;
63
+ return (*this);
64
+ }
65
+
66
+ TraceInfo& operator=(TraceInfo&& _rhs) noexcept
67
+ {
68
+ Module = std::move(_rhs.Module);
69
+ Category = std::move(_rhs.Category);
70
+ State = std::move(_rhs.State);
71
+ return (*this);
72
+ }
73
+
74
+ ~TraceInfo() = default;
75
+
76
+ public:
77
+ bool IsDataValid() const
78
+ {
79
+ return ((Module.IsSet() == true) && (Category.IsSet() == true) && (State.IsSet() == true));
80
+ }
81
+
82
+ private:
83
+ void _Init()
84
+ {
85
+ Add(_T("module"), &Module);
86
+ Add(_T("category"), &Category);
87
+ Add(_T("state"), &State);
88
+ }
89
+
90
+ public:
91
+ Core::JSON::String Module; // Module name
92
+ Core::JSON::String Category; // Category name
93
+ Core::JSON::EnumType<StateType> State; // State value
94
+ }; // class TraceInfo
95
+
96
+ // Method params/result classes
97
+ //
98
+
99
+ class StatusParamsData : public Core::JSON::Container {
100
+ public:
101
+ StatusParamsData()
102
+ : Core::JSON::Container()
103
+ {
104
+ Add(_T("module"), &Module);
105
+ Add(_T("category"), &Category);
106
+ }
107
+
108
+ StatusParamsData(const StatusParamsData&) = delete;
109
+ StatusParamsData(StatusParamsData&&) noexcept = delete;
110
+
111
+ StatusParamsData& operator=(const StatusParamsData&) = delete;
112
+ StatusParamsData& operator=(StatusParamsData&&) noexcept = delete;
113
+
114
+ ~StatusParamsData() = default;
115
+
116
+ public:
117
+ bool IsDataValid() const
118
+ {
119
+ return ((Module.IsSet() == true) && (Category.IsSet() == true));
120
+ }
121
+
122
+ public:
123
+ Core::JSON::String Module; // Module name
124
+ Core::JSON::String Category; // Category name
125
+ }; // class StatusParamsData
126
+
127
+ class StatusResultData : public Core::JSON::Container {
128
+ public:
129
+ class RemoteData : public Core::JSON::Container {
130
+ public:
131
+ RemoteData()
132
+ : Core::JSON::Container()
133
+ {
134
+ Add(_T("port"), &Port);
135
+ Add(_T("binding"), &Binding);
136
+ }
137
+
138
+ RemoteData(const RemoteData&) = delete;
139
+ RemoteData(RemoteData&&) noexcept = delete;
140
+
141
+ RemoteData& operator=(const RemoteData&) = delete;
142
+ RemoteData& operator=(RemoteData&&) noexcept = delete;
143
+
144
+ ~RemoteData() = default;
145
+
146
+ public:
147
+ bool IsDataValid() const
148
+ {
149
+ return ((Port.IsSet() == true) && (Binding.IsSet() == true));
150
+ }
151
+
152
+ public:
153
+ Core::JSON::DecUInt16 Port; // Config attribute (port)
154
+ Core::JSON::String Binding; // Config attribute (binding)
155
+ }; // class RemoteData
156
+
157
+ StatusResultData()
158
+ : Core::JSON::Container()
159
+ {
160
+ Add(_T("console"), &Console);
161
+ Add(_T("remote"), &Remote);
162
+ Add(_T("settings"), &Settings);
163
+ }
164
+
165
+ StatusResultData(const StatusResultData&) = delete;
166
+ StatusResultData(StatusResultData&&) noexcept = delete;
167
+
168
+ StatusResultData& operator=(const StatusResultData&) = delete;
169
+ StatusResultData& operator=(StatusResultData&&) noexcept = delete;
170
+
171
+ ~StatusResultData() = default;
172
+
173
+ public:
174
+ bool IsDataValid() const
175
+ {
176
+ return ((Console.IsSet() == true) && ((Remote.IsSet() == true) && (Remote.IsDataValid() == true)) && (Settings.IsSet() == true));
177
+ }
178
+
179
+ public:
180
+ Core::JSON::Boolean Console; // Config attribute (Console)
181
+ StatusResultData::RemoteData Remote; // Retrieves general information
182
+ Core::JSON::ArrayType<TraceInfo> Settings; // Retrieves general information
183
+ }; // class StatusResultData
184
+
185
+ } // namespace TraceControl
186
+
187
+ POP_WARNING()
188
+
189
+ } // namespace JsonData
190
+
191
+ // Enum conversion handlers
192
+ ENUM_CONVERSION_HANDLER(JsonData::TraceControl::StateType)
193
+
194
+ }
195
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_UserSettings.h ADDED
@@ -0,0 +1,214 @@
1
+ // C++ types for UserSettings API.
2
+ // Generated automatically from 'IUserSettings.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IUserSettings.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace UserSettings {
18
+
19
+ // Common classes
20
+ //
21
+
22
+ class OnAudioDescriptionChangedParamsInfo : public Core::JSON::Container {
23
+ public:
24
+ OnAudioDescriptionChangedParamsInfo()
25
+ : Core::JSON::Container()
26
+ {
27
+ Add(_T("enabled"), &Enabled);
28
+ }
29
+
30
+ OnAudioDescriptionChangedParamsInfo(const OnAudioDescriptionChangedParamsInfo&) = delete;
31
+ OnAudioDescriptionChangedParamsInfo(OnAudioDescriptionChangedParamsInfo&&) noexcept = delete;
32
+
33
+ OnAudioDescriptionChangedParamsInfo& operator=(const OnAudioDescriptionChangedParamsInfo&) = delete;
34
+ OnAudioDescriptionChangedParamsInfo& operator=(OnAudioDescriptionChangedParamsInfo&&) noexcept = delete;
35
+
36
+ ~OnAudioDescriptionChangedParamsInfo() = default;
37
+
38
+ public:
39
+ bool IsDataValid() const
40
+ {
41
+ return (Enabled.IsSet() == true);
42
+ }
43
+
44
+ public:
45
+ Core::JSON::Boolean Enabled; // Enabled/Disabled.
46
+ }; // class OnAudioDescriptionChangedParamsInfo
47
+
48
+ class OnPreferredAudioLanguagesChangedParamsInfo : public Core::JSON::Container {
49
+ public:
50
+ OnPreferredAudioLanguagesChangedParamsInfo()
51
+ : Core::JSON::Container()
52
+ {
53
+ Add(_T("preferredlanguages"), &PreferredLanguages);
54
+ }
55
+
56
+ OnPreferredAudioLanguagesChangedParamsInfo(const OnPreferredAudioLanguagesChangedParamsInfo&) = delete;
57
+ OnPreferredAudioLanguagesChangedParamsInfo(OnPreferredAudioLanguagesChangedParamsInfo&&) noexcept = delete;
58
+
59
+ OnPreferredAudioLanguagesChangedParamsInfo& operator=(const OnPreferredAudioLanguagesChangedParamsInfo&) = delete;
60
+ OnPreferredAudioLanguagesChangedParamsInfo& operator=(OnPreferredAudioLanguagesChangedParamsInfo&&) noexcept = delete;
61
+
62
+ ~OnPreferredAudioLanguagesChangedParamsInfo() = default;
63
+
64
+ public:
65
+ bool IsDataValid() const
66
+ {
67
+ return (PreferredLanguages.IsSet() == true);
68
+ }
69
+
70
+ public:
71
+ Core::JSON::String PreferredLanguages; // PreferredLanguages.
72
+ }; // class OnPreferredAudioLanguagesChangedParamsInfo
73
+
74
+ class SetAudioDescriptionInfo : public Core::JSON::Container {
75
+ public:
76
+ SetAudioDescriptionInfo()
77
+ : Core::JSON::Container()
78
+ {
79
+ Add(_T("value"), &Value);
80
+ }
81
+
82
+ SetAudioDescriptionInfo(const SetAudioDescriptionInfo&) = delete;
83
+ SetAudioDescriptionInfo(SetAudioDescriptionInfo&&) noexcept = delete;
84
+
85
+ SetAudioDescriptionInfo& operator=(const SetAudioDescriptionInfo&) = delete;
86
+ SetAudioDescriptionInfo& operator=(SetAudioDescriptionInfo&&) noexcept = delete;
87
+
88
+ ~SetAudioDescriptionInfo() = default;
89
+
90
+ public:
91
+ bool IsDataValid() const
92
+ {
93
+ return (Value.IsSet() == true);
94
+ }
95
+
96
+ public:
97
+ Core::JSON::Boolean Value; // Enabled/Disabled
98
+ }; // class SetAudioDescriptionInfo
99
+
100
+ class SetPreferredAudioLanguagesInfo : public Core::JSON::Container {
101
+ public:
102
+ SetPreferredAudioLanguagesInfo()
103
+ : Core::JSON::Container()
104
+ {
105
+ Add(_T("value"), &Value);
106
+ }
107
+
108
+ SetPreferredAudioLanguagesInfo(const SetPreferredAudioLanguagesInfo&) = delete;
109
+ SetPreferredAudioLanguagesInfo(SetPreferredAudioLanguagesInfo&&) noexcept = delete;
110
+
111
+ SetPreferredAudioLanguagesInfo& operator=(const SetPreferredAudioLanguagesInfo&) = delete;
112
+ SetPreferredAudioLanguagesInfo& operator=(SetPreferredAudioLanguagesInfo&&) noexcept = delete;
113
+
114
+ ~SetPreferredAudioLanguagesInfo() = default;
115
+
116
+ public:
117
+ bool IsDataValid() const
118
+ {
119
+ return (Value.IsSet() == true);
120
+ }
121
+
122
+ public:
123
+ Core::JSON::String Value; // PreferredLanguages
124
+ }; // class SetPreferredAudioLanguagesInfo
125
+
126
+ // Method params/result classes
127
+ //
128
+
129
+ class OnPreferredClosedCaptionServiceChangedParamsData : public Core::JSON::Container {
130
+ public:
131
+ OnPreferredClosedCaptionServiceChangedParamsData()
132
+ : Core::JSON::Container()
133
+ {
134
+ Add(_T("service"), &Service);
135
+ }
136
+
137
+ OnPreferredClosedCaptionServiceChangedParamsData(const OnPreferredClosedCaptionServiceChangedParamsData&) = delete;
138
+ OnPreferredClosedCaptionServiceChangedParamsData(OnPreferredClosedCaptionServiceChangedParamsData&&) noexcept = delete;
139
+
140
+ OnPreferredClosedCaptionServiceChangedParamsData& operator=(const OnPreferredClosedCaptionServiceChangedParamsData&) = delete;
141
+ OnPreferredClosedCaptionServiceChangedParamsData& operator=(OnPreferredClosedCaptionServiceChangedParamsData&&) noexcept = delete;
142
+
143
+ ~OnPreferredClosedCaptionServiceChangedParamsData() = default;
144
+
145
+ public:
146
+ bool IsDataValid() const
147
+ {
148
+ return (Service.IsSet() == true);
149
+ }
150
+
151
+ public:
152
+ Core::JSON::String Service; // "CC[1-4]", "TEXT[1-4]", "SERVICE[1-64]".
153
+ }; // class OnPreferredClosedCaptionServiceChangedParamsData
154
+
155
+ class OnPresentationLanguageChangedParamsData : public Core::JSON::Container {
156
+ public:
157
+ OnPresentationLanguageChangedParamsData()
158
+ : Core::JSON::Container()
159
+ {
160
+ Add(_T("presentationlanguages"), &PresentationLanguages);
161
+ }
162
+
163
+ OnPresentationLanguageChangedParamsData(const OnPresentationLanguageChangedParamsData&) = delete;
164
+ OnPresentationLanguageChangedParamsData(OnPresentationLanguageChangedParamsData&&) noexcept = delete;
165
+
166
+ OnPresentationLanguageChangedParamsData& operator=(const OnPresentationLanguageChangedParamsData&) = delete;
167
+ OnPresentationLanguageChangedParamsData& operator=(OnPresentationLanguageChangedParamsData&&) noexcept = delete;
168
+
169
+ ~OnPresentationLanguageChangedParamsData() = default;
170
+
171
+ public:
172
+ bool IsDataValid() const
173
+ {
174
+ return (PresentationLanguages.IsSet() == true);
175
+ }
176
+
177
+ public:
178
+ Core::JSON::String PresentationLanguages; // PresentationLanguages.
179
+ }; // class OnPresentationLanguageChangedParamsData
180
+
181
+ class OnPrivacyModeChangedParamsData : public Core::JSON::Container {
182
+ public:
183
+ OnPrivacyModeChangedParamsData()
184
+ : Core::JSON::Container()
185
+ {
186
+ Add(_T("privacymode"), &PrivacyMode);
187
+ }
188
+
189
+ OnPrivacyModeChangedParamsData(const OnPrivacyModeChangedParamsData&) = delete;
190
+ OnPrivacyModeChangedParamsData(OnPrivacyModeChangedParamsData&&) noexcept = delete;
191
+
192
+ OnPrivacyModeChangedParamsData& operator=(const OnPrivacyModeChangedParamsData&) = delete;
193
+ OnPrivacyModeChangedParamsData& operator=(OnPrivacyModeChangedParamsData&&) noexcept = delete;
194
+
195
+ ~OnPrivacyModeChangedParamsData() = default;
196
+
197
+ public:
198
+ bool IsDataValid() const
199
+ {
200
+ return (PrivacyMode.IsSet() == true);
201
+ }
202
+
203
+ public:
204
+ Core::JSON::String PrivacyMode; // "SHARE", "DO_NOT_SHARE".
205
+ }; // class OnPrivacyModeChangedParamsData
206
+
207
+ } // namespace UserSettings
208
+
209
+ POP_WARNING()
210
+
211
+ } // namespace JsonData
212
+
213
+ }
214
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_VolumeControl.h ADDED
@@ -0,0 +1,81 @@
1
+ // C++ types for VolumeControl API.
2
+ // Generated automatically from 'IVolumeControl.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IVolumeControl.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace VolumeControl {
18
+
19
+ // Method params/result classes
20
+ //
21
+
22
+ class MutedParamsData : public Core::JSON::Container {
23
+ public:
24
+ MutedParamsData()
25
+ : Core::JSON::Container()
26
+ {
27
+ Add(_T("muted"), &Muted);
28
+ }
29
+
30
+ MutedParamsData(const MutedParamsData&) = delete;
31
+ MutedParamsData(MutedParamsData&&) noexcept = delete;
32
+
33
+ MutedParamsData& operator=(const MutedParamsData&) = delete;
34
+ MutedParamsData& operator=(MutedParamsData&&) noexcept = delete;
35
+
36
+ ~MutedParamsData() = default;
37
+
38
+ public:
39
+ bool IsDataValid() const
40
+ {
41
+ return (Muted.IsSet() == true);
42
+ }
43
+
44
+ public:
45
+ Core::JSON::Boolean Muted; // New mute state (true: muted, false: un-muted)
46
+ }; // class MutedParamsData
47
+
48
+ class VolumeParamsData : public Core::JSON::Container {
49
+ public:
50
+ VolumeParamsData()
51
+ : Core::JSON::Container()
52
+ {
53
+ Add(_T("volume"), &Volume);
54
+ }
55
+
56
+ VolumeParamsData(const VolumeParamsData&) = delete;
57
+ VolumeParamsData(VolumeParamsData&&) noexcept = delete;
58
+
59
+ VolumeParamsData& operator=(const VolumeParamsData&) = delete;
60
+ VolumeParamsData& operator=(VolumeParamsData&&) noexcept = delete;
61
+
62
+ ~VolumeParamsData() = default;
63
+
64
+ public:
65
+ bool IsDataValid() const
66
+ {
67
+ return (Volume.IsSet() == true);
68
+ }
69
+
70
+ public:
71
+ Core::JSON::DecUInt8 Volume; // New bolume level in percent
72
+ }; // class VolumeParamsData
73
+
74
+ } // namespace VolumeControl
75
+
76
+ POP_WARNING()
77
+
78
+ } // namespace JsonData
79
+
80
+ }
81
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_WatchDog.h ADDED
@@ -0,0 +1,55 @@
1
+ // C++ types for WatchDog API.
2
+ // Generated automatically from 'IWatchDog.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IWatchDog.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace WatchDog {
18
+
19
+ // Method params/result classes
20
+ //
21
+
22
+ class TouchParamsData : public Core::JSON::Container {
23
+ public:
24
+ TouchParamsData()
25
+ : Core::JSON::Container()
26
+ {
27
+ Add(_T("callsign"), &Callsign);
28
+ }
29
+
30
+ TouchParamsData(const TouchParamsData&) = delete;
31
+ TouchParamsData(TouchParamsData&&) noexcept = delete;
32
+
33
+ TouchParamsData& operator=(const TouchParamsData&) = delete;
34
+ TouchParamsData& operator=(TouchParamsData&&) noexcept = delete;
35
+
36
+ ~TouchParamsData() = default;
37
+
38
+ public:
39
+ bool IsDataValid() const
40
+ {
41
+ return (Callsign.IsSet() == true);
42
+ }
43
+
44
+ public:
45
+ Core::JSON::String Callsign; // In case a specific watchdog needs to be padded pass the name of the callsign for which we want to touch.
46
+ }; // class TouchParamsData
47
+
48
+ } // namespace WatchDog
49
+
50
+ POP_WARNING()
51
+
52
+ } // namespace JsonData
53
+
54
+ }
55
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_WebBrowser.h ADDED
@@ -0,0 +1,141 @@
1
+ // C++ types for WebBrowser API.
2
+ // Generated automatically from 'IBrowser.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IBrowser.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace WebBrowser {
18
+
19
+ // Method params/result classes
20
+ //
21
+
22
+ class LoadFailedParamsData : public Core::JSON::Container {
23
+ public:
24
+ LoadFailedParamsData()
25
+ : Core::JSON::Container()
26
+ {
27
+ Add(_T("url"), &URL);
28
+ }
29
+
30
+ LoadFailedParamsData(const LoadFailedParamsData&) = delete;
31
+ LoadFailedParamsData(LoadFailedParamsData&&) noexcept = delete;
32
+
33
+ LoadFailedParamsData& operator=(const LoadFailedParamsData&) = delete;
34
+ LoadFailedParamsData& operator=(LoadFailedParamsData&&) noexcept = delete;
35
+
36
+ ~LoadFailedParamsData() = default;
37
+
38
+ public:
39
+ bool IsDataValid() const
40
+ {
41
+ return (URL.IsSet() == true);
42
+ }
43
+
44
+ public:
45
+ Core::JSON::String URL; // The URL that has been failed to load
46
+ }; // class LoadFailedParamsData
47
+
48
+ class LoadFinishedParamsData : public Core::JSON::Container {
49
+ public:
50
+ LoadFinishedParamsData()
51
+ : Core::JSON::Container()
52
+ {
53
+ Add(_T("url"), &URL);
54
+ Add(_T("httpstatus"), &Httpstatus);
55
+ }
56
+
57
+ LoadFinishedParamsData(const LoadFinishedParamsData&) = delete;
58
+ LoadFinishedParamsData(LoadFinishedParamsData&&) noexcept = delete;
59
+
60
+ LoadFinishedParamsData& operator=(const LoadFinishedParamsData&) = delete;
61
+ LoadFinishedParamsData& operator=(LoadFinishedParamsData&&) noexcept = delete;
62
+
63
+ ~LoadFinishedParamsData() = default;
64
+
65
+ public:
66
+ bool IsDataValid() const
67
+ {
68
+ return ((URL.IsSet() == true) && (Httpstatus.IsSet() == true));
69
+ }
70
+
71
+ public:
72
+ Core::JSON::String URL; // The URL that has been loaded
73
+ Core::JSON::DecSInt32 Httpstatus; // The response code of main resource request
74
+ }; // class LoadFinishedParamsData
75
+
76
+ class URLChangeParamsData : public Core::JSON::Container {
77
+ public:
78
+ URLChangeParamsData()
79
+ : Core::JSON::Container()
80
+ {
81
+ Add(_T("url"), &URL);
82
+ Add(_T("loaded"), &Loaded);
83
+ }
84
+
85
+ URLChangeParamsData(const URLChangeParamsData&) = delete;
86
+ URLChangeParamsData(URLChangeParamsData&&) noexcept = delete;
87
+
88
+ URLChangeParamsData& operator=(const URLChangeParamsData&) = delete;
89
+ URLChangeParamsData& operator=(URLChangeParamsData&&) noexcept = delete;
90
+
91
+ ~URLChangeParamsData() = default;
92
+
93
+ public:
94
+ bool IsDataValid() const
95
+ {
96
+ return ((URL.IsSet() == true) && (Loaded.IsSet() == true));
97
+ }
98
+
99
+ public:
100
+ Core::JSON::String URL; // The URL that has been loaded or requested
101
+ Core::JSON::Boolean Loaded; // loaded (true) or not (false)
102
+ }; // class URLChangeParamsData
103
+
104
+ class VisibilityChangeParamsData : public Core::JSON::Container {
105
+ public:
106
+ VisibilityChangeParamsData()
107
+ : Core::JSON::Container()
108
+ {
109
+ Add(_T("hidden"), &Hidden);
110
+ }
111
+
112
+ VisibilityChangeParamsData(const VisibilityChangeParamsData&) = delete;
113
+ VisibilityChangeParamsData(VisibilityChangeParamsData&&) noexcept = delete;
114
+
115
+ VisibilityChangeParamsData& operator=(const VisibilityChangeParamsData&) = delete;
116
+ VisibilityChangeParamsData& operator=(VisibilityChangeParamsData&&) noexcept = delete;
117
+
118
+ ~VisibilityChangeParamsData() = default;
119
+
120
+ public:
121
+ bool IsDataValid() const
122
+ {
123
+ return (Hidden.IsSet() == true);
124
+ }
125
+
126
+ public:
127
+ Core::JSON::Boolean Hidden; // hidden (true) or visible (false)
128
+ }; // class VisibilityChangeParamsData
129
+
130
+ } // namespace WebBrowser
131
+
132
+ POP_WARNING()
133
+
134
+ } // namespace JsonData
135
+
136
+ // Enum conversion handlers
137
+ ENUM_CONVERSION_HANDLER(Exchange::IWebBrowser::VisibilityType)
138
+ ENUM_CONVERSION_HANDLER(Exchange::IWebBrowser::HTTPCookieAcceptPolicyType)
139
+
140
+ }
141
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_WebKitBrowser.h ADDED
@@ -0,0 +1,112 @@
1
+ // C++ types for WebKit Browser API.
2
+ // Generated automatically from 'WebKitBrowser.json'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+
10
+ namespace WPEFramework {
11
+
12
+ namespace JsonData {
13
+
14
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
15
+
16
+ namespace WebKitBrowser {
17
+
18
+ // Method params/result classes
19
+ //
20
+
21
+ class DeleteParamsData : public Core::JSON::Container {
22
+ public:
23
+ DeleteParamsData()
24
+ : Core::JSON::Container()
25
+ {
26
+ Add(_T("path"), &Path);
27
+ }
28
+
29
+ DeleteParamsData(const DeleteParamsData&) = delete;
30
+ DeleteParamsData(DeleteParamsData&&) noexcept = delete;
31
+
32
+ DeleteParamsData& operator=(const DeleteParamsData&) = delete;
33
+ DeleteParamsData& operator=(DeleteParamsData&&) noexcept = delete;
34
+
35
+ ~DeleteParamsData() = default;
36
+
37
+ public:
38
+ bool IsDataValid() const
39
+ {
40
+ return (Path.IsSet() == true);
41
+ }
42
+
43
+ public:
44
+ Core::JSON::String Path; // Path to directory (within the persistent storage) to delete contents of
45
+ }; // class DeleteParamsData
46
+
47
+ class HeadersData : public Core::JSON::Container {
48
+ public:
49
+ HeadersData()
50
+ : Core::JSON::Container()
51
+ {
52
+ _Init();
53
+ }
54
+
55
+ HeadersData(const HeadersData& _other)
56
+ : Core::JSON::Container()
57
+ , Name(_other.Name)
58
+ , Value(_other.Value)
59
+ {
60
+ _Init();
61
+ }
62
+
63
+ HeadersData(HeadersData&& _other) noexcept
64
+ : Core::JSON::Container()
65
+ , Name(std::move(_other.Name))
66
+ , Value(std::move(_other.Value))
67
+ {
68
+ _Init();
69
+ }
70
+
71
+ HeadersData& operator=(const HeadersData& _rhs)
72
+ {
73
+ Name = _rhs.Name;
74
+ Value = _rhs.Value;
75
+ return (*this);
76
+ }
77
+
78
+ HeadersData& operator=(HeadersData&& _rhs) noexcept
79
+ {
80
+ Name = std::move(_rhs.Name);
81
+ Value = std::move(_rhs.Value);
82
+ return (*this);
83
+ }
84
+
85
+ ~HeadersData() = default;
86
+
87
+ public:
88
+ bool IsDataValid() const
89
+ {
90
+ return ((Name.IsSet() == true) && (Value.IsSet() == true));
91
+ }
92
+
93
+ private:
94
+ void _Init()
95
+ {
96
+ Add(_T("name"), &Name);
97
+ Add(_T("value"), &Value);
98
+ }
99
+
100
+ public:
101
+ Core::JSON::String Name; // Header name
102
+ Core::JSON::String Value; // Header value
103
+ }; // class HeadersData
104
+
105
+ } // namespace WebKitBrowser
106
+
107
+ POP_WARNING()
108
+
109
+ } // namespace JsonData
110
+
111
+ }
112
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_WifiControl.h ADDED
@@ -0,0 +1,461 @@
1
+ // C++ types for WifiControl API.
2
+ // Generated automatically from 'IWifiControl.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IWifiControl.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace WifiControl {
18
+
19
+ // Common classes
20
+ //
21
+
22
+ class ConfigInfoInfo : public Core::JSON::Container {
23
+ public:
24
+ ConfigInfoInfo()
25
+ : Core::JSON::Container()
26
+ {
27
+ _Init();
28
+ }
29
+
30
+ ConfigInfoInfo(const ConfigInfoInfo& _other)
31
+ : Core::JSON::Container()
32
+ , Hidden(_other.Hidden)
33
+ , Accesspoint(_other.Accesspoint)
34
+ , Ssid(_other.Ssid)
35
+ , Secret(_other.Secret)
36
+ , Identity(_other.Identity)
37
+ , Method(_other.Method)
38
+ , Key(_other.Key)
39
+ {
40
+ _Init();
41
+ }
42
+
43
+ ConfigInfoInfo(ConfigInfoInfo&& _other) noexcept
44
+ : Core::JSON::Container()
45
+ , Hidden(std::move(_other.Hidden))
46
+ , Accesspoint(std::move(_other.Accesspoint))
47
+ , Ssid(std::move(_other.Ssid))
48
+ , Secret(std::move(_other.Secret))
49
+ , Identity(std::move(_other.Identity))
50
+ , Method(std::move(_other.Method))
51
+ , Key(std::move(_other.Key))
52
+ {
53
+ _Init();
54
+ }
55
+
56
+ ConfigInfoInfo(const Exchange::IWifiControl::ConfigInfo& _other)
57
+ : Core::JSON::Container()
58
+ {
59
+ Hidden = _other.hidden;
60
+ Accesspoint = _other.accesspoint;
61
+ Ssid = _other.ssid;
62
+ Secret = _other.secret;
63
+ Identity = _other.identity;
64
+ Method = _other.method;
65
+ Key = _other.key;
66
+ _Init();
67
+ }
68
+
69
+ ConfigInfoInfo& operator=(const ConfigInfoInfo& _rhs)
70
+ {
71
+ Hidden = _rhs.Hidden;
72
+ Accesspoint = _rhs.Accesspoint;
73
+ Ssid = _rhs.Ssid;
74
+ Secret = _rhs.Secret;
75
+ Identity = _rhs.Identity;
76
+ Method = _rhs.Method;
77
+ Key = _rhs.Key;
78
+ return (*this);
79
+ }
80
+
81
+ ConfigInfoInfo& operator=(ConfigInfoInfo&& _rhs) noexcept
82
+ {
83
+ Hidden = std::move(_rhs.Hidden);
84
+ Accesspoint = std::move(_rhs.Accesspoint);
85
+ Ssid = std::move(_rhs.Ssid);
86
+ Secret = std::move(_rhs.Secret);
87
+ Identity = std::move(_rhs.Identity);
88
+ Method = std::move(_rhs.Method);
89
+ Key = std::move(_rhs.Key);
90
+ return (*this);
91
+ }
92
+
93
+ ConfigInfoInfo& operator=(const Exchange::IWifiControl::ConfigInfo& _rhs)
94
+ {
95
+ Hidden = _rhs.hidden;
96
+ Accesspoint = _rhs.accesspoint;
97
+ Ssid = _rhs.ssid;
98
+ Secret = _rhs.secret;
99
+ Identity = _rhs.identity;
100
+ Method = _rhs.method;
101
+ Key = _rhs.key;
102
+ return (*this);
103
+ }
104
+
105
+ operator Exchange::IWifiControl::ConfigInfo() const
106
+ {
107
+ Exchange::IWifiControl::ConfigInfo _value{};
108
+ _value.hidden = Hidden;
109
+ _value.accesspoint = Accesspoint;
110
+ _value.ssid = Ssid;
111
+ _value.secret = Secret;
112
+ _value.identity = Identity;
113
+ _value.method = Method;
114
+ _value.key = Key;
115
+ return (_value);
116
+ }
117
+
118
+ ~ConfigInfoInfo() = default;
119
+
120
+ public:
121
+ bool IsDataValid() const
122
+ {
123
+ return ((Hidden.IsSet() == true) && (Accesspoint.IsSet() == true) && (Ssid.IsSet() == true) && (Secret.IsSet() == true) && (Identity.IsSet() == true) && (Method.IsSet() == true) && (Key.IsSet() == true));
124
+ }
125
+
126
+ private:
127
+ void _Init()
128
+ {
129
+ Add(_T("hidden"), &Hidden);
130
+ Add(_T("accesspoint"), &Accesspoint);
131
+ Add(_T("ssid"), &Ssid);
132
+ Add(_T("secret"), &Secret);
133
+ Add(_T("identity"), &Identity);
134
+ Add(_T("method"), &Method);
135
+ Add(_T("key"), &Key);
136
+ }
137
+
138
+ public:
139
+ Core::JSON::Boolean Hidden;
140
+ Core::JSON::Boolean Accesspoint;
141
+ Core::JSON::String Ssid;
142
+ Core::JSON::String Secret;
143
+ Core::JSON::String Identity;
144
+ Core::JSON::EnumType<Exchange::IWifiControl::Security> Method;
145
+ Core::JSON::EnumType<Exchange::IWifiControl::SecurityInfo::Key> Key;
146
+ }; // class ConfigInfoInfo
147
+
148
+ class ConnectParamsInfo : public Core::JSON::Container {
149
+ public:
150
+ ConnectParamsInfo()
151
+ : Core::JSON::Container()
152
+ {
153
+ Add(_T("configssid"), &ConfigSSID);
154
+ }
155
+
156
+ ConnectParamsInfo(const ConnectParamsInfo&) = delete;
157
+ ConnectParamsInfo(ConnectParamsInfo&&) noexcept = delete;
158
+
159
+ ConnectParamsInfo& operator=(const ConnectParamsInfo&) = delete;
160
+ ConnectParamsInfo& operator=(ConnectParamsInfo&&) noexcept = delete;
161
+
162
+ ~ConnectParamsInfo() = default;
163
+
164
+ public:
165
+ bool IsDataValid() const
166
+ {
167
+ return (ConfigSSID.IsSet() == true);
168
+ }
169
+
170
+ public:
171
+ Core::JSON::String ConfigSSID; // Connect device to requested SSID
172
+ }; // class ConnectParamsInfo
173
+
174
+ // Method params/result classes
175
+ //
176
+
177
+ class ConfigData : public Core::JSON::Container {
178
+ public:
179
+ ConfigData()
180
+ : Core::JSON::Container()
181
+ {
182
+ Add(_T("value"), &Value);
183
+ }
184
+
185
+ ConfigData(const ConfigData&) = delete;
186
+ ConfigData(ConfigData&&) noexcept = delete;
187
+
188
+ ConfigData& operator=(const ConfigData&) = delete;
189
+ ConfigData& operator=(ConfigData&&) noexcept = delete;
190
+
191
+ ~ConfigData() = default;
192
+
193
+ public:
194
+ bool IsDataValid() const
195
+ {
196
+ return ((Value.IsSet() == true) && (Value.IsDataValid() == true));
197
+ }
198
+
199
+ public:
200
+ ConfigInfoInfo Value; // Provide config details for requested SSID
201
+ }; // class ConfigData
202
+
203
+ class ConnectionChangeParamsData : public Core::JSON::Container {
204
+ public:
205
+ ConnectionChangeParamsData()
206
+ : Core::JSON::Container()
207
+ {
208
+ Add(_T("ssid"), &Ssid);
209
+ }
210
+
211
+ ConnectionChangeParamsData(const ConnectionChangeParamsData&) = delete;
212
+ ConnectionChangeParamsData(ConnectionChangeParamsData&&) noexcept = delete;
213
+
214
+ ConnectionChangeParamsData& operator=(const ConnectionChangeParamsData&) = delete;
215
+ ConnectionChangeParamsData& operator=(ConnectionChangeParamsData&&) noexcept = delete;
216
+
217
+ ~ConnectionChangeParamsData() = default;
218
+
219
+ public:
220
+ bool IsDataValid() const
221
+ {
222
+ return (Ssid.IsSet() == true);
223
+ }
224
+
225
+ public:
226
+ Core::JSON::String Ssid; // Notifies that wifi connection changes
227
+ }; // class ConnectionChangeParamsData
228
+
229
+ class NetworkInfoData : public Core::JSON::Container {
230
+ public:
231
+ NetworkInfoData()
232
+ : Core::JSON::Container()
233
+ {
234
+ _Init();
235
+ }
236
+
237
+ NetworkInfoData(const NetworkInfoData& _other)
238
+ : Core::JSON::Container()
239
+ , Ssid(_other.Ssid)
240
+ , Bssid(_other.Bssid)
241
+ , Frequency(_other.Frequency)
242
+ , Signal(_other.Signal)
243
+ , Security(_other.Security)
244
+ {
245
+ _Init();
246
+ }
247
+
248
+ NetworkInfoData(NetworkInfoData&& _other) noexcept
249
+ : Core::JSON::Container()
250
+ , Ssid(std::move(_other.Ssid))
251
+ , Bssid(std::move(_other.Bssid))
252
+ , Frequency(std::move(_other.Frequency))
253
+ , Signal(std::move(_other.Signal))
254
+ , Security(std::move(_other.Security))
255
+ {
256
+ _Init();
257
+ }
258
+
259
+ NetworkInfoData(const Exchange::IWifiControl::NetworkInfo& _other)
260
+ : Core::JSON::Container()
261
+ {
262
+ Ssid = _other.ssid;
263
+ Bssid = _other.bssid;
264
+ Frequency = _other.frequency;
265
+ Signal = _other.signal;
266
+ Security.Set(true);
267
+ Security = _other.security;
268
+ _Init();
269
+ }
270
+
271
+ NetworkInfoData& operator=(const NetworkInfoData& _rhs)
272
+ {
273
+ Ssid = _rhs.Ssid;
274
+ Bssid = _rhs.Bssid;
275
+ Frequency = _rhs.Frequency;
276
+ Signal = _rhs.Signal;
277
+ Security = _rhs.Security;
278
+ return (*this);
279
+ }
280
+
281
+ NetworkInfoData& operator=(NetworkInfoData&& _rhs) noexcept
282
+ {
283
+ Ssid = std::move(_rhs.Ssid);
284
+ Bssid = std::move(_rhs.Bssid);
285
+ Frequency = std::move(_rhs.Frequency);
286
+ Signal = std::move(_rhs.Signal);
287
+ Security = std::move(_rhs.Security);
288
+ return (*this);
289
+ }
290
+
291
+ NetworkInfoData& operator=(const Exchange::IWifiControl::NetworkInfo& _rhs)
292
+ {
293
+ Ssid = _rhs.ssid;
294
+ Bssid = _rhs.bssid;
295
+ Frequency = _rhs.frequency;
296
+ Signal = _rhs.signal;
297
+ Security.Set(true);
298
+ Security = _rhs.security;
299
+ return (*this);
300
+ }
301
+
302
+ operator Exchange::IWifiControl::NetworkInfo() const
303
+ {
304
+ Exchange::IWifiControl::NetworkInfo _value{};
305
+ _value.ssid = Ssid;
306
+ _value.bssid = Bssid;
307
+ _value.frequency = Frequency;
308
+ _value.signal = Signal;
309
+ _value.security = Security;
310
+ return (_value);
311
+ }
312
+
313
+ ~NetworkInfoData() = default;
314
+
315
+ public:
316
+ bool IsDataValid() const
317
+ {
318
+ return ((Ssid.IsSet() == true) && (Bssid.IsSet() == true) && (Frequency.IsSet() == true) && (Signal.IsSet() == true) && (Security.IsSet() == true));
319
+ }
320
+
321
+ private:
322
+ void _Init()
323
+ {
324
+ Add(_T("ssid"), &Ssid);
325
+ Add(_T("bssid"), &Bssid);
326
+ Add(_T("frequency"), &Frequency);
327
+ Add(_T("signal"), &Signal);
328
+ Add(_T("security"), &Security);
329
+ }
330
+
331
+ public:
332
+ Core::JSON::String Ssid;
333
+ Core::JSON::DecUInt64 Bssid;
334
+ Core::JSON::DecUInt32 Frequency;
335
+ Core::JSON::DecSInt32 Signal;
336
+ Core::JSON::ArrayType<Core::JSON::EnumType<Exchange::IWifiControl::Security>> Security;
337
+ }; // class NetworkInfoData
338
+
339
+ class SecurityInfoData : public Core::JSON::Container {
340
+ public:
341
+ SecurityInfoData()
342
+ : Core::JSON::Container()
343
+ {
344
+ _Init();
345
+ }
346
+
347
+ SecurityInfoData(const SecurityInfoData& _other)
348
+ : Core::JSON::Container()
349
+ , Method(_other.Method)
350
+ , Keys(_other.Keys)
351
+ {
352
+ _Init();
353
+ }
354
+
355
+ SecurityInfoData(SecurityInfoData&& _other) noexcept
356
+ : Core::JSON::Container()
357
+ , Method(std::move(_other.Method))
358
+ , Keys(std::move(_other.Keys))
359
+ {
360
+ _Init();
361
+ }
362
+
363
+ SecurityInfoData(const Exchange::IWifiControl::SecurityInfo& _other)
364
+ : Core::JSON::Container()
365
+ {
366
+ Method = _other.method;
367
+ Keys.Set(true);
368
+ Keys = _other.keys;
369
+ _Init();
370
+ }
371
+
372
+ SecurityInfoData& operator=(const SecurityInfoData& _rhs)
373
+ {
374
+ Method = _rhs.Method;
375
+ Keys = _rhs.Keys;
376
+ return (*this);
377
+ }
378
+
379
+ SecurityInfoData& operator=(SecurityInfoData&& _rhs) noexcept
380
+ {
381
+ Method = std::move(_rhs.Method);
382
+ Keys = std::move(_rhs.Keys);
383
+ return (*this);
384
+ }
385
+
386
+ SecurityInfoData& operator=(const Exchange::IWifiControl::SecurityInfo& _rhs)
387
+ {
388
+ Method = _rhs.method;
389
+ Keys.Set(true);
390
+ Keys = _rhs.keys;
391
+ return (*this);
392
+ }
393
+
394
+ operator Exchange::IWifiControl::SecurityInfo() const
395
+ {
396
+ Exchange::IWifiControl::SecurityInfo _value{};
397
+ _value.method = Method;
398
+ _value.keys = Keys;
399
+ return (_value);
400
+ }
401
+
402
+ ~SecurityInfoData() = default;
403
+
404
+ public:
405
+ bool IsDataValid() const
406
+ {
407
+ return ((Method.IsSet() == true) && (Keys.IsSet() == true));
408
+ }
409
+
410
+ private:
411
+ void _Init()
412
+ {
413
+ Add(_T("method"), &Method);
414
+ Add(_T("keys"), &Keys);
415
+ }
416
+
417
+ public:
418
+ Core::JSON::EnumType<Exchange::IWifiControl::Security> Method;
419
+ Core::JSON::ArrayType<Core::JSON::EnumType<Exchange::IWifiControl::SecurityInfo::Key>> Keys;
420
+ }; // class SecurityInfoData
421
+
422
+ class StatusResultData : public Core::JSON::Container {
423
+ public:
424
+ StatusResultData()
425
+ : Core::JSON::Container()
426
+ {
427
+ Add(_T("connectedssid"), &ConnectedSsid);
428
+ Add(_T("isscanning"), &IsScanning);
429
+ }
430
+
431
+ StatusResultData(const StatusResultData&) = delete;
432
+ StatusResultData(StatusResultData&&) noexcept = delete;
433
+
434
+ StatusResultData& operator=(const StatusResultData&) = delete;
435
+ StatusResultData& operator=(StatusResultData&&) noexcept = delete;
436
+
437
+ ~StatusResultData() = default;
438
+
439
+ public:
440
+ bool IsDataValid() const
441
+ {
442
+ return ((ConnectedSsid.IsSet() == true) && (IsScanning.IsSet() == true));
443
+ }
444
+
445
+ public:
446
+ Core::JSON::String ConnectedSsid; // Status of current device, like which SSID is connected and it is in scanning state or not
447
+ Core::JSON::Boolean IsScanning; // Status of current device, like which SSID is connected and it is in scanning state or not
448
+ }; // class StatusResultData
449
+
450
+ } // namespace WifiControl
451
+
452
+ POP_WARNING()
453
+
454
+ } // namespace JsonData
455
+
456
+ // Enum conversion handlers
457
+ ENUM_CONVERSION_HANDLER(Exchange::IWifiControl::Security)
458
+ ENUM_CONVERSION_HANDLER(Exchange::IWifiControl::SecurityInfo::Key)
459
+
460
+ }
461
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonData_ZigWave.h ADDED
@@ -0,0 +1,86 @@
1
+ // C++ types for ZigWave API.
2
+ // Generated automatically from 'IZigWave.h'. DO NOT EDIT.
3
+
4
+ // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
+
6
+ #pragma once
7
+
8
+ #include <core/JSON.h>
9
+ #include <interfaces/IZigWave.h>
10
+
11
+ namespace WPEFramework {
12
+
13
+ namespace JsonData {
14
+
15
+ PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
+
17
+ namespace ZigWave {
18
+
19
+ // Common classes
20
+ //
21
+
22
+ class BindParamsInfo : public Core::JSON::Container {
23
+ public:
24
+ BindParamsInfo()
25
+ : Core::JSON::Container()
26
+ {
27
+ Add(_T("source"), &Source);
28
+ Add(_T("destination"), &Destination);
29
+ }
30
+
31
+ BindParamsInfo(const BindParamsInfo&) = delete;
32
+ BindParamsInfo(BindParamsInfo&&) noexcept = delete;
33
+
34
+ BindParamsInfo& operator=(const BindParamsInfo&) = delete;
35
+ BindParamsInfo& operator=(BindParamsInfo&&) noexcept = delete;
36
+
37
+ ~BindParamsInfo() = default;
38
+
39
+ public:
40
+ bool IsDataValid() const
41
+ {
42
+ return ((Source.IsSet() == true) && (Destination.IsSet() == true));
43
+ }
44
+
45
+ public:
46
+ Core::JSON::DecUInt32 Source; // Bind the *out* from the soure to the *in* of the destination
47
+ Core::JSON::DecUInt32 Destination; // Bind the *out* from the soure to the *in* of the destination
48
+ }; // class BindParamsInfo
49
+
50
+ class PermutableInfo : public Core::JSON::Container {
51
+ public:
52
+ PermutableInfo()
53
+ : Core::JSON::Container()
54
+ {
55
+ Add(_T("value"), &Value);
56
+ }
57
+
58
+ PermutableInfo(const PermutableInfo&) = delete;
59
+ PermutableInfo(PermutableInfo&&) noexcept = delete;
60
+
61
+ PermutableInfo& operator=(const PermutableInfo&) = delete;
62
+ PermutableInfo& operator=(PermutableInfo&&) noexcept = delete;
63
+
64
+ ~PermutableInfo() = default;
65
+
66
+ public:
67
+ bool IsDataValid() const
68
+ {
69
+ return (Value.IsSet() == true);
70
+ }
71
+
72
+ public:
73
+ Core::JSON::Boolean Value; // To allow new devices to the network, the controller should be placed into an accepting mode. By enabling this mode, the controller can accept new devices.
74
+ }; // class PermutableInfo
75
+
76
+ // Method params/result classes
77
+ //
78
+
79
+ } // namespace ZigWave
80
+
81
+ POP_WARNING()
82
+
83
+ } // namespace JsonData
84
+
85
+ }
86
+
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_AVSController.cpp ADDED
@@ -0,0 +1,20 @@
1
+ // Enumeration code for AVSController API.
2
+ // Generated automatically from 'IAVSClient.h'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include <interfaces/IAVSClient.h>
8
+ #include "JsonData_AVSController.h"
9
+
10
+ namespace WPEFramework {
11
+
12
+ ENUM_CONVERSION_BEGIN(Exchange::IAVSController::INotification::dialoguestate)
13
+ { Exchange::IAVSController::INotification::dialoguestate::IDLE, _TXT("Idle") },
14
+ { Exchange::IAVSController::INotification::dialoguestate::LISTENING, _TXT("Listening") },
15
+ { Exchange::IAVSController::INotification::dialoguestate::EXPECTING, _TXT("Expecting") },
16
+ { Exchange::IAVSController::INotification::dialoguestate::THINKING, _TXT("Thinking") },
17
+ { Exchange::IAVSController::INotification::dialoguestate::SPEAKING, _TXT("Speaking") },
18
+ ENUM_CONVERSION_END(Exchange::IAVSController::INotification::dialoguestate)
19
+
20
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_Application.cpp ADDED
@@ -0,0 +1,49 @@
1
+ // Enumeration code for Application API.
2
+ // Generated automatically from 'IApplication.h'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include <interfaces/IApplication.h>
8
+ #include "JsonData_Application.h"
9
+
10
+ namespace WPEFramework {
11
+
12
+ ENUM_CONVERSION_BEGIN(Exchange::IApplication::resettype)
13
+ { Exchange::IApplication::resettype::FACTORY, _TXT("Factory") },
14
+ { Exchange::IApplication::resettype::CACHE, _TXT("Cache") },
15
+ { Exchange::IApplication::resettype::CREDENTIALS, _TXT("Credentials") },
16
+ { Exchange::IApplication::resettype::RECORDINGS, _TXT("Recordings") },
17
+ ENUM_CONVERSION_END(Exchange::IApplication::resettype)
18
+
19
+ ENUM_CONVERSION_BEGIN(Exchange::IApplication::launchpointtype)
20
+ { Exchange::IApplication::launchpointtype::UNDEFINED, _TXT("Undefined") },
21
+ { Exchange::IApplication::launchpointtype::DIAL, _TXT("Dial") },
22
+ { Exchange::IApplication::launchpointtype::DEDICATED_BUTTON, _TXT("DedicatedButton") },
23
+ { Exchange::IApplication::launchpointtype::DEDICATED_ICON, _TXT("DedicatedIcon") },
24
+ { Exchange::IApplication::launchpointtype::APPLICATION_LIST, _TXT("ApplicationList") },
25
+ { Exchange::IApplication::launchpointtype::INTEGRATED_TILE, _TXT("IntegratedTile") },
26
+ { Exchange::IApplication::launchpointtype::SEARCH_RESULT, _TXT("SearchResult") },
27
+ { Exchange::IApplication::launchpointtype::SEARCH_CONTINUATION, _TXT("SearchContinuation") },
28
+ { Exchange::IApplication::launchpointtype::VOICE_CONTROL, _TXT("VoiceControl") },
29
+ { Exchange::IApplication::launchpointtype::VOICE_SEARCH_RESULT, _TXT("VoiceSearchResult") },
30
+ { Exchange::IApplication::launchpointtype::VISUAL_GESTURE, _TXT("VisualGesture") },
31
+ { Exchange::IApplication::launchpointtype::TOUCH_GESTURE, _TXT("TouchGesture") },
32
+ { Exchange::IApplication::launchpointtype::EPG_GRID, _TXT("EpgGrid") },
33
+ { Exchange::IApplication::launchpointtype::CHANNEL_NUMBER, _TXT("ChannelNumber") },
34
+ { Exchange::IApplication::launchpointtype::CHANNEL_ZAP, _TXT("ChannelZap") },
35
+ { Exchange::IApplication::launchpointtype::CHANNEL_BAR, _TXT("ChannelBar") },
36
+ { Exchange::IApplication::launchpointtype::WEB_BROWSER, _TXT("WebBrowser") },
37
+ { Exchange::IApplication::launchpointtype::POWER_ON, _TXT("PowerOn") },
38
+ { Exchange::IApplication::launchpointtype::POWER_ON_FROM_DEDICATED_BUTTON, _TXT("PowerOnFromDedicatedButton") },
39
+ { Exchange::IApplication::launchpointtype::SUSPENDED_POWER_ON, _TXT("SuspendedPowerOn") },
40
+ { Exchange::IApplication::launchpointtype::RESTART, _TXT("Restart") },
41
+ { Exchange::IApplication::launchpointtype::SUSPENDED_RESTART, _TXT("SuspendedRestart") },
42
+ { Exchange::IApplication::launchpointtype::RESUMED_FROM_SCREEN_SAVER, _TXT("ResumedFromScreenSaver") },
43
+ { Exchange::IApplication::launchpointtype::RESUMED_FROM_STANDBY, _TXT("ResumedFromStandby") },
44
+ { Exchange::IApplication::launchpointtype::BANNER_AD, _TXT("BannerAd") },
45
+ { Exchange::IApplication::launchpointtype::TITLE_RECOMMENDATION, _TXT("TitleRecommendation") },
46
+ { Exchange::IApplication::launchpointtype::APPLICATION_PROMOTION, _TXT("ApplicationPromotion") },
47
+ ENUM_CONVERSION_END(Exchange::IApplication::launchpointtype)
48
+
49
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_BluetoothAudioSink.cpp ADDED
@@ -0,0 +1,40 @@
1
+ // Enumeration code for BluetoothAudioSink API.
2
+ // Generated automatically from 'IBluetoothAudio.h'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include <interfaces/IBluetoothAudio.h>
8
+ #include "JsonData_BluetoothAudioSink.h"
9
+
10
+ namespace WPEFramework {
11
+
12
+ ENUM_CONVERSION_BEGIN(Exchange::IBluetoothAudioSink::state)
13
+ { Exchange::IBluetoothAudioSink::state::UNASSIGNED, _TXT("Unassigned") },
14
+ { Exchange::IBluetoothAudioSink::state::DISCONNECTED, _TXT("Disconnected") },
15
+ { Exchange::IBluetoothAudioSink::state::CONNECTED_BAD_DEVICE, _TXT("ConnectedBadDevice") },
16
+ { Exchange::IBluetoothAudioSink::state::CONNECTED_RESTRICTED, _TXT("ConnectedRestricted") },
17
+ { Exchange::IBluetoothAudioSink::state::CONNECTED, _TXT("Connected") },
18
+ { Exchange::IBluetoothAudioSink::state::READY, _TXT("Ready") },
19
+ { Exchange::IBluetoothAudioSink::state::STREAMING, _TXT("Streaming") },
20
+ ENUM_CONVERSION_END(Exchange::IBluetoothAudioSink::state)
21
+
22
+ ENUM_CONVERSION_BEGIN(Exchange::IBluetoothAudioSink::devicetype)
23
+ { Exchange::IBluetoothAudioSink::devicetype::UNKNOWN, _TXT("Unknown") },
24
+ { Exchange::IBluetoothAudioSink::devicetype::HEADPHONE, _TXT("Headphone") },
25
+ { Exchange::IBluetoothAudioSink::devicetype::SPEAKER, _TXT("Speaker") },
26
+ { Exchange::IBluetoothAudioSink::devicetype::RECORDER, _TXT("Recorder") },
27
+ { Exchange::IBluetoothAudioSink::devicetype::AMPLIFIER, _TXT("Amplifier") },
28
+ ENUM_CONVERSION_END(Exchange::IBluetoothAudioSink::devicetype)
29
+
30
+ ENUM_CONVERSION_BEGIN(Exchange::IBluetoothAudioSink::audiocodec)
31
+ { Exchange::IBluetoothAudioSink::audiocodec::LC_SBC, _TXT("LC-SBC") },
32
+ ENUM_CONVERSION_END(Exchange::IBluetoothAudioSink::audiocodec)
33
+
34
+ ENUM_CONVERSION_BEGIN(Exchange::IBluetoothAudioSink::drmscheme)
35
+ { Exchange::IBluetoothAudioSink::drmscheme::NONE, _TXT("None") },
36
+ { Exchange::IBluetoothAudioSink::drmscheme::DTCP, _TXT("DTCP") },
37
+ { Exchange::IBluetoothAudioSink::drmscheme::SCMS_T, _TXT("SCMS-T") },
38
+ ENUM_CONVERSION_END(Exchange::IBluetoothAudioSink::drmscheme)
39
+
40
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_BluetoothControl.cpp ADDED
@@ -0,0 +1,58 @@
1
+ // Enumeration code for Bluetooth Control API.
2
+ // Generated automatically from 'BluetoothControl.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_BluetoothControl.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::BluetoothControl::scantype)
12
+ { JsonData::BluetoothControl::scantype::CLASSIC, _TXT("Classic") },
13
+ { JsonData::BluetoothControl::scantype::LOW_ENERGY, _TXT("LowEnergy") },
14
+ ENUM_CONVERSION_END(JsonData::BluetoothControl::scantype)
15
+
16
+ ENUM_CONVERSION_BEGIN(JsonData::BluetoothControl::scanmode)
17
+ { JsonData::BluetoothControl::scanmode::GENERAL, _TXT("General") },
18
+ { JsonData::BluetoothControl::scanmode::LIMITED, _TXT("Limited") },
19
+ ENUM_CONVERSION_END(JsonData::BluetoothControl::scanmode)
20
+
21
+ ENUM_CONVERSION_BEGIN(Exchange::IBluetooth::IDevice::type)
22
+ { Exchange::IBluetooth::IDevice::type::ADDRESS_BREDR, _TXT("Classic") },
23
+ { Exchange::IBluetooth::IDevice::type::ADDRESS_LE_PUBLIC, _TXT("LowEnergy") },
24
+ { Exchange::IBluetooth::IDevice::type::ADDRESS_LE_RANDOM, _TXT("LowEnergyRandom") },
25
+ ENUM_CONVERSION_END(Exchange::IBluetooth::IDevice::type)
26
+
27
+ ENUM_CONVERSION_BEGIN(Exchange::IBluetooth::IDevice::pairingcapabilities)
28
+ { Exchange::IBluetooth::IDevice::pairingcapabilities::DISPLAY_ONLY, _TXT("DisplayOnly") },
29
+ { Exchange::IBluetooth::IDevice::pairingcapabilities::DISPLAY_YES_NO, _TXT("DisplayYesNo") },
30
+ { Exchange::IBluetooth::IDevice::pairingcapabilities::KEYBOARD_ONLY, _TXT("KeyboardOnly") },
31
+ { Exchange::IBluetooth::IDevice::pairingcapabilities::NO_INPUT_NO_OUTPUT, _TXT("NoInputNoOutput") },
32
+ { Exchange::IBluetooth::IDevice::pairingcapabilities::KEYBOARD_DISPLAY, _TXT("KeyboardDisplay") },
33
+ ENUM_CONVERSION_END(Exchange::IBluetooth::IDevice::pairingcapabilities)
34
+
35
+ ENUM_CONVERSION_BEGIN(JsonData::BluetoothControl::AdapterData::adaptertype)
36
+ { JsonData::BluetoothControl::AdapterData::adaptertype::CLASSIC, _TXT("Classic") },
37
+ { JsonData::BluetoothControl::AdapterData::adaptertype::LOW_ENERGY, _TXT("LowEnergy") },
38
+ { JsonData::BluetoothControl::AdapterData::adaptertype::DUAL, _TXT("Dual") },
39
+ ENUM_CONVERSION_END(JsonData::BluetoothControl::AdapterData::adaptertype)
40
+
41
+ ENUM_CONVERSION_BEGIN(JsonData::BluetoothControl::DevicestatechangeParamsData::devicestate)
42
+ { JsonData::BluetoothControl::DevicestatechangeParamsData::devicestate::PAIRING, _TXT("Pairing") },
43
+ { JsonData::BluetoothControl::DevicestatechangeParamsData::devicestate::PAIRED, _TXT("Paired") },
44
+ { JsonData::BluetoothControl::DevicestatechangeParamsData::devicestate::UNPAIRED, _TXT("Unpaired") },
45
+ { JsonData::BluetoothControl::DevicestatechangeParamsData::devicestate::CONNECTED, _TXT("Connected") },
46
+ { JsonData::BluetoothControl::DevicestatechangeParamsData::devicestate::DISCONNECTED, _TXT("Disconnected") },
47
+ ENUM_CONVERSION_END(JsonData::BluetoothControl::DevicestatechangeParamsData::devicestate)
48
+
49
+ ENUM_CONVERSION_BEGIN(JsonData::BluetoothControl::DevicestatechangeParamsData::disconnectreason)
50
+ { JsonData::BluetoothControl::DevicestatechangeParamsData::disconnectreason::CONNECTION_TIMEOUT, _TXT("ConnectionTimeout") },
51
+ { JsonData::BluetoothControl::DevicestatechangeParamsData::disconnectreason::AUTHENTICATION_FAILURE, _TXT("AuthenticationFailure") },
52
+ { JsonData::BluetoothControl::DevicestatechangeParamsData::disconnectreason::REMOTE_LOW_ON_RESOURCES, _TXT("RemoteLowOnResources") },
53
+ { JsonData::BluetoothControl::DevicestatechangeParamsData::disconnectreason::REMOTE_POWERED_OFF, _TXT("RemotePoweredOff") },
54
+ { JsonData::BluetoothControl::DevicestatechangeParamsData::disconnectreason::TERMINATED_BY_REMOTE, _TXT("TerminatedByRemote") },
55
+ { JsonData::BluetoothControl::DevicestatechangeParamsData::disconnectreason::TERMINATED_BY_HOST, _TXT("TerminatedByHost") },
56
+ ENUM_CONVERSION_END(JsonData::BluetoothControl::DevicestatechangeParamsData::disconnectreason)
57
+
58
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_BluetoothRemoteControl.cpp ADDED
@@ -0,0 +1,16 @@
1
+ // Enumeration code for Bluetooth Remote Control API.
2
+ // Generated automatically from 'BluetoothRemoteControl.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_BluetoothRemoteControl.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::BluetoothRemoteControl::AudioprofileData::CodecType)
12
+ { JsonData::BluetoothRemoteControl::AudioprofileData::CodecType::PCM, _TXT("PCM") },
13
+ { JsonData::BluetoothRemoteControl::AudioprofileData::CodecType::ADPCM, _TXT("ADPCM") },
14
+ ENUM_CONVERSION_END(JsonData::BluetoothRemoteControl::AudioprofileData::CodecType)
15
+
16
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_Browser.cpp ADDED
@@ -0,0 +1,16 @@
1
+ // Enumeration code for Browser API.
2
+ // Generated automatically from 'Browser.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_Browser.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::Browser::VisibilityType)
12
+ { JsonData::Browser::VisibilityType::VISIBLE, _TXT("visible") },
13
+ { JsonData::Browser::VisibilityType::HIDDEN, _TXT("hidden") },
14
+ ENUM_CONVERSION_END(JsonData::Browser::VisibilityType)
15
+
16
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_BrowserSecurity.cpp ADDED
@@ -0,0 +1,17 @@
1
+ // Enumeration code for BrowserSecurity API.
2
+ // Generated automatically from 'IBrowser.h'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include <interfaces/IBrowser.h>
8
+ #include "JsonData_BrowserSecurity.h"
9
+
10
+ namespace WPEFramework {
11
+
12
+ ENUM_CONVERSION_BEGIN(Exchange::IBrowserSecurity::MixedContentPolicyType)
13
+ { Exchange::IBrowserSecurity::MixedContentPolicyType::ALLOWED, _TXT("allowed") },
14
+ { Exchange::IBrowserSecurity::MixedContentPolicyType::BLOCKED, _TXT("blocked") },
15
+ ENUM_CONVERSION_END(Exchange::IBrowserSecurity::MixedContentPolicyType)
16
+
17
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_Butler.cpp ADDED
@@ -0,0 +1,47 @@
1
+ // Enumeration code for Butler API.
2
+ // Generated automatically from 'Butler.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_Butler.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::Butler::BasicenumType)
12
+ { JsonData::Butler::BasicenumType::CONTROL, _TXT("control") },
13
+ { JsonData::Butler::BasicenumType::MEASURE, _TXT("measure") },
14
+ { JsonData::Butler::BasicenumType::GROUP, _TXT("group") },
15
+ { JsonData::Butler::BasicenumType::IDENTIFICATION, _TXT("identification") },
16
+ ENUM_CONVERSION_END(JsonData::Butler::BasicenumType)
17
+
18
+ ENUM_CONVERSION_BEGIN(JsonData::Butler::SpecificenumType)
19
+ { JsonData::Butler::SpecificenumType::GENERAL, _TXT("general") },
20
+ { JsonData::Butler::SpecificenumType::ELECTRICITY, _TXT("electricity") },
21
+ { JsonData::Butler::SpecificenumType::WATER, _TXT("water") },
22
+ { JsonData::Butler::SpecificenumType::GAS, _TXT("gas") },
23
+ { JsonData::Butler::SpecificenumType::AIR, _TXT("air") },
24
+ { JsonData::Butler::SpecificenumType::SMOKE, _TXT("smoke") },
25
+ { JsonData::Butler::SpecificenumType::CARBONMONOXIDE, _TXT("carbonMonoxide") },
26
+ { JsonData::Butler::SpecificenumType::CARBONDIOXIDE, _TXT("carbonDioxide") },
27
+ { JsonData::Butler::SpecificenumType::TEMPERATURE, _TXT("temperature") },
28
+ { JsonData::Butler::SpecificenumType::ACCESSCONTROL, _TXT("accessControl") },
29
+ { JsonData::Butler::SpecificenumType::BURGLAR, _TXT("burglar") },
30
+ { JsonData::Butler::SpecificenumType::POWERMANAGEMENT, _TXT("powerManagement") },
31
+ { JsonData::Butler::SpecificenumType::SYSTEM, _TXT("system") },
32
+ { JsonData::Butler::SpecificenumType::EMERGENCY, _TXT("emergency") },
33
+ { JsonData::Butler::SpecificenumType::CLOCK, _TXT("clock") },
34
+ { JsonData::Butler::SpecificenumType::LIGHT, _TXT("light") },
35
+ ENUM_CONVERSION_END(JsonData::Butler::SpecificenumType)
36
+
37
+ ENUM_CONVERSION_BEGIN(JsonData::Butler::DimensionenumType)
38
+ { JsonData::Butler::DimensionenumType::LOGIC, _TXT("logic") },
39
+ { JsonData::Butler::DimensionenumType::PERCENTAGE, _TXT("percentage") },
40
+ { JsonData::Butler::DimensionenumType::KWH, _TXT("kwh") },
41
+ { JsonData::Butler::DimensionenumType::KVAH, _TXT("kvah") },
42
+ { JsonData::Butler::DimensionenumType::PULSES, _TXT("pulses") },
43
+ { JsonData::Butler::DimensionenumType::DEGREES, _TXT("degrees") },
44
+ { JsonData::Butler::DimensionenumType::UNITS, _TXT("units") },
45
+ ENUM_CONVERSION_END(JsonData::Butler::DimensionenumType)
46
+
47
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_Compositor.cpp ADDED
@@ -0,0 +1,36 @@
1
+ // Enumeration code for Compositor API.
2
+ // Generated automatically from 'Compositor.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_Compositor.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::Compositor::ResolutionType)
12
+ { JsonData::Compositor::ResolutionType::UNKNOWN, _TXT("unknown") },
13
+ { JsonData::Compositor::ResolutionType::E480I, _TXT("480i") },
14
+ { JsonData::Compositor::ResolutionType::E480P, _TXT("480p") },
15
+ { JsonData::Compositor::ResolutionType::E720P50, _TXT("720p50") },
16
+ { JsonData::Compositor::ResolutionType::E720P60, _TXT("720p60") },
17
+ { JsonData::Compositor::ResolutionType::E1080P24, _TXT("1080p24") },
18
+ { JsonData::Compositor::ResolutionType::E1080I50, _TXT("1080i50") },
19
+ { JsonData::Compositor::ResolutionType::E1080P50, _TXT("1080p50") },
20
+ { JsonData::Compositor::ResolutionType::E1080P60, _TXT("1080p60") },
21
+ { JsonData::Compositor::ResolutionType::E2160P50, _TXT("2160p50") },
22
+ { JsonData::Compositor::ResolutionType::E2160P60, _TXT("2160p60") },
23
+ ENUM_CONVERSION_END(JsonData::Compositor::ResolutionType)
24
+
25
+ ENUM_CONVERSION_BEGIN(JsonData::Compositor::BrightnessType)
26
+ { JsonData::Compositor::BrightnessType::DEFAULT, _TXT("default") },
27
+ { JsonData::Compositor::BrightnessType::MATCH_VIDEO, _TXT("match_video") },
28
+ { JsonData::Compositor::BrightnessType::MAX, _TXT("max") },
29
+ ENUM_CONVERSION_END(JsonData::Compositor::BrightnessType)
30
+
31
+ ENUM_CONVERSION_BEGIN(JsonData::Compositor::VisiblityType)
32
+ { JsonData::Compositor::VisiblityType::VISIBLE, _TXT("visible") },
33
+ { JsonData::Compositor::VisiblityType::HIDDEN, _TXT("hidden") },
34
+ ENUM_CONVERSION_END(JsonData::Compositor::VisiblityType)
35
+
36
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_ConnectionProperties.cpp ADDED
@@ -0,0 +1,26 @@
1
+ // Enumeration code for ConnectionProperties API.
2
+ // Generated automatically from 'IDisplayInfo.h'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include <interfaces/IDisplayInfo.h>
8
+ #include "JsonData_ConnectionProperties.h"
9
+
10
+ namespace WPEFramework {
11
+
12
+ ENUM_CONVERSION_BEGIN(Exchange::IConnectionProperties::HDCPProtectionType)
13
+ { Exchange::IConnectionProperties::HDCPProtectionType::HDCP_Unencrypted, _TXT("HdcpUnencrypted") },
14
+ { Exchange::IConnectionProperties::HDCPProtectionType::HDCP_1X, _TXT("Hdcp1x") },
15
+ { Exchange::IConnectionProperties::HDCPProtectionType::HDCP_2X, _TXT("Hdcp2x") },
16
+ { Exchange::IConnectionProperties::HDCPProtectionType::HDCP_AUTO, _TXT("HdcpAuto") },
17
+ ENUM_CONVERSION_END(Exchange::IConnectionProperties::HDCPProtectionType)
18
+
19
+ ENUM_CONVERSION_BEGIN(Exchange::IConnectionProperties::INotification::Source)
20
+ { Exchange::IConnectionProperties::INotification::Source::PRE_RESOLUTION_CHANGE, _TXT("PreResolutionChange") },
21
+ { Exchange::IConnectionProperties::INotification::Source::POST_RESOLUTION_CHANGE, _TXT("PostResolutionChange") },
22
+ { Exchange::IConnectionProperties::INotification::Source::HDMI_CHANGE, _TXT("HdmiChange") },
23
+ { Exchange::IConnectionProperties::INotification::Source::HDCP_CHANGE, _TXT("HdcpChange") },
24
+ ENUM_CONVERSION_END(Exchange::IConnectionProperties::INotification::Source)
25
+
26
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_DIALServer.cpp ADDED
@@ -0,0 +1,17 @@
1
+ // Enumeration code for DIAL Server API.
2
+ // Generated automatically from 'DIALServer.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_DIALServer.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::DIALServer::StateType)
12
+ { JsonData::DIALServer::StateType::STOPPED, _TXT("Stopped") },
13
+ { JsonData::DIALServer::StateType::STARTED, _TXT("Started") },
14
+ { JsonData::DIALServer::StateType::HIDDEN, _TXT("Hidden") },
15
+ ENUM_CONVERSION_END(JsonData::DIALServer::StateType)
16
+
17
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_DTV.cpp ADDED
@@ -0,0 +1,201 @@
1
+ // Enumeration code for DTV API.
2
+ // Generated automatically from 'DTV.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_DTV.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::DTV::LnbtypeType)
12
+ { JsonData::DTV::LnbtypeType::SINGLE, _TXT("single") },
13
+ { JsonData::DTV::LnbtypeType::UNIVERSAL, _TXT("universal") },
14
+ { JsonData::DTV::LnbtypeType::UNICABLE, _TXT("unicable") },
15
+ ENUM_CONVERSION_END(JsonData::DTV::LnbtypeType)
16
+
17
+ ENUM_CONVERSION_BEGIN(JsonData::DTV::LnbpowerType)
18
+ { JsonData::DTV::LnbpowerType::OFF, _TXT("off") },
19
+ { JsonData::DTV::LnbpowerType::ON, _TXT("on") },
20
+ { JsonData::DTV::LnbpowerType::AUTO, _TXT("auto") },
21
+ ENUM_CONVERSION_END(JsonData::DTV::LnbpowerType)
22
+
23
+ ENUM_CONVERSION_BEGIN(JsonData::DTV::Diseqc_toneType)
24
+ { JsonData::DTV::Diseqc_toneType::OFF, _TXT("off") },
25
+ { JsonData::DTV::Diseqc_toneType::A, _TXT("a") },
26
+ { JsonData::DTV::Diseqc_toneType::B, _TXT("b") },
27
+ ENUM_CONVERSION_END(JsonData::DTV::Diseqc_toneType)
28
+
29
+ ENUM_CONVERSION_BEGIN(JsonData::DTV::Diseqc_cswitchType)
30
+ { JsonData::DTV::Diseqc_cswitchType::OFF, _TXT("off") },
31
+ { JsonData::DTV::Diseqc_cswitchType::A, _TXT("a") },
32
+ { JsonData::DTV::Diseqc_cswitchType::B, _TXT("b") },
33
+ { JsonData::DTV::Diseqc_cswitchType::C, _TXT("c") },
34
+ { JsonData::DTV::Diseqc_cswitchType::D, _TXT("d") },
35
+ ENUM_CONVERSION_END(JsonData::DTV::Diseqc_cswitchType)
36
+
37
+ ENUM_CONVERSION_BEGIN(JsonData::DTV::TunertypeType)
38
+ { JsonData::DTV::TunertypeType::NONE, _TXT("none") },
39
+ { JsonData::DTV::TunertypeType::DVBS, _TXT("dvbs") },
40
+ { JsonData::DTV::TunertypeType::DVBT, _TXT("dvbt") },
41
+ { JsonData::DTV::TunertypeType::DVBC, _TXT("dvbc") },
42
+ ENUM_CONVERSION_END(JsonData::DTV::TunertypeType)
43
+
44
+ ENUM_CONVERSION_BEGIN(JsonData::DTV::StartServiceSearchParamsData::SearchtypeType)
45
+ { JsonData::DTV::StartServiceSearchParamsData::SearchtypeType::FREQUENCY, _TXT("frequency") },
46
+ { JsonData::DTV::StartServiceSearchParamsData::SearchtypeType::NETWORK, _TXT("network") },
47
+ ENUM_CONVERSION_END(JsonData::DTV::StartServiceSearchParamsData::SearchtypeType)
48
+
49
+ ENUM_CONVERSION_BEGIN(JsonData::DTV::PolarityType)
50
+ { JsonData::DTV::PolarityType::HORIZONTAL, _TXT("horizontal") },
51
+ { JsonData::DTV::PolarityType::VERTICAL, _TXT("vertical") },
52
+ { JsonData::DTV::PolarityType::LEFT, _TXT("left") },
53
+ { JsonData::DTV::PolarityType::RIGHT, _TXT("right") },
54
+ ENUM_CONVERSION_END(JsonData::DTV::PolarityType)
55
+
56
+ ENUM_CONVERSION_BEGIN(JsonData::DTV::FecType)
57
+ { JsonData::DTV::FecType::FECAUTO, _TXT("fecauto") },
58
+ { JsonData::DTV::FecType::FEC1_2, _TXT("fec1_2") },
59
+ { JsonData::DTV::FecType::FEC2_3, _TXT("fec2_3") },
60
+ { JsonData::DTV::FecType::FEC3_4, _TXT("fec3_4") },
61
+ { JsonData::DTV::FecType::FEC5_6, _TXT("fec5_6") },
62
+ { JsonData::DTV::FecType::FEC7_8, _TXT("fec7_8") },
63
+ { JsonData::DTV::FecType::FEC1_4, _TXT("fec1_4") },
64
+ { JsonData::DTV::FecType::FEC1_3, _TXT("fec1_3") },
65
+ { JsonData::DTV::FecType::FEC2_5, _TXT("fec2_5") },
66
+ { JsonData::DTV::FecType::FEC8_9, _TXT("fec8_9") },
67
+ { JsonData::DTV::FecType::FEC9_10, _TXT("fec9_10") },
68
+ { JsonData::DTV::FecType::FEC3_5, _TXT("fec3_5") },
69
+ { JsonData::DTV::FecType::FEC4_5, _TXT("fec4_5") },
70
+ ENUM_CONVERSION_END(JsonData::DTV::FecType)
71
+
72
+ ENUM_CONVERSION_BEGIN(JsonData::DTV::DvbsmodulationType)
73
+ { JsonData::DTV::DvbsmodulationType::AUTO, _TXT("auto") },
74
+ { JsonData::DTV::DvbsmodulationType::QPSK, _TXT("qpsk") },
75
+ { JsonData::DTV::DvbsmodulationType::E8PSK, _TXT("8psk") },
76
+ { JsonData::DTV::DvbsmodulationType::E16QAM, _TXT("16qam") },
77
+ ENUM_CONVERSION_END(JsonData::DTV::DvbsmodulationType)
78
+
79
+ ENUM_CONVERSION_BEGIN(JsonData::DTV::DvbcmodulationType)
80
+ { JsonData::DTV::DvbcmodulationType::AUTO, _TXT("auto") },
81
+ { JsonData::DTV::DvbcmodulationType::E4QAM, _TXT("4qam") },
82
+ { JsonData::DTV::DvbcmodulationType::E8QAM, _TXT("8qam") },
83
+ { JsonData::DTV::DvbcmodulationType::E16QAM, _TXT("16qam") },
84
+ { JsonData::DTV::DvbcmodulationType::E32QAM, _TXT("32qam") },
85
+ { JsonData::DTV::DvbcmodulationType::E64QAM, _TXT("64qam") },
86
+ { JsonData::DTV::DvbcmodulationType::E128QAM, _TXT("128qam") },
87
+ { JsonData::DTV::DvbcmodulationType::E256QAM, _TXT("256qam") },
88
+ ENUM_CONVERSION_END(JsonData::DTV::DvbcmodulationType)
89
+
90
+ ENUM_CONVERSION_BEGIN(JsonData::DTV::DvbtbandwidthType)
91
+ { JsonData::DTV::DvbtbandwidthType::E5MHZ, _TXT("5MHz") },
92
+ { JsonData::DTV::DvbtbandwidthType::E6MHZ, _TXT("6MHz") },
93
+ { JsonData::DTV::DvbtbandwidthType::E7MHZ, _TXT("7MHz") },
94
+ { JsonData::DTV::DvbtbandwidthType::E8MHZ, _TXT("8MHz") },
95
+ { JsonData::DTV::DvbtbandwidthType::E10MHZ, _TXT("10MHz") },
96
+ { JsonData::DTV::DvbtbandwidthType::UNDEFINED, _TXT("undefined") },
97
+ ENUM_CONVERSION_END(JsonData::DTV::DvbtbandwidthType)
98
+
99
+ ENUM_CONVERSION_BEGIN(JsonData::DTV::OfdmmodeType)
100
+ { JsonData::DTV::OfdmmodeType::OFDM_1K, _TXT("ofdm_1K") },
101
+ { JsonData::DTV::OfdmmodeType::OFDM_2K, _TXT("ofdm_2K") },
102
+ { JsonData::DTV::OfdmmodeType::OFDM_4K, _TXT("ofdm_4K") },
103
+ { JsonData::DTV::OfdmmodeType::OFDM_8K, _TXT("ofdm_8K") },
104
+ { JsonData::DTV::OfdmmodeType::OFDM_16K, _TXT("ofdm_16K") },
105
+ { JsonData::DTV::OfdmmodeType::OFDM_32K, _TXT("ofdm_32K") },
106
+ { JsonData::DTV::OfdmmodeType::UNDEFINED, _TXT("undefined") },
107
+ ENUM_CONVERSION_END(JsonData::DTV::OfdmmodeType)
108
+
109
+ ENUM_CONVERSION_BEGIN(JsonData::DTV::ServicetypeType)
110
+ { JsonData::DTV::ServicetypeType::TV, _TXT("tv") },
111
+ { JsonData::DTV::ServicetypeType::RADIO, _TXT("radio") },
112
+ { JsonData::DTV::ServicetypeType::TELETEXT, _TXT("teletext") },
113
+ { JsonData::DTV::ServicetypeType::NVOD, _TXT("nvod") },
114
+ { JsonData::DTV::ServicetypeType::NVOD_TIMESHIFT, _TXT("nvod_timeshift") },
115
+ { JsonData::DTV::ServicetypeType::MOSAIC, _TXT("mosaic") },
116
+ { JsonData::DTV::ServicetypeType::AVC_RADIO, _TXT("avc_radio") },
117
+ { JsonData::DTV::ServicetypeType::AVC_MOSAIC, _TXT("avc_mosaic") },
118
+ { JsonData::DTV::ServicetypeType::DATA, _TXT("data") },
119
+ { JsonData::DTV::ServicetypeType::MPEG2_HD, _TXT("mpeg2_hd") },
120
+ { JsonData::DTV::ServicetypeType::AVC_SD_TV, _TXT("avc_sd_tv") },
121
+ { JsonData::DTV::ServicetypeType::AVC_SD_NVOD_TIMESHIFT, _TXT("avc_sd_nvod_timeshift") },
122
+ { JsonData::DTV::ServicetypeType::AVC_SD_NVOD, _TXT("avc_sd_nvod") },
123
+ { JsonData::DTV::ServicetypeType::HD_TV, _TXT("hd_tv") },
124
+ { JsonData::DTV::ServicetypeType::AVC_HD_NVOD_TIMESHIFT, _TXT("avc_hd_nvod_timeshift") },
125
+ { JsonData::DTV::ServicetypeType::AVC_HD_NVOD, _TXT("avc_hd_nvod") },
126
+ { JsonData::DTV::ServicetypeType::UHD_TV, _TXT("uhd_tv") },
127
+ { JsonData::DTV::ServicetypeType::UNKNOWN, _TXT("unknown") },
128
+ ENUM_CONVERSION_END(JsonData::DTV::ServicetypeType)
129
+
130
+ ENUM_CONVERSION_BEGIN(JsonData::DTV::RunningstatusType)
131
+ { JsonData::DTV::RunningstatusType::UNDEFINED, _TXT("undefined") },
132
+ { JsonData::DTV::RunningstatusType::NOTRUNNING, _TXT("notrunning") },
133
+ { JsonData::DTV::RunningstatusType::STARTSSOON, _TXT("startssoon") },
134
+ { JsonData::DTV::RunningstatusType::PAUSING, _TXT("pausing") },
135
+ { JsonData::DTV::RunningstatusType::RUNNING, _TXT("running") },
136
+ { JsonData::DTV::RunningstatusType::OFFAIR, _TXT("offair") },
137
+ ENUM_CONVERSION_END(JsonData::DTV::RunningstatusType)
138
+
139
+ ENUM_CONVERSION_BEGIN(JsonData::DTV::ComponentData::TypeType)
140
+ { JsonData::DTV::ComponentData::TypeType::VIDEO, _TXT("video") },
141
+ { JsonData::DTV::ComponentData::TypeType::AUDIO, _TXT("audio") },
142
+ { JsonData::DTV::ComponentData::TypeType::SUBTITLES, _TXT("subtitles") },
143
+ { JsonData::DTV::ComponentData::TypeType::TELETEXT, _TXT("teletext") },
144
+ { JsonData::DTV::ComponentData::TypeType::DATA, _TXT("data") },
145
+ ENUM_CONVERSION_END(JsonData::DTV::ComponentData::TypeType)
146
+
147
+ ENUM_CONVERSION_BEGIN(JsonData::DTV::CodecType)
148
+ { JsonData::DTV::CodecType::MPEG2, _TXT("mpeg2") },
149
+ { JsonData::DTV::CodecType::H264, _TXT("h264") },
150
+ { JsonData::DTV::CodecType::H265, _TXT("h265") },
151
+ { JsonData::DTV::CodecType::AVS, _TXT("avs") },
152
+ { JsonData::DTV::CodecType::MPEG1, _TXT("mpeg1") },
153
+ { JsonData::DTV::CodecType::AAC, _TXT("aac") },
154
+ { JsonData::DTV::CodecType::HEAAC, _TXT("heaac") },
155
+ { JsonData::DTV::CodecType::HEAACV2, _TXT("heaacv2") },
156
+ { JsonData::DTV::CodecType::AC3, _TXT("ac3") },
157
+ { JsonData::DTV::CodecType::EAC3, _TXT("eac3") },
158
+ ENUM_CONVERSION_END(JsonData::DTV::CodecType)
159
+
160
+ ENUM_CONVERSION_BEGIN(JsonData::DTV::ComponentData::AudioData::TypeType)
161
+ { JsonData::DTV::ComponentData::AudioData::TypeType::UNDEFINED, _TXT("undefined") },
162
+ { JsonData::DTV::ComponentData::AudioData::TypeType::CLEAN, _TXT("clean") },
163
+ { JsonData::DTV::ComponentData::AudioData::TypeType::HEARINGIMPAIRED, _TXT("hearingimpaired") },
164
+ { JsonData::DTV::ComponentData::AudioData::TypeType::VISUALLYIMPAIRED, _TXT("visuallyimpaired") },
165
+ { JsonData::DTV::ComponentData::AudioData::TypeType::UNKNOWN, _TXT("unknown") },
166
+ ENUM_CONVERSION_END(JsonData::DTV::ComponentData::AudioData::TypeType)
167
+
168
+ ENUM_CONVERSION_BEGIN(JsonData::DTV::ComponentData::AudioData::ModeType)
169
+ { JsonData::DTV::ComponentData::AudioData::ModeType::MONO, _TXT("mono") },
170
+ { JsonData::DTV::ComponentData::AudioData::ModeType::LEFT, _TXT("left") },
171
+ { JsonData::DTV::ComponentData::AudioData::ModeType::RIGHT, _TXT("right") },
172
+ { JsonData::DTV::ComponentData::AudioData::ModeType::STEREO, _TXT("stereo") },
173
+ { JsonData::DTV::ComponentData::AudioData::ModeType::MULTICHANNEL, _TXT("multichannel") },
174
+ { JsonData::DTV::ComponentData::AudioData::ModeType::UNDEFINED, _TXT("undefined") },
175
+ ENUM_CONVERSION_END(JsonData::DTV::ComponentData::AudioData::ModeType)
176
+
177
+ ENUM_CONVERSION_BEGIN(JsonData::DTV::ComponentData::SubtitlesData::FormatType)
178
+ { JsonData::DTV::ComponentData::SubtitlesData::FormatType::DEFAULT, _TXT("default") },
179
+ { JsonData::DTV::ComponentData::SubtitlesData::FormatType::E4_3, _TXT("4_3") },
180
+ { JsonData::DTV::ComponentData::SubtitlesData::FormatType::E16_9, _TXT("16_9") },
181
+ { JsonData::DTV::ComponentData::SubtitlesData::FormatType::E221_1, _TXT("221_1") },
182
+ { JsonData::DTV::ComponentData::SubtitlesData::FormatType::HD, _TXT("hd") },
183
+ { JsonData::DTV::ComponentData::SubtitlesData::FormatType::HARDOFHEARING, _TXT("hardofhearing") },
184
+ { JsonData::DTV::ComponentData::SubtitlesData::FormatType::HARDOFHEARING4_3, _TXT("hardofhearing4_3") },
185
+ { JsonData::DTV::ComponentData::SubtitlesData::FormatType::HARDOFHEARING16_9, _TXT("hardofhearing16_9") },
186
+ { JsonData::DTV::ComponentData::SubtitlesData::FormatType::HARDOFHEARING221_1, _TXT("hardofhearing221_1") },
187
+ { JsonData::DTV::ComponentData::SubtitlesData::FormatType::HARDOFHEARINGHD, _TXT("hardofhearinghd") },
188
+ ENUM_CONVERSION_END(JsonData::DTV::ComponentData::SubtitlesData::FormatType)
189
+
190
+ ENUM_CONVERSION_BEGIN(JsonData::DTV::EventtypeType)
191
+ { JsonData::DTV::EventtypeType::SERVICESEARCHSTATUS, _TXT("ServiceSearchStatus") },
192
+ { JsonData::DTV::EventtypeType::SERVICEUPDATED, _TXT("serviceupdated") },
193
+ { JsonData::DTV::EventtypeType::SERVICEADDED, _TXT("serviceadded") },
194
+ { JsonData::DTV::EventtypeType::SERVICEDELETED, _TXT("servicedeleted") },
195
+ { JsonData::DTV::EventtypeType::VIDEOCHANGED, _TXT("videochanged") },
196
+ { JsonData::DTV::EventtypeType::AUDIOCHANGED, _TXT("audiochanged") },
197
+ { JsonData::DTV::EventtypeType::SUBTITLESCHANGED, _TXT("subtitleschanged") },
198
+ { JsonData::DTV::EventtypeType::EVENTCHANGED, _TXT("eventchanged") },
199
+ ENUM_CONVERSION_END(JsonData::DTV::EventtypeType)
200
+
201
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_DeviceInfo.cpp ADDED
@@ -0,0 +1,192 @@
1
+ // Enumeration code for Device Info API.
2
+ // Generated automatically from 'DeviceInfo.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_DeviceInfo.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::DeviceInfo::VideodisplayType)
12
+ { JsonData::DeviceInfo::VideodisplayType::OTHER, _TXT("OTHER") },
13
+ { JsonData::DeviceInfo::VideodisplayType::RF_MODULATOR, _TXT("RF_MODULATOR") },
14
+ { JsonData::DeviceInfo::VideodisplayType::COMPOSITE, _TXT("COMPOSITE") },
15
+ { JsonData::DeviceInfo::VideodisplayType::SVIDEO, _TXT("SVIDEO") },
16
+ { JsonData::DeviceInfo::VideodisplayType::COMPONET, _TXT("COMPONET") },
17
+ { JsonData::DeviceInfo::VideodisplayType::SCART_RGB, _TXT("SCART_RGB") },
18
+ { JsonData::DeviceInfo::VideodisplayType::HDMI0, _TXT("HDMI0") },
19
+ { JsonData::DeviceInfo::VideodisplayType::HDMI1, _TXT("HDMI1") },
20
+ { JsonData::DeviceInfo::VideodisplayType::DISPLAYPORT, _TXT("DISPLAYPORT") },
21
+ ENUM_CONVERSION_END(JsonData::DeviceInfo::VideodisplayType)
22
+
23
+ ENUM_CONVERSION_BEGIN(JsonData::DeviceInfo::Output_resolutionType)
24
+ { JsonData::DeviceInfo::Output_resolutionType::UNKNOWN, _TXT("unknown") },
25
+ { JsonData::DeviceInfo::Output_resolutionType::E480I, _TXT("480i") },
26
+ { JsonData::DeviceInfo::Output_resolutionType::E480P, _TXT("480p") },
27
+ { JsonData::DeviceInfo::Output_resolutionType::E576I, _TXT("576i") },
28
+ { JsonData::DeviceInfo::Output_resolutionType::E576P, _TXT("576p") },
29
+ { JsonData::DeviceInfo::Output_resolutionType::E576P50, _TXT("576p50") },
30
+ { JsonData::DeviceInfo::Output_resolutionType::E720P, _TXT("720p") },
31
+ { JsonData::DeviceInfo::Output_resolutionType::E720P24, _TXT("720p24") },
32
+ { JsonData::DeviceInfo::Output_resolutionType::E720P25, _TXT("720p25") },
33
+ { JsonData::DeviceInfo::Output_resolutionType::E720P30, _TXT("720p30") },
34
+ { JsonData::DeviceInfo::Output_resolutionType::E720P50, _TXT("720p50") },
35
+ { JsonData::DeviceInfo::Output_resolutionType::E720P60, _TXT("720p60") },
36
+ { JsonData::DeviceInfo::Output_resolutionType::E1080I, _TXT("1080i") },
37
+ { JsonData::DeviceInfo::Output_resolutionType::E1080I25, _TXT("1080i25") },
38
+ { JsonData::DeviceInfo::Output_resolutionType::E1080I50, _TXT("1080i50") },
39
+ { JsonData::DeviceInfo::Output_resolutionType::E1080I60, _TXT("1080i60") },
40
+ { JsonData::DeviceInfo::Output_resolutionType::E1080P, _TXT("1080p") },
41
+ { JsonData::DeviceInfo::Output_resolutionType::E1080P24, _TXT("1080p24") },
42
+ { JsonData::DeviceInfo::Output_resolutionType::E1080P25, _TXT("1080p25") },
43
+ { JsonData::DeviceInfo::Output_resolutionType::E1080P30, _TXT("1080p30") },
44
+ { JsonData::DeviceInfo::Output_resolutionType::E1080P50, _TXT("1080p50") },
45
+ { JsonData::DeviceInfo::Output_resolutionType::E1080P60, _TXT("1080p60") },
46
+ { JsonData::DeviceInfo::Output_resolutionType::E2160P24, _TXT("2160p24") },
47
+ { JsonData::DeviceInfo::Output_resolutionType::E2160P25, _TXT("2160p25") },
48
+ { JsonData::DeviceInfo::Output_resolutionType::E2160P30, _TXT("2160p30") },
49
+ { JsonData::DeviceInfo::Output_resolutionType::E2160P50, _TXT("2160p50") },
50
+ { JsonData::DeviceInfo::Output_resolutionType::E2160P60, _TXT("2160p60") },
51
+ { JsonData::DeviceInfo::Output_resolutionType::E4320P30, _TXT("4320p30") },
52
+ { JsonData::DeviceInfo::Output_resolutionType::E4320P60, _TXT("4320p60") },
53
+ ENUM_CONVERSION_END(JsonData::DeviceInfo::Output_resolutionType)
54
+
55
+ ENUM_CONVERSION_BEGIN(JsonData::DeviceInfo::CopyprotectionType)
56
+ { JsonData::DeviceInfo::CopyprotectionType::HDCP_UNAVAILABLE, _TXT("unavailable") },
57
+ { JsonData::DeviceInfo::CopyprotectionType::HDCP_14, _TXT("1.4") },
58
+ { JsonData::DeviceInfo::CopyprotectionType::HDCP_20, _TXT("2.0") },
59
+ { JsonData::DeviceInfo::CopyprotectionType::HDCP_21, _TXT("2.1") },
60
+ { JsonData::DeviceInfo::CopyprotectionType::HDCP_22, _TXT("2.2") },
61
+ ENUM_CONVERSION_END(JsonData::DeviceInfo::CopyprotectionType)
62
+
63
+ ENUM_CONVERSION_BEGIN(JsonData::DeviceInfo::AudioportType)
64
+ { JsonData::DeviceInfo::AudioportType::OTHER, _TXT("OTHER") },
65
+ { JsonData::DeviceInfo::AudioportType::RF_MODULATOR, _TXT("RF_MODULATOR") },
66
+ { JsonData::DeviceInfo::AudioportType::ANALOG, _TXT("ANALOG") },
67
+ { JsonData::DeviceInfo::AudioportType::SPDIF0, _TXT("SPDIF0") },
68
+ { JsonData::DeviceInfo::AudioportType::HDMI0, _TXT("HDMI0") },
69
+ { JsonData::DeviceInfo::AudioportType::HDMI1, _TXT("HDMI1") },
70
+ { JsonData::DeviceInfo::AudioportType::DISPLAYPORT, _TXT("DISPLAYPORT") },
71
+ ENUM_CONVERSION_END(JsonData::DeviceInfo::AudioportType)
72
+
73
+ ENUM_CONVERSION_BEGIN(JsonData::DeviceInfo::AudiocapabilityType)
74
+ { JsonData::DeviceInfo::AudiocapabilityType::NONE, _TXT("none") },
75
+ { JsonData::DeviceInfo::AudiocapabilityType::ATMOS, _TXT("ATMOS") },
76
+ { JsonData::DeviceInfo::AudiocapabilityType::DD, _TXT("DOLBY DIGITAL") },
77
+ { JsonData::DeviceInfo::AudiocapabilityType::DDPLUS, _TXT("DOLBY DIGITAL PLUS") },
78
+ { JsonData::DeviceInfo::AudiocapabilityType::DAD, _TXT("Dual Audio Decode") },
79
+ { JsonData::DeviceInfo::AudiocapabilityType::DAPV2, _TXT("DAPv2") },
80
+ { JsonData::DeviceInfo::AudiocapabilityType::MS12, _TXT("MS12") },
81
+ ENUM_CONVERSION_END(JsonData::DeviceInfo::AudiocapabilityType)
82
+
83
+ ENUM_CONVERSION_BEGIN(JsonData::DeviceInfo::Ms12capabilityType)
84
+ { JsonData::DeviceInfo::Ms12capabilityType::NONE, _TXT("none") },
85
+ { JsonData::DeviceInfo::Ms12capabilityType::DOLBYVOLUME, _TXT("Dolby Volume") },
86
+ { JsonData::DeviceInfo::Ms12capabilityType::INTELIGENTEQUALIZER, _TXT("Inteligent Equalizer") },
87
+ { JsonData::DeviceInfo::Ms12capabilityType::DIALOGUEENHANCER, _TXT("Dialogue Enhancer") },
88
+ ENUM_CONVERSION_END(JsonData::DeviceInfo::Ms12capabilityType)
89
+
90
+ ENUM_CONVERSION_BEGIN(JsonData::DeviceInfo::Ms12profileType)
91
+ { JsonData::DeviceInfo::Ms12profileType::NONE, _TXT("None") },
92
+ { JsonData::DeviceInfo::Ms12profileType::MUSIC, _TXT("Music") },
93
+ { JsonData::DeviceInfo::Ms12profileType::MOVIE, _TXT("Movie") },
94
+ { JsonData::DeviceInfo::Ms12profileType::VOICE, _TXT("Voice") },
95
+ ENUM_CONVERSION_END(JsonData::DeviceInfo::Ms12profileType)
96
+
97
+ ENUM_CONVERSION_BEGIN(JsonData::DeviceInfo::FirmwareversionData::YoctoType)
98
+ { JsonData::DeviceInfo::FirmwareversionData::YoctoType::DUNFELL, _TXT("dunfell") },
99
+ { JsonData::DeviceInfo::FirmwareversionData::YoctoType::MORTY, _TXT("morty") },
100
+ { JsonData::DeviceInfo::FirmwareversionData::YoctoType::DAISY, _TXT("daisy") },
101
+ { JsonData::DeviceInfo::FirmwareversionData::YoctoType::KIRKSTONE, _TXT("kirkstone") },
102
+ ENUM_CONVERSION_END(JsonData::DeviceInfo::FirmwareversionData::YoctoType)
103
+
104
+ ENUM_CONVERSION_BEGIN(JsonData::DeviceInfo::MakeData::MakeType)
105
+ { JsonData::DeviceInfo::MakeData::MakeType::PLATCO, _TXT("platco") },
106
+ { JsonData::DeviceInfo::MakeData::MakeType::LLAMA, _TXT("llama") },
107
+ { JsonData::DeviceInfo::MakeData::MakeType::HISENSE, _TXT("hisense") },
108
+ { JsonData::DeviceInfo::MakeData::MakeType::ELEMENT, _TXT("element") },
109
+ { JsonData::DeviceInfo::MakeData::MakeType::SKY_CP, _TXT("Sky_CP") },
110
+ { JsonData::DeviceInfo::MakeData::MakeType::SKY, _TXT("sky") },
111
+ { JsonData::DeviceInfo::MakeData::MakeType::SERCOMM, _TXT("sercomm") },
112
+ { JsonData::DeviceInfo::MakeData::MakeType::COMMSCOPE, _TXT("commscope") },
113
+ { JsonData::DeviceInfo::MakeData::MakeType::ARRIS, _TXT("arris") },
114
+ { JsonData::DeviceInfo::MakeData::MakeType::CISCO, _TXT("cisco") },
115
+ { JsonData::DeviceInfo::MakeData::MakeType::PACE, _TXT("pace") },
116
+ { JsonData::DeviceInfo::MakeData::MakeType::SAMSUNG, _TXT("samsung") },
117
+ { JsonData::DeviceInfo::MakeData::MakeType::TECHNICOLOR, _TXT("technicolor") },
118
+ { JsonData::DeviceInfo::MakeData::MakeType::AMLOGIC_INC, _TXT("Amlogic_Inc") },
119
+ { JsonData::DeviceInfo::MakeData::MakeType::RASPBERRYPI_ORG, _TXT("raspberrypi_org") },
120
+ { JsonData::DeviceInfo::MakeData::MakeType::PIONEER, _TXT("Pioneer") },
121
+ { JsonData::DeviceInfo::MakeData::MakeType::TPV, _TXT("TPV") },
122
+ ENUM_CONVERSION_END(JsonData::DeviceInfo::MakeData::MakeType)
123
+
124
+ ENUM_CONVERSION_BEGIN(JsonData::DeviceInfo::ModelidData::SkuType)
125
+ { JsonData::DeviceInfo::ModelidData::SkuType::PLTL11AEI, _TXT("PLTL11AEI") },
126
+ { JsonData::DeviceInfo::ModelidData::SkuType::ZWCN11MWI, _TXT("ZWCN11MWI") },
127
+ { JsonData::DeviceInfo::ModelidData::SkuType::SKTL11AEI, _TXT("SKTL11AEI") },
128
+ { JsonData::DeviceInfo::ModelidData::SkuType::LS301, _TXT("LS301") },
129
+ { JsonData::DeviceInfo::ModelidData::SkuType::HSTP11MWR, _TXT("HSTP11MWR") },
130
+ { JsonData::DeviceInfo::ModelidData::SkuType::HSTP11MWRFX50, _TXT("HSTP11MWRFX50") },
131
+ { JsonData::DeviceInfo::ModelidData::SkuType::ELTE11MWR, _TXT("ELTE11MWR") },
132
+ { JsonData::DeviceInfo::ModelidData::SkuType::SKXI11ADS, _TXT("SKXI11ADS") },
133
+ { JsonData::DeviceInfo::ModelidData::SkuType::SKXI11AIS, _TXT("SKXI11AIS") },
134
+ { JsonData::DeviceInfo::ModelidData::SkuType::SKXI11ANS, _TXT("SKXI11ANS") },
135
+ { JsonData::DeviceInfo::ModelidData::SkuType::SCXI11AIC, _TXT("SCXI11AIC") },
136
+ { JsonData::DeviceInfo::ModelidData::SkuType::SCXI11BEI, _TXT("SCXI11BEI") },
137
+ { JsonData::DeviceInfo::ModelidData::SkuType::CMXI11BEI, _TXT("CMXI11BEI") },
138
+ { JsonData::DeviceInfo::ModelidData::SkuType::AX013AN, _TXT("AX013AN") },
139
+ { JsonData::DeviceInfo::ModelidData::SkuType::AX014AN, _TXT("AX014AN") },
140
+ { JsonData::DeviceInfo::ModelidData::SkuType::AX061AEI, _TXT("AX061AEI") },
141
+ { JsonData::DeviceInfo::ModelidData::SkuType::MX011AN, _TXT("MX011AN") },
142
+ { JsonData::DeviceInfo::ModelidData::SkuType::CS011AN, _TXT("CS011AN") },
143
+ { JsonData::DeviceInfo::ModelidData::SkuType::CXD01ANI, _TXT("CXD01ANI") },
144
+ { JsonData::DeviceInfo::ModelidData::SkuType::PX001AN, _TXT("PX001AN") },
145
+ { JsonData::DeviceInfo::ModelidData::SkuType::PX013AN, _TXT("PX013AN") },
146
+ { JsonData::DeviceInfo::ModelidData::SkuType::PX022AN, _TXT("PX022AN") },
147
+ { JsonData::DeviceInfo::ModelidData::SkuType::PX032ANI, _TXT("PX032ANI") },
148
+ { JsonData::DeviceInfo::ModelidData::SkuType::PX051AEI, _TXT("PX051AEI") },
149
+ { JsonData::DeviceInfo::ModelidData::SkuType::PXD01ANI, _TXT("PXD01ANI") },
150
+ { JsonData::DeviceInfo::ModelidData::SkuType::SX022AN, _TXT("SX022AN") },
151
+ { JsonData::DeviceInfo::ModelidData::SkuType::TX061AEI, _TXT("TX061AEI") },
152
+ { JsonData::DeviceInfo::ModelidData::SkuType::PI, _TXT("PI") },
153
+ { JsonData::DeviceInfo::ModelidData::SkuType::XUSHTC11MWR, _TXT("XUSHTC11MWR") },
154
+ { JsonData::DeviceInfo::ModelidData::SkuType::XUSPTC11MWR, _TXT("XUSPTC11MWR") },
155
+ { JsonData::DeviceInfo::ModelidData::SkuType::XUSHTB11MWR, _TXT("XUSHTB11MWR") },
156
+ { JsonData::DeviceInfo::ModelidData::SkuType::PITU11MWR, _TXT("PITU11MWR") },
157
+ ENUM_CONVERSION_END(JsonData::DeviceInfo::ModelidData::SkuType)
158
+
159
+ ENUM_CONVERSION_BEGIN(JsonData::DeviceInfo::DevicetypeData::DevicetypeType)
160
+ { JsonData::DeviceInfo::DevicetypeData::DevicetypeType::TV, _TXT("tv") },
161
+ { JsonData::DeviceInfo::DevicetypeData::DevicetypeType::IPSTB, _TXT("IpStb") },
162
+ { JsonData::DeviceInfo::DevicetypeData::DevicetypeType::QAMIPSTB, _TXT("QamIpStb") },
163
+ { JsonData::DeviceInfo::DevicetypeData::DevicetypeType::HYBRID, _TXT("hybrid") },
164
+ { JsonData::DeviceInfo::DevicetypeData::DevicetypeType::MEDIACLIENT, _TXT("mediaclient") },
165
+ ENUM_CONVERSION_END(JsonData::DeviceInfo::DevicetypeData::DevicetypeType)
166
+
167
+ ENUM_CONVERSION_BEGIN(JsonData::DeviceInfo::DistributoridData::DistributoridType)
168
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::COMCAST, _TXT("comcast") },
169
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::XGLOBAL, _TXT("xglobal") },
170
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::SKY_DE, _TXT("sky-de") },
171
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::SKY_ITALIA, _TXT("sky-italia") },
172
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::SKY_UK, _TXT("sky-uk") },
173
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::SKY_UK_DEV, _TXT("sky-uk-dev") },
174
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::SKY_DEU, _TXT("sky-deu") },
175
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::SKY_DEU_DEV, _TXT("sky-deu-dev") },
176
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::SKY_IT, _TXT("sky-it") },
177
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::SKY_IT_DEV, _TXT("sky-it-dev") },
178
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::COX, _TXT("cox") },
179
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::COX_HOSPITALITY, _TXT("cox-hospitality") },
180
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::COX_DEV, _TXT("cox-dev") },
181
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::COX_QA, _TXT("cox-qa") },
182
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::MIT, _TXT("MIT") },
183
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::SHAW, _TXT("shaw") },
184
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::SHAW_DEV, _TXT("shaw-dev") },
185
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::ROGERS, _TXT("rogers") },
186
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::ROGERS_DEV, _TXT("rogers-dev") },
187
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::VIDEOTRON, _TXT("videotron") },
188
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::CHARTER, _TXT("charter") },
189
+ { JsonData::DeviceInfo::DistributoridData::DistributoridType::CHARTER_DEV, _TXT("charter-dev") },
190
+ ENUM_CONVERSION_END(JsonData::DeviceInfo::DistributoridData::DistributoridType)
191
+
192
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_DisplayInfo.cpp ADDED
@@ -0,0 +1,25 @@
1
+ // Enumeration code for Display Info API.
2
+ // Generated automatically from 'DisplayInfo.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_DisplayInfo.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::DisplayInfo::DisplayinfoData::HdcpprotectionType)
12
+ { JsonData::DisplayInfo::DisplayinfoData::HdcpprotectionType::UNENCRYPTED, _TXT("Unencrypted") },
13
+ { JsonData::DisplayInfo::DisplayinfoData::HdcpprotectionType::HDCP1X, _TXT("HDCP1x") },
14
+ { JsonData::DisplayInfo::DisplayinfoData::HdcpprotectionType::HDCP2X, _TXT("HDCP2x") },
15
+ ENUM_CONVERSION_END(JsonData::DisplayInfo::DisplayinfoData::HdcpprotectionType)
16
+
17
+ ENUM_CONVERSION_BEGIN(JsonData::DisplayInfo::DisplayinfoData::HdrtypeType)
18
+ { JsonData::DisplayInfo::DisplayinfoData::HdrtypeType::HDROFF, _TXT("HDROff") },
19
+ { JsonData::DisplayInfo::DisplayinfoData::HdrtypeType::HDR10, _TXT("HDR10") },
20
+ { JsonData::DisplayInfo::DisplayinfoData::HdrtypeType::HDR10PLUS, _TXT("HDR10Plus") },
21
+ { JsonData::DisplayInfo::DisplayinfoData::HdrtypeType::HDRDOLBYVISION, _TXT("HDRDolbyVision") },
22
+ { JsonData::DisplayInfo::DisplayinfoData::HdrtypeType::HDRTECHNICOLOR, _TXT("HDRTechnicolor") },
23
+ ENUM_CONVERSION_END(JsonData::DisplayInfo::DisplayinfoData::HdrtypeType)
24
+
25
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_DisplayProperties.cpp ADDED
@@ -0,0 +1,73 @@
1
+ // Enumeration code for DisplayProperties API.
2
+ // Generated automatically from 'IDisplayInfo.h'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include <interfaces/IDisplayInfo.h>
8
+ #include "JsonData_DisplayProperties.h"
9
+
10
+ namespace WPEFramework {
11
+
12
+ ENUM_CONVERSION_BEGIN(Exchange::IDisplayProperties::ColourSpaceType)
13
+ { Exchange::IDisplayProperties::ColourSpaceType::FORMAT_UNKNOWN, _TXT("FormatUnknown") },
14
+ { Exchange::IDisplayProperties::ColourSpaceType::FORMAT_OTHER, _TXT("FormatOther") },
15
+ { Exchange::IDisplayProperties::ColourSpaceType::FORMAT_RGB_444, _TXT("FormatRgb444") },
16
+ { Exchange::IDisplayProperties::ColourSpaceType::FORMAT_YCBCR_444, _TXT("FormatYcbcr444") },
17
+ { Exchange::IDisplayProperties::ColourSpaceType::FORMAT_YCBCR_422, _TXT("FormatYcbcr422") },
18
+ { Exchange::IDisplayProperties::ColourSpaceType::FORMAT_YCBCR_420, _TXT("FormatYcbcr420") },
19
+ ENUM_CONVERSION_END(Exchange::IDisplayProperties::ColourSpaceType)
20
+
21
+ ENUM_CONVERSION_BEGIN(Exchange::IDisplayProperties::FrameRateType)
22
+ { Exchange::IDisplayProperties::FrameRateType::FRAMERATE_UNKNOWN, _TXT("FramerateUnknown") },
23
+ { Exchange::IDisplayProperties::FrameRateType::FRAMERATE_23_976, _TXT("Framerate23976") },
24
+ { Exchange::IDisplayProperties::FrameRateType::FRAMERATE_24, _TXT("Framerate24") },
25
+ { Exchange::IDisplayProperties::FrameRateType::FRAMERATE_25, _TXT("Framerate25") },
26
+ { Exchange::IDisplayProperties::FrameRateType::FRAMERATE_29_97, _TXT("Framerate2997") },
27
+ { Exchange::IDisplayProperties::FrameRateType::FRAMERATE_30, _TXT("Framerate30") },
28
+ { Exchange::IDisplayProperties::FrameRateType::FRAMERATE_47_952, _TXT("Framerate47952") },
29
+ { Exchange::IDisplayProperties::FrameRateType::FRAMERATE_48, _TXT("Framerate48") },
30
+ { Exchange::IDisplayProperties::FrameRateType::FRAMERATE_50, _TXT("Framerate50") },
31
+ { Exchange::IDisplayProperties::FrameRateType::FRAMERATE_59_94, _TXT("Framerate5994") },
32
+ { Exchange::IDisplayProperties::FrameRateType::FRAMERATE_60, _TXT("Framerate60") },
33
+ { Exchange::IDisplayProperties::FrameRateType::FRAMERATE_119_88, _TXT("Framerate11988") },
34
+ { Exchange::IDisplayProperties::FrameRateType::FRAMERATE_120, _TXT("Framerate120") },
35
+ { Exchange::IDisplayProperties::FrameRateType::FRAMERATE_144, _TXT("Framerate144") },
36
+ ENUM_CONVERSION_END(Exchange::IDisplayProperties::FrameRateType)
37
+
38
+ ENUM_CONVERSION_BEGIN(Exchange::IDisplayProperties::ColourDepthType)
39
+ { Exchange::IDisplayProperties::ColourDepthType::COLORDEPTH_UNKNOWN, _TXT("ColordepthUnknown") },
40
+ { Exchange::IDisplayProperties::ColourDepthType::COLORDEPTH_8_BIT, _TXT("Colordepth8Bit") },
41
+ { Exchange::IDisplayProperties::ColourDepthType::COLORDEPTH_10_BIT, _TXT("Colordepth10Bit") },
42
+ { Exchange::IDisplayProperties::ColourDepthType::COLORDEPTH_12_BIT, _TXT("Colordepth12Bit") },
43
+ ENUM_CONVERSION_END(Exchange::IDisplayProperties::ColourDepthType)
44
+
45
+ ENUM_CONVERSION_BEGIN(Exchange::IDisplayProperties::ColorimetryType)
46
+ { Exchange::IDisplayProperties::ColorimetryType::COLORIMETRY_UNKNOWN, _TXT("ColorimetryUnknown") },
47
+ { Exchange::IDisplayProperties::ColorimetryType::COLORIMETRY_OTHER, _TXT("ColorimetryOther") },
48
+ { Exchange::IDisplayProperties::ColorimetryType::COLORIMETRY_SMPTE170M, _TXT("ColorimetrySmpte170m") },
49
+ { Exchange::IDisplayProperties::ColorimetryType::COLORIMETRY_BT709, _TXT("ColorimetryBt709") },
50
+ { Exchange::IDisplayProperties::ColorimetryType::COLORIMETRY_XVYCC601, _TXT("ColorimetryXvycc601") },
51
+ { Exchange::IDisplayProperties::ColorimetryType::COLORIMETRY_XVYCC709, _TXT("ColorimetryXvycc709") },
52
+ { Exchange::IDisplayProperties::ColorimetryType::COLORIMETRY_SYCC601, _TXT("ColorimetrySycc601") },
53
+ { Exchange::IDisplayProperties::ColorimetryType::COLORIMETRY_OPYCC601, _TXT("ColorimetryOpycc601") },
54
+ { Exchange::IDisplayProperties::ColorimetryType::COLORIMETRY_OPRGB, _TXT("ColorimetryOprgb") },
55
+ { Exchange::IDisplayProperties::ColorimetryType::COLORIMETRY_BT2020YCCBCBRC, _TXT("ColorimetryBt2020yccbcbrc") },
56
+ { Exchange::IDisplayProperties::ColorimetryType::COLORIMETRY_BT2020RGB_YCBCR, _TXT("ColorimetryBt2020rgbYcbcr") },
57
+ ENUM_CONVERSION_END(Exchange::IDisplayProperties::ColorimetryType)
58
+
59
+ ENUM_CONVERSION_BEGIN(Exchange::IDisplayProperties::QuantizationRangeType)
60
+ { Exchange::IDisplayProperties::QuantizationRangeType::QUANTIZATIONRANGE_UNKNOWN, _TXT("QuantizationrangeUnknown") },
61
+ { Exchange::IDisplayProperties::QuantizationRangeType::QUANTIZATIONRANGE_LIMITED, _TXT("QuantizationrangeLimited") },
62
+ { Exchange::IDisplayProperties::QuantizationRangeType::QUANTIZATIONRANGE_FULL, _TXT("QuantizationrangeFull") },
63
+ ENUM_CONVERSION_END(Exchange::IDisplayProperties::QuantizationRangeType)
64
+
65
+ ENUM_CONVERSION_BEGIN(Exchange::IDisplayProperties::EotfType)
66
+ { Exchange::IDisplayProperties::EotfType::EOTF_UNKNOWN, _TXT("EotfUnknown") },
67
+ { Exchange::IDisplayProperties::EotfType::EOTF_OTHER, _TXT("EotfOther") },
68
+ { Exchange::IDisplayProperties::EotfType::EOTF_BT1886, _TXT("EotfBt1886") },
69
+ { Exchange::IDisplayProperties::EotfType::EOTF_BT2100, _TXT("EotfBt2100") },
70
+ { Exchange::IDisplayProperties::EotfType::EOTF_SMPTE_ST_2084, _TXT("EotfSmpteSt2084") },
71
+ ENUM_CONVERSION_END(Exchange::IDisplayProperties::EotfType)
72
+
73
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_DolbyOutput.cpp ADDED
@@ -0,0 +1,32 @@
1
+ // Enumeration code for Output API.
2
+ // Generated automatically from 'IDolby.h'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include <interfaces/IDolby.h>
8
+ #include "JsonData_DolbyOutput.h"
9
+
10
+ namespace WPEFramework {
11
+
12
+ ENUM_CONVERSION_BEGIN(Exchange::Dolby::IOutput::SoundModes)
13
+ { Exchange::Dolby::IOutput::SoundModes::UNKNOWN, _TXT("Unknown") },
14
+ { Exchange::Dolby::IOutput::SoundModes::MONO, _TXT("Mono") },
15
+ { Exchange::Dolby::IOutput::SoundModes::STEREO, _TXT("Stereo") },
16
+ { Exchange::Dolby::IOutput::SoundModes::SURROUND, _TXT("Surround") },
17
+ { Exchange::Dolby::IOutput::SoundModes::PASSTHRU, _TXT("Passthru") },
18
+ { Exchange::Dolby::IOutput::SoundModes::DOLBYDIGITAL, _TXT("Dolbydigital") },
19
+ { Exchange::Dolby::IOutput::SoundModes::DOLBYDIGITALPLUS, _TXT("Dolbydigitalplus") },
20
+ { Exchange::Dolby::IOutput::SoundModes::SOUNDMODE_AUTO, _TXT("SoundmodeAuto") },
21
+ ENUM_CONVERSION_END(Exchange::Dolby::IOutput::SoundModes)
22
+
23
+ ENUM_CONVERSION_BEGIN(Exchange::Dolby::IOutput::Type)
24
+ { Exchange::Dolby::IOutput::Type::DIGITAL_PCM, _TXT("DigitalPcm") },
25
+ { Exchange::Dolby::IOutput::Type::DIGITAL_PLUS, _TXT("DigitalPlus") },
26
+ { Exchange::Dolby::IOutput::Type::DIGITAL_AC3, _TXT("DigitalAc3") },
27
+ { Exchange::Dolby::IOutput::Type::AUTO, _TXT("Auto") },
28
+ { Exchange::Dolby::IOutput::Type::DIGITAL_PASSTHROUGH, _TXT("DigitalPassthrough") },
29
+ { Exchange::Dolby::IOutput::Type::MS12, _TXT("Ms12") },
30
+ ENUM_CONVERSION_END(Exchange::Dolby::IOutput::Type)
31
+
32
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_FirmwareControl.cpp ADDED
@@ -0,0 +1,47 @@
1
+ // Enumeration code for Firmware Control API.
2
+ // Generated automatically from 'FirmwareControl.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_FirmwareControl.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::FirmwareControl::UpgradeParamsData::TypeType)
12
+ { JsonData::FirmwareControl::UpgradeParamsData::TypeType::CDL, _TXT("CDL") },
13
+ { JsonData::FirmwareControl::UpgradeParamsData::TypeType::RCDL, _TXT("RCDL") },
14
+ ENUM_CONVERSION_END(JsonData::FirmwareControl::UpgradeParamsData::TypeType)
15
+
16
+ ENUM_CONVERSION_BEGIN(JsonData::FirmwareControl::StatusType)
17
+ { JsonData::FirmwareControl::StatusType::NONE, _TXT("none") },
18
+ { JsonData::FirmwareControl::StatusType::UPGRADESTARTED, _TXT("upgradestarted") },
19
+ { JsonData::FirmwareControl::StatusType::DOWNLOADSTARTED, _TXT("downloadstarted") },
20
+ { JsonData::FirmwareControl::StatusType::DOWNLOADABORTED, _TXT("downloadaborted") },
21
+ { JsonData::FirmwareControl::StatusType::DOWNLOADCOMPLETED, _TXT("downloadcompleted") },
22
+ { JsonData::FirmwareControl::StatusType::INSTALLINITIATED, _TXT("installinitiated") },
23
+ { JsonData::FirmwareControl::StatusType::INSTALLNOTSTARTED, _TXT("installnotstarted") },
24
+ { JsonData::FirmwareControl::StatusType::INSTALLABORTED, _TXT("installaborted") },
25
+ { JsonData::FirmwareControl::StatusType::INSTALLSTARTED, _TXT("installstarted") },
26
+ { JsonData::FirmwareControl::StatusType::UPGRADECOMPLETED, _TXT("upgradecompleted") },
27
+ { JsonData::FirmwareControl::StatusType::UPGRADECANCELLED, _TXT("upgradecancelled") },
28
+ ENUM_CONVERSION_END(JsonData::FirmwareControl::StatusType)
29
+
30
+ ENUM_CONVERSION_BEGIN(JsonData::FirmwareControl::UpgradeprogressParamsData::ErrorType)
31
+ { JsonData::FirmwareControl::UpgradeprogressParamsData::ErrorType::NONE, _TXT("none") },
32
+ { JsonData::FirmwareControl::UpgradeprogressParamsData::ErrorType::GENERIC, _TXT("generic") },
33
+ { JsonData::FirmwareControl::UpgradeprogressParamsData::ErrorType::INVALIDPARAMETERS, _TXT("invalidparameters") },
34
+ { JsonData::FirmwareControl::UpgradeprogressParamsData::ErrorType::INVALIDSTATE, _TXT("invalidstate") },
35
+ { JsonData::FirmwareControl::UpgradeprogressParamsData::ErrorType::NOENOUGHSPACE, _TXT("noenoughspace") },
36
+ { JsonData::FirmwareControl::UpgradeprogressParamsData::ErrorType::OPERATIONOTSUPPORTED, _TXT("operationotsupported") },
37
+ { JsonData::FirmwareControl::UpgradeprogressParamsData::ErrorType::INCORRECTHASH, _TXT("incorrecthash") },
38
+ { JsonData::FirmwareControl::UpgradeprogressParamsData::ErrorType::UNAUTHENTICATED, _TXT("unauthenticated") },
39
+ { JsonData::FirmwareControl::UpgradeprogressParamsData::ErrorType::UNAVAILABLE, _TXT("unavailable") },
40
+ { JsonData::FirmwareControl::UpgradeprogressParamsData::ErrorType::TIMEDOUT, _TXT("timedout") },
41
+ { JsonData::FirmwareControl::UpgradeprogressParamsData::ErrorType::DOWNLOADDIRECTORYNOTEXIST, _TXT("downloaddirectorynotexist") },
42
+ { JsonData::FirmwareControl::UpgradeprogressParamsData::ErrorType::RESUMENOTSUPPORTED, _TXT("resumenotsupported") },
43
+ { JsonData::FirmwareControl::UpgradeprogressParamsData::ErrorType::INVALIDRANGE, _TXT("invalidrange") },
44
+ { JsonData::FirmwareControl::UpgradeprogressParamsData::ErrorType::UNKOWN, _TXT("unkown") },
45
+ ENUM_CONVERSION_END(JsonData::FirmwareControl::UpgradeprogressParamsData::ErrorType)
46
+
47
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_HDRProperties.cpp ADDED
@@ -0,0 +1,21 @@
1
+ // Enumeration code for HDRProperties API.
2
+ // Generated automatically from 'IDisplayInfo.h'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include <interfaces/IDisplayInfo.h>
8
+ #include "JsonData_HDRProperties.h"
9
+
10
+ namespace WPEFramework {
11
+
12
+ ENUM_CONVERSION_BEGIN(Exchange::IHDRProperties::HDRType)
13
+ { Exchange::IHDRProperties::HDRType::HDR_OFF, _TXT("HdrOff") },
14
+ { Exchange::IHDRProperties::HDRType::HDR_10, _TXT("Hdr10") },
15
+ { Exchange::IHDRProperties::HDRType::HDR_10PLUS, _TXT("Hdr10plus") },
16
+ { Exchange::IHDRProperties::HDRType::HDR_HLG, _TXT("HdrHlg") },
17
+ { Exchange::IHDRProperties::HDRType::HDR_DOLBYVISION, _TXT("HdrDolbyvision") },
18
+ { Exchange::IHDRProperties::HDRType::HDR_TECHNICOLOR, _TXT("HdrTechnicolor") },
19
+ ENUM_CONVERSION_END(Exchange::IHDRProperties::HDRType)
20
+
21
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_MessageControl.cpp ADDED
@@ -0,0 +1,20 @@
1
+ // Enumeration code for MessageControl API.
2
+ // Generated automatically from 'IMessageControl.h'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include <interfaces/IMessageControl.h>
8
+ #include "JsonData_MessageControl.h"
9
+
10
+ namespace WPEFramework {
11
+
12
+ ENUM_CONVERSION_BEGIN(Exchange::IMessageControl::messagetype)
13
+ { Exchange::IMessageControl::messagetype::TRACING, _TXT("Tracing") },
14
+ { Exchange::IMessageControl::messagetype::LOGGING, _TXT("Logging") },
15
+ { Exchange::IMessageControl::messagetype::REPORTING, _TXT("Reporting") },
16
+ { Exchange::IMessageControl::messagetype::STANDARD_OUT, _TXT("StandardOut") },
17
+ { Exchange::IMessageControl::messagetype::STANDARD_ERROR, _TXT("StandardError") },
18
+ ENUM_CONVERSION_END(Exchange::IMessageControl::messagetype)
19
+
20
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_Messenger.cpp ADDED
@@ -0,0 +1,26 @@
1
+ // Enumeration code for Messenger API.
2
+ // Generated automatically from 'Messenger.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_Messenger.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::Messenger::SecureType)
12
+ { JsonData::Messenger::SecureType::INSECURE, _TXT("insecure") },
13
+ { JsonData::Messenger::SecureType::SECURE, _TXT("secure") },
14
+ ENUM_CONVERSION_END(JsonData::Messenger::SecureType)
15
+
16
+ ENUM_CONVERSION_BEGIN(JsonData::Messenger::RoomupdateParamsData::ActionType)
17
+ { JsonData::Messenger::RoomupdateParamsData::ActionType::CREATED, _TXT("created") },
18
+ { JsonData::Messenger::RoomupdateParamsData::ActionType::DESTROYED, _TXT("destroyed") },
19
+ ENUM_CONVERSION_END(JsonData::Messenger::RoomupdateParamsData::ActionType)
20
+
21
+ ENUM_CONVERSION_BEGIN(JsonData::Messenger::UserupdateParamsData::ActionType)
22
+ { JsonData::Messenger::UserupdateParamsData::ActionType::JOINED, _TXT("joined") },
23
+ { JsonData::Messenger::UserupdateParamsData::ActionType::LEFT, _TXT("left") },
24
+ ENUM_CONVERSION_END(JsonData::Messenger::UserupdateParamsData::ActionType)
25
+
26
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_Netflix.cpp ADDED
@@ -0,0 +1,16 @@
1
+ // Enumeration code for Netflix API.
2
+ // Generated automatically from 'Netflix.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_Netflix.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::Netflix::VisibilityType)
12
+ { JsonData::Netflix::VisibilityType::VISIBLE, _TXT("visible") },
13
+ { JsonData::Netflix::VisibilityType::HIDDEN, _TXT("hidden") },
14
+ ENUM_CONVERSION_END(JsonData::Netflix::VisibilityType)
15
+
16
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_NetworkControl.cpp ADDED
@@ -0,0 +1,22 @@
1
+ // Enumeration code for NetworkControl API.
2
+ // Generated automatically from 'INetworkControl.h'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include <interfaces/INetworkControl.h>
8
+ #include "JsonData_NetworkControl.h"
9
+
10
+ namespace WPEFramework {
11
+
12
+ ENUM_CONVERSION_BEGIN(Exchange::INetworkControl::StatusType)
13
+ { Exchange::INetworkControl::StatusType::UNAVAILABLE, _TXT("Unavailable") },
14
+ { Exchange::INetworkControl::StatusType::AVAILABLE, _TXT("Available") },
15
+ ENUM_CONVERSION_END(Exchange::INetworkControl::StatusType)
16
+
17
+ ENUM_CONVERSION_BEGIN(Exchange::INetworkControl::ModeType)
18
+ { Exchange::INetworkControl::ModeType::STATIC, _TXT("Static") },
19
+ { Exchange::INetworkControl::ModeType::DYNAMIC, _TXT("Dynamic") },
20
+ ENUM_CONVERSION_END(Exchange::INetworkControl::ModeType)
21
+
22
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_OCDM.cpp ADDED
@@ -0,0 +1,17 @@
1
+ // Enumeration code for OpenCDMi API.
2
+ // Generated automatically from 'OCDM.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_OCDM.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::OCDM::DrminitializationstatusParamsData::StatusType)
12
+ { JsonData::OCDM::DrminitializationstatusParamsData::StatusType::BUSY, _TXT("BUSY") },
13
+ { JsonData::OCDM::DrminitializationstatusParamsData::StatusType::SUCCESS, _TXT("SUCCESS") },
14
+ { JsonData::OCDM::DrminitializationstatusParamsData::StatusType::FAILED, _TXT("FAILED") },
15
+ ENUM_CONVERSION_END(JsonData::OCDM::DrminitializationstatusParamsData::StatusType)
16
+
17
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_PersistentStore.cpp ADDED
@@ -0,0 +1,16 @@
1
+ // Enumeration code for PertsistentStore API.
2
+ // Generated automatically from 'PersistentStore.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_PersistentStore.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::PersistentStore::ScopeType)
12
+ { JsonData::PersistentStore::ScopeType::DEVICE, _TXT("device") },
13
+ { JsonData::PersistentStore::ScopeType::ACCOUNT, _TXT("account") },
14
+ ENUM_CONVERSION_END(JsonData::PersistentStore::ScopeType)
15
+
16
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_PlayerInfo.cpp ADDED
@@ -0,0 +1,45 @@
1
+ // Enumeration code for Player Info API.
2
+ // Generated automatically from 'PlayerInfo.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_PlayerInfo.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::PlayerInfo::CodecsData::AudiocodecsType)
12
+ { JsonData::PlayerInfo::CodecsData::AudiocodecsType::UNDEFINED, _TXT("Undefined") },
13
+ { JsonData::PlayerInfo::CodecsData::AudiocodecsType::AAC, _TXT("AAC") },
14
+ { JsonData::PlayerInfo::CodecsData::AudiocodecsType::AC3, _TXT("AC3") },
15
+ { JsonData::PlayerInfo::CodecsData::AudiocodecsType::AC3PLUS, _TXT("AC3Plus") },
16
+ { JsonData::PlayerInfo::CodecsData::AudiocodecsType::DTS, _TXT("DTS") },
17
+ { JsonData::PlayerInfo::CodecsData::AudiocodecsType::MPEG1, _TXT("MPEG1") },
18
+ { JsonData::PlayerInfo::CodecsData::AudiocodecsType::MPEG2, _TXT("MPEG2") },
19
+ { JsonData::PlayerInfo::CodecsData::AudiocodecsType::MPEG3, _TXT("MPEG3") },
20
+ { JsonData::PlayerInfo::CodecsData::AudiocodecsType::MPEG4, _TXT("MPEG4") },
21
+ { JsonData::PlayerInfo::CodecsData::AudiocodecsType::OPUS, _TXT("OPUS") },
22
+ { JsonData::PlayerInfo::CodecsData::AudiocodecsType::VORBISOGG, _TXT("VorbisOGG") },
23
+ { JsonData::PlayerInfo::CodecsData::AudiocodecsType::WAV, _TXT("WAV") },
24
+ ENUM_CONVERSION_END(JsonData::PlayerInfo::CodecsData::AudiocodecsType)
25
+
26
+ ENUM_CONVERSION_BEGIN(JsonData::PlayerInfo::CodecsData::VideocodecsType)
27
+ { JsonData::PlayerInfo::CodecsData::VideocodecsType::UNDEFINED, _TXT("Undefined") },
28
+ { JsonData::PlayerInfo::CodecsData::VideocodecsType::H263, _TXT("H263") },
29
+ { JsonData::PlayerInfo::CodecsData::VideocodecsType::H264, _TXT("H264") },
30
+ { JsonData::PlayerInfo::CodecsData::VideocodecsType::H265, _TXT("H265") },
31
+ { JsonData::PlayerInfo::CodecsData::VideocodecsType::H26510, _TXT("H26510") },
32
+ { JsonData::PlayerInfo::CodecsData::VideocodecsType::MPEG, _TXT("MPEG") },
33
+ { JsonData::PlayerInfo::CodecsData::VideocodecsType::VP8, _TXT("VP8") },
34
+ { JsonData::PlayerInfo::CodecsData::VideocodecsType::VP9, _TXT("VP9") },
35
+ { JsonData::PlayerInfo::CodecsData::VideocodecsType::VP10, _TXT("VP10") },
36
+ ENUM_CONVERSION_END(JsonData::PlayerInfo::CodecsData::VideocodecsType)
37
+
38
+ ENUM_CONVERSION_BEGIN(JsonData::PlayerInfo::DolbymodeData::DolbyType)
39
+ { JsonData::PlayerInfo::DolbymodeData::DolbyType::DIGITAL_PCM, _TXT("DIGITAL_PCM") },
40
+ { JsonData::PlayerInfo::DolbymodeData::DolbyType::DIGITAL_PLUS, _TXT("DIGITAL_PLUS") },
41
+ { JsonData::PlayerInfo::DolbymodeData::DolbyType::DIGITAL_AC3, _TXT("DIGITAL_AC3") },
42
+ { JsonData::PlayerInfo::DolbymodeData::DolbyType::AUTO, _TXT("AUTO") },
43
+ ENUM_CONVERSION_END(JsonData::PlayerInfo::DolbymodeData::DolbyType)
44
+
45
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_PlayerProperties.cpp ADDED
@@ -0,0 +1,87 @@
1
+ // Enumeration code for PlayerProperties API.
2
+ // Generated automatically from 'IPlayerInfo.h'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include <interfaces/IPlayerInfo.h>
8
+ #include "JsonData_PlayerProperties.h"
9
+
10
+ namespace WPEFramework {
11
+
12
+ ENUM_CONVERSION_BEGIN(Exchange::IPlayerProperties::AudioCodec)
13
+ { Exchange::IPlayerProperties::AudioCodec::AUDIO_UNDEFINED, _TXT("AudioUndefined") },
14
+ { Exchange::IPlayerProperties::AudioCodec::AUDIO_AAC, _TXT("AudioAac") },
15
+ { Exchange::IPlayerProperties::AudioCodec::AUDIO_AC3, _TXT("AudioAc3") },
16
+ { Exchange::IPlayerProperties::AudioCodec::AUDIO_AC3_PLUS, _TXT("AudioAc3Plus") },
17
+ { Exchange::IPlayerProperties::AudioCodec::AUDIO_DTS, _TXT("AudioDts") },
18
+ { Exchange::IPlayerProperties::AudioCodec::AUDIO_MPEG1, _TXT("AudioMpeg1") },
19
+ { Exchange::IPlayerProperties::AudioCodec::AUDIO_MPEG2, _TXT("AudioMpeg2") },
20
+ { Exchange::IPlayerProperties::AudioCodec::AUDIO_MPEG3, _TXT("AudioMpeg3") },
21
+ { Exchange::IPlayerProperties::AudioCodec::AUDIO_MPEG4, _TXT("AudioMpeg4") },
22
+ { Exchange::IPlayerProperties::AudioCodec::AUDIO_OPUS, _TXT("AudioOpus") },
23
+ { Exchange::IPlayerProperties::AudioCodec::AUDIO_VORBIS_OGG, _TXT("AudioVorbisOgg") },
24
+ { Exchange::IPlayerProperties::AudioCodec::AUDIO_WAV, _TXT("AudioWav") },
25
+ ENUM_CONVERSION_END(Exchange::IPlayerProperties::AudioCodec)
26
+
27
+ ENUM_CONVERSION_BEGIN(Exchange::IPlayerProperties::VideoCodec)
28
+ { Exchange::IPlayerProperties::VideoCodec::VIDEO_UNDEFINED, _TXT("VideoUndefined") },
29
+ { Exchange::IPlayerProperties::VideoCodec::VIDEO_H263, _TXT("VideoH263") },
30
+ { Exchange::IPlayerProperties::VideoCodec::VIDEO_H264, _TXT("VideoH264") },
31
+ { Exchange::IPlayerProperties::VideoCodec::VIDEO_H265, _TXT("VideoH265") },
32
+ { Exchange::IPlayerProperties::VideoCodec::VIDEO_H265_10, _TXT("VideoH26510") },
33
+ { Exchange::IPlayerProperties::VideoCodec::VIDEO_MPEG, _TXT("VideoMpeg") },
34
+ { Exchange::IPlayerProperties::VideoCodec::VIDEO_MPEG2, _TXT("VideoMpeg2") },
35
+ { Exchange::IPlayerProperties::VideoCodec::VIDEO_MPEG4, _TXT("VideoMpeg4") },
36
+ { Exchange::IPlayerProperties::VideoCodec::VIDEO_VP8, _TXT("VideoVp8") },
37
+ { Exchange::IPlayerProperties::VideoCodec::VIDEO_VP9, _TXT("VideoVp9") },
38
+ { Exchange::IPlayerProperties::VideoCodec::VIDEO_VP10, _TXT("VideoVp10") },
39
+ { Exchange::IPlayerProperties::VideoCodec::VIDEO_AV1, _TXT("VideoAv1") },
40
+ ENUM_CONVERSION_END(Exchange::IPlayerProperties::VideoCodec)
41
+
42
+ ENUM_CONVERSION_BEGIN(Exchange::IPlayerProperties::PlaybackResolution)
43
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_UNKNOWN, _TXT("ResolutionUnknown") },
44
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_480I24, _TXT("Resolution480i24") },
45
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_480I25, _TXT("Resolution480i25") },
46
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_480I30, _TXT("Resolution480i30") },
47
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_480I50, _TXT("Resolution480i50") },
48
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_480I, _TXT("Resolution480i") },
49
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_480P24, _TXT("Resolution480p24") },
50
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_480P25, _TXT("Resolution480p25") },
51
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_480P30, _TXT("Resolution480p30") },
52
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_480P50, _TXT("Resolution480p50") },
53
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_480P, _TXT("Resolution480p") },
54
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_576I24, _TXT("Resolution576i24") },
55
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_576I25, _TXT("Resolution576i25") },
56
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_576I30, _TXT("Resolution576i30") },
57
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_576I50, _TXT("Resolution576i50") },
58
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_576I, _TXT("Resolution576i") },
59
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_576P24, _TXT("Resolution576p24") },
60
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_576P25, _TXT("Resolution576p25") },
61
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_576P30, _TXT("Resolution576p30") },
62
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_576P50, _TXT("Resolution576p50") },
63
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_576P, _TXT("Resolution576p") },
64
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_720P24, _TXT("Resolution720p24") },
65
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_720P25, _TXT("Resolution720p25") },
66
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_720P30, _TXT("Resolution720p30") },
67
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_720P50, _TXT("Resolution720p50") },
68
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_720P, _TXT("Resolution720p") },
69
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_1080I24, _TXT("Resolution1080i24") },
70
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_1080I25, _TXT("Resolution1080i25") },
71
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_1080I30, _TXT("Resolution1080i30") },
72
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_1080I50, _TXT("Resolution1080i50") },
73
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_1080I, _TXT("Resolution1080i") },
74
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_1080P24, _TXT("Resolution1080p24") },
75
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_1080P25, _TXT("Resolution1080p25") },
76
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_1080P30, _TXT("Resolution1080p30") },
77
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_1080P50, _TXT("Resolution1080p50") },
78
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_1080P, _TXT("Resolution1080p") },
79
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_2160P24, _TXT("Resolution2160p24") },
80
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_2160P25, _TXT("Resolution2160p25") },
81
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_2160P30, _TXT("Resolution2160p30") },
82
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_2160P50, _TXT("Resolution2160p50") },
83
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_2160P60, _TXT("Resolution2160p60") },
84
+ { Exchange::IPlayerProperties::PlaybackResolution::RESOLUTION_2160P, _TXT("Resolution2160p") },
85
+ ENUM_CONVERSION_END(Exchange::IPlayerProperties::PlaybackResolution)
86
+
87
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_Power.cpp ADDED
@@ -0,0 +1,20 @@
1
+ // Enumeration code for Power API.
2
+ // Generated automatically from 'Power.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_Power.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::Power::StateType)
12
+ { JsonData::Power::StateType::ON, _TXT("on") },
13
+ { JsonData::Power::StateType::ACTIVESTANDBY, _TXT("activestandby") },
14
+ { JsonData::Power::StateType::PASSIVESTANDBY, _TXT("passivestandby") },
15
+ { JsonData::Power::StateType::SUSPENDTORAM, _TXT("suspendtoram") },
16
+ { JsonData::Power::StateType::HIBERNATE, _TXT("hibernate") },
17
+ { JsonData::Power::StateType::POWEROFF, _TXT("poweroff") },
18
+ ENUM_CONVERSION_END(JsonData::Power::StateType)
19
+
20
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_RemoteControl.cpp ADDED
@@ -0,0 +1,20 @@
1
+ // Enumeration code for Remote Control API.
2
+ // Generated automatically from 'RemoteControl.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_RemoteControl.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::RemoteControl::ModifiersType)
12
+ { JsonData::RemoteControl::ModifiersType::LEFTSHIFT, _TXT("leftshift") },
13
+ { JsonData::RemoteControl::ModifiersType::RIGHTSHIFT, _TXT("rightshift") },
14
+ { JsonData::RemoteControl::ModifiersType::LEFTALT, _TXT("leftalt") },
15
+ { JsonData::RemoteControl::ModifiersType::RIGHTALT, _TXT("rightalt") },
16
+ { JsonData::RemoteControl::ModifiersType::LEFTCTRL, _TXT("leftctrl") },
17
+ { JsonData::RemoteControl::ModifiersType::RIGHTCTRL, _TXT("rightctrl") },
18
+ ENUM_CONVERSION_END(JsonData::RemoteControl::ModifiersType)
19
+
20
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_StateControl.cpp ADDED
@@ -0,0 +1,16 @@
1
+ // Enumeration code for StateControl API.
2
+ // Generated automatically from 'StateControl.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_StateControl.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::StateControl::StateType)
12
+ { JsonData::StateControl::StateType::RESUMED, _TXT("resumed") },
13
+ { JsonData::StateControl::StateType::SUSPENDED, _TXT("suspended") },
14
+ ENUM_CONVERSION_END(JsonData::StateControl::StateType)
15
+
16
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_Streamer.cpp ADDED
@@ -0,0 +1,48 @@
1
+ // Enumeration code for Streamer API.
2
+ // Generated automatically from 'Streamer.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_Streamer.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::Streamer::StreamType)
12
+ { JsonData::Streamer::StreamType::UNDEFINED, _TXT("undefined") },
13
+ { JsonData::Streamer::StreamType::CABLE, _TXT("cable") },
14
+ { JsonData::Streamer::StreamType::HANDHELD, _TXT("handheld") },
15
+ { JsonData::Streamer::StreamType::SATELLITE, _TXT("satellite") },
16
+ { JsonData::Streamer::StreamType::TERRESTRIAL, _TXT("terrestrial") },
17
+ { JsonData::Streamer::StreamType::DAB, _TXT("dab") },
18
+ { JsonData::Streamer::StreamType::RF, _TXT("rf") },
19
+ { JsonData::Streamer::StreamType::UNICAST, _TXT("unicast") },
20
+ { JsonData::Streamer::StreamType::MULTICAST, _TXT("multicast") },
21
+ { JsonData::Streamer::StreamType::IP, _TXT("ip") },
22
+ ENUM_CONVERSION_END(JsonData::Streamer::StreamType)
23
+
24
+ ENUM_CONVERSION_BEGIN(JsonData::Streamer::DrmType)
25
+ { JsonData::Streamer::DrmType::NONE, _TXT("none") },
26
+ { JsonData::Streamer::DrmType::CLEARKEY, _TXT("clearkey") },
27
+ { JsonData::Streamer::DrmType::PLAYREADY, _TXT("playready") },
28
+ { JsonData::Streamer::DrmType::WIDEVINE, _TXT("widevine") },
29
+ { JsonData::Streamer::DrmType::UNKNOWN, _TXT("unknown") },
30
+ ENUM_CONVERSION_END(JsonData::Streamer::DrmType)
31
+
32
+ ENUM_CONVERSION_BEGIN(JsonData::Streamer::StateType)
33
+ { JsonData::Streamer::StateType::IDLE, _TXT("idle") },
34
+ { JsonData::Streamer::StateType::LOADING, _TXT("loading") },
35
+ { JsonData::Streamer::StateType::PREPARED, _TXT("prepared") },
36
+ { JsonData::Streamer::StateType::CONTROLLED, _TXT("controlled") },
37
+ { JsonData::Streamer::StateType::ERROR, _TXT("error") },
38
+ ENUM_CONVERSION_END(JsonData::Streamer::StateType)
39
+
40
+ ENUM_CONVERSION_BEGIN(JsonData::Streamer::StreamelementData::ElementType)
41
+ { JsonData::Streamer::StreamelementData::ElementType::VIDEO, _TXT("video") },
42
+ { JsonData::Streamer::StreamelementData::ElementType::AUDIO, _TXT("audio") },
43
+ { JsonData::Streamer::StreamelementData::ElementType::SUBTITLES, _TXT("subtitles") },
44
+ { JsonData::Streamer::StreamelementData::ElementType::TELETEXT, _TXT("teletext") },
45
+ { JsonData::Streamer::StreamelementData::ElementType::DATA, _TXT("data") },
46
+ ENUM_CONVERSION_END(JsonData::Streamer::StreamelementData::ElementType)
47
+
48
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_SubsystemControl.cpp ADDED
@@ -0,0 +1,29 @@
1
+ // Enumeration code for Subsystem Control API.
2
+ // Generated automatically from 'SubsystemControl.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_SubsystemControl.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::SubsystemControl::SubsystemType)
12
+ { JsonData::SubsystemControl::SubsystemType::PLATFORM, _TXT("platform") },
13
+ { JsonData::SubsystemControl::SubsystemType::NETWORK, _TXT("network") },
14
+ { JsonData::SubsystemControl::SubsystemType::INTERNET, _TXT("internet") },
15
+ { JsonData::SubsystemControl::SubsystemType::TIME, _TXT("time") },
16
+ { JsonData::SubsystemControl::SubsystemType::SECURITY, _TXT("security") },
17
+ { JsonData::SubsystemControl::SubsystemType::LOCATION, _TXT("location") },
18
+ { JsonData::SubsystemControl::SubsystemType::IDENTIFIER, _TXT("identifier") },
19
+ { JsonData::SubsystemControl::SubsystemType::PROVISIONING, _TXT("provisioning") },
20
+ { JsonData::SubsystemControl::SubsystemType::DECRYPTION, _TXT("decryption") },
21
+ { JsonData::SubsystemControl::SubsystemType::BLUETOOTH, _TXT("bluetooth") },
22
+ { JsonData::SubsystemControl::SubsystemType::WEBSOURCE, _TXT("websource") },
23
+ { JsonData::SubsystemControl::SubsystemType::GRAPHICS, _TXT("graphics") },
24
+ { JsonData::SubsystemControl::SubsystemType::STREAMING, _TXT("streaming") },
25
+ { JsonData::SubsystemControl::SubsystemType::CRYPTOGRAPHY, _TXT("cryptography") },
26
+ { JsonData::SubsystemControl::SubsystemType::INSTALLATION, _TXT("installation") },
27
+ ENUM_CONVERSION_END(JsonData::SubsystemControl::SubsystemType)
28
+
29
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_TestUtility.cpp ADDED
@@ -0,0 +1,19 @@
1
+ // Enumeration code for Test Utility API.
2
+ // Generated automatically from 'TestUtility.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_TestUtility.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::TestUtility::TypeType)
12
+ { JsonData::TestUtility::TypeType::NUMBER, _TXT("Number") },
13
+ { JsonData::TestUtility::TypeType::STRING, _TXT("String") },
14
+ { JsonData::TestUtility::TypeType::BOOLEAN, _TXT("Boolean") },
15
+ { JsonData::TestUtility::TypeType::OBJECT, _TXT("Object") },
16
+ { JsonData::TestUtility::TypeType::SYMBOL, _TXT("Symbol") },
17
+ ENUM_CONVERSION_END(JsonData::TestUtility::TypeType)
18
+
19
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_TraceControl.cpp ADDED
@@ -0,0 +1,17 @@
1
+ // Enumeration code for Trace Control API.
2
+ // Generated automatically from 'TraceControl.json'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include "JsonData_TraceControl.h"
8
+
9
+ namespace WPEFramework {
10
+
11
+ ENUM_CONVERSION_BEGIN(JsonData::TraceControl::StateType)
12
+ { JsonData::TraceControl::StateType::ENABLED, _TXT("enabled") },
13
+ { JsonData::TraceControl::StateType::DISABLED, _TXT("disabled") },
14
+ { JsonData::TraceControl::StateType::TRISTATED, _TXT("tristated") },
15
+ ENUM_CONVERSION_END(JsonData::TraceControl::StateType)
16
+
17
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_WebBrowser.cpp ADDED
@@ -0,0 +1,24 @@
1
+ // Enumeration code for WebBrowser API.
2
+ // Generated automatically from 'IBrowser.h'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include <interfaces/IBrowser.h>
8
+ #include "JsonData_WebBrowser.h"
9
+
10
+ namespace WPEFramework {
11
+
12
+ ENUM_CONVERSION_BEGIN(Exchange::IWebBrowser::VisibilityType)
13
+ { Exchange::IWebBrowser::VisibilityType::HIDDEN, _TXT("hidden") },
14
+ { Exchange::IWebBrowser::VisibilityType::VISIBLE, _TXT("visible") },
15
+ ENUM_CONVERSION_END(Exchange::IWebBrowser::VisibilityType)
16
+
17
+ ENUM_CONVERSION_BEGIN(Exchange::IWebBrowser::HTTPCookieAcceptPolicyType)
18
+ { Exchange::IWebBrowser::HTTPCookieAcceptPolicyType::ALWAYS, _TXT("always") },
19
+ { Exchange::IWebBrowser::HTTPCookieAcceptPolicyType::NEVER, _TXT("never") },
20
+ { Exchange::IWebBrowser::HTTPCookieAcceptPolicyType::ONLY_FROM_MAIN_DOCUMENT_DOMAIN, _TXT("onlyfrommaindocumentdomain") },
21
+ { Exchange::IWebBrowser::HTTPCookieAcceptPolicyType::EXCLUSIVELY_FROM_MAIN_DOCUMENT_DOMAIN, _TXT("exclusivelyfrommaindocumentdomain") },
22
+ ENUM_CONVERSION_END(Exchange::IWebBrowser::HTTPCookieAcceptPolicyType)
23
+
24
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/JsonEnum_WifiControl.cpp ADDED
@@ -0,0 +1,35 @@
1
+ // Enumeration code for WifiControl API.
2
+ // Generated automatically from 'IWifiControl.h'.
3
+
4
+ #include <core/Enumerate.h>
5
+
6
+ #include "definitions.h"
7
+ #include <interfaces/IWifiControl.h>
8
+ #include "JsonData_WifiControl.h"
9
+
10
+ namespace WPEFramework {
11
+
12
+ ENUM_CONVERSION_BEGIN(Exchange::IWifiControl::Security)
13
+ { Exchange::IWifiControl::Security::OPEN, _TXT("Open") },
14
+ { Exchange::IWifiControl::Security::WEP, _TXT("WEP") },
15
+ { Exchange::IWifiControl::Security::WPA, _TXT("WPA") },
16
+ { Exchange::IWifiControl::Security::WPA2, _TXT("WPA2") },
17
+ { Exchange::IWifiControl::Security::WPS, _TXT("WPS") },
18
+ { Exchange::IWifiControl::Security::ENTERPRISE, _TXT("Enterprise") },
19
+ { Exchange::IWifiControl::Security::WPA_WPA2, _TXT("WPA_WPA2") },
20
+ { Exchange::IWifiControl::Security::UNKNOWN, _TXT("Unknown") },
21
+ ENUM_CONVERSION_END(Exchange::IWifiControl::Security)
22
+
23
+ ENUM_CONVERSION_BEGIN(Exchange::IWifiControl::SecurityInfo::Key)
24
+ { Exchange::IWifiControl::SecurityInfo::Key::PSK, _TXT("PSK") },
25
+ { Exchange::IWifiControl::SecurityInfo::Key::EAP, _TXT("EAP") },
26
+ { Exchange::IWifiControl::SecurityInfo::Key::CCMP, _TXT("CCMP") },
27
+ { Exchange::IWifiControl::SecurityInfo::Key::TKIP, _TXT("TKIP") },
28
+ { Exchange::IWifiControl::SecurityInfo::Key::PREAUTH, _TXT("Preauth") },
29
+ { Exchange::IWifiControl::SecurityInfo::Key::PBC, _TXT("PBC") },
30
+ { Exchange::IWifiControl::SecurityInfo::Key::PIN, _TXT("PIN") },
31
+ { Exchange::IWifiControl::SecurityInfo::Key::PSK_HASHED, _TXT("PSK_HASHED") },
32
+ { Exchange::IWifiControl::SecurityInfo::Key::NONE, _TXT("None") },
33
+ ENUM_CONVERSION_END(Exchange::IWifiControl::SecurityInfo::Key)
34
+
35
+ }
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_BluetoothControl.h ADDED
@@ -0,0 +1,7 @@
1
+ // BluetoothControl API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_BluetoothControl.h"
7
+ #include "JBluetoothControl.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_BluetoothRemoteControl.h ADDED
@@ -0,0 +1,7 @@
1
+ // BluetoothRemoteControl API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_BluetoothRemoteControl.h"
7
+ #include "JBluetoothRemoteControl.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Browser.h ADDED
@@ -0,0 +1,7 @@
1
+ // Browser API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_Browser.h"
7
+ #include "JBrowser.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Butler.h ADDED
@@ -0,0 +1,7 @@
1
+ // Butler API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_Butler.h"
7
+ #include "JButler.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Cobalt.h ADDED
@@ -0,0 +1,6 @@
1
+ // Cobalt API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JCobalt.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Compositor.h ADDED
@@ -0,0 +1,7 @@
1
+ // Compositor API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_Compositor.h"
7
+ #include "JCompositor.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Containers.h ADDED
@@ -0,0 +1,7 @@
1
+ // Containers API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_Containers.h"
7
+ #include "JContainers.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_DHCPServer.h ADDED
@@ -0,0 +1,7 @@
1
+ // DHCPServer API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_DHCPServer.h"
7
+ #include "JDHCPServer.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_DIALServer.h ADDED
@@ -0,0 +1,7 @@
1
+ // DIALServer API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_DIALServer.h"
7
+ #include "JDIALServer.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_DTV.h ADDED
@@ -0,0 +1,7 @@
1
+ // DTV API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_DTV.h"
7
+ #include "JDTV.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_DeviceIdentification.h ADDED
@@ -0,0 +1,7 @@
1
+ // DeviceIdentification API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_DeviceIdentification.h"
7
+ #include "JDeviceIdentification.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_DeviceInfo.h ADDED
@@ -0,0 +1,7 @@
1
+ // DeviceInfo API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_DeviceInfo.h"
7
+ #include "JDeviceInfo.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_DisplayInfo.h ADDED
@@ -0,0 +1,7 @@
1
+ // DisplayInfo API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_DisplayInfo.h"
7
+ #include "JDisplayInfo.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_FirmwareControl.h ADDED
@@ -0,0 +1,7 @@
1
+ // FirmwareControl API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_FirmwareControl.h"
7
+ #include "JFirmwareControl.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IAVSClient.h ADDED
@@ -0,0 +1,7 @@
1
+ // IAVSClient API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_AVSController.h"
7
+ #include "JAVSController.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IAmazonPrime.h ADDED
@@ -0,0 +1,6 @@
1
+ // IAmazonPrime API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JAmazonPrime.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IAppManager.h ADDED
@@ -0,0 +1,7 @@
1
+ // IAppManager API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_AppManager.h"
7
+ #include "JAppManager.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IApplication.h ADDED
@@ -0,0 +1,7 @@
1
+ // IApplication API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_Application.h"
7
+ #include "JApplication.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IBluetoothAudio.h ADDED
@@ -0,0 +1,7 @@
1
+ // IBluetoothAudio API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_BluetoothAudioSink.h"
7
+ #include "JBluetoothAudioSink.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IBrowser.h ADDED
@@ -0,0 +1,15 @@
1
+ // IBrowser API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_WebBrowser.h"
7
+ #include "JsonData_BrowserResources.h"
8
+ #include "JsonData_BrowserSecurity.h"
9
+ #include "JsonData_BrowserScripting.h"
10
+ #include "JsonData_BrowserCookieJar.h"
11
+ #include "JWebBrowser.h"
12
+ #include "JBrowserResources.h"
13
+ #include "JBrowserSecurity.h"
14
+ #include "JBrowserScripting.h"
15
+ #include "JBrowserCookieJar.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_ICustomerCareOperations.h ADDED
@@ -0,0 +1,6 @@
1
+ // ICustomerCareOperations API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JCustomerCareOperations.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IDisplayInfo.h ADDED
@@ -0,0 +1,12 @@
1
+ // IDisplayInfo API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_ConnectionProperties.h"
7
+ #include "JsonData_HDRProperties.h"
8
+ #include "JsonData_DisplayProperties.h"
9
+ #include "JGraphicsProperties.h"
10
+ #include "JConnectionProperties.h"
11
+ #include "JHDRProperties.h"
12
+ #include "JDisplayProperties.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IDolby.h ADDED
@@ -0,0 +1,7 @@
1
+ // IDolby API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_DolbyOutput.h"
7
+ #include "JDolbyOutput.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_ILanguageTag.h ADDED
@@ -0,0 +1,6 @@
1
+ // ILanguageTag API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JLanguageTag.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IMath.h ADDED
@@ -0,0 +1,7 @@
1
+ // IMath API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_Math.h"
7
+ #include "JMath.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IMessageControl.h ADDED
@@ -0,0 +1,7 @@
1
+ // IMessageControl API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_MessageControl.h"
7
+ #include "JMessageControl.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_INetworkControl.h ADDED
@@ -0,0 +1,7 @@
1
+ // INetworkControl API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_NetworkControl.h"
7
+ #include "JNetworkControl.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_INetworkTools.h ADDED
@@ -0,0 +1,7 @@
1
+ // INetworkTools API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_NetworkTools.h"
7
+ #include "JNetworkTools.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IOConnector.h ADDED
@@ -0,0 +1,7 @@
1
+ // IOConnector API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_IOConnector.h"
7
+ #include "JIOConnector.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IOControl.h ADDED
@@ -0,0 +1,7 @@
1
+ // IOControl API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_IOControl.h"
7
+ #include "JIOControl.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IPackageManager.h ADDED
@@ -0,0 +1,7 @@
1
+ // IPackageManager API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_PackageManager.h"
7
+ #include "JPackageManager.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IPlayerInfo.h ADDED
@@ -0,0 +1,7 @@
1
+ // IPlayerInfo API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_PlayerProperties.h"
7
+ #include "JPlayerProperties.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IScriptEngine.h ADDED
@@ -0,0 +1,7 @@
1
+ // IScriptEngine API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_ScriptEngine.h"
7
+ #include "JScriptEngine.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_ITimeZone.h ADDED
@@ -0,0 +1,6 @@
1
+ // ITimeZone API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JTimeZone.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IUserSettings.h ADDED
@@ -0,0 +1,7 @@
1
+ // IUserSettings API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_UserSettings.h"
7
+ #include "JUserSettings.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IVolumeControl.h ADDED
@@ -0,0 +1,7 @@
1
+ // IVolumeControl API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_VolumeControl.h"
7
+ #include "JVolumeControl.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IWatchDog.h ADDED
@@ -0,0 +1,7 @@
1
+ // IWatchDog API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_WatchDog.h"
7
+ #include "JWatchDog.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IWifiControl.h ADDED
@@ -0,0 +1,7 @@
1
+ // IWifiControl API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_WifiControl.h"
7
+ #include "JWifiControl.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_IZigWave.h ADDED
@@ -0,0 +1,7 @@
1
+ // IZigWave API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_ZigWave.h"
7
+ #include "JZigWave.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_InputSwitch.h ADDED
@@ -0,0 +1,7 @@
1
+ // InputSwitch API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_InputSwitch.h"
7
+ #include "JInputSwitch.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_LISA.h ADDED
@@ -0,0 +1,7 @@
1
+ // LISA API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_LISA.h"
7
+ #include "JLISA.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_LocationSync.h ADDED
@@ -0,0 +1,7 @@
1
+ // LocationSync API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_LocationSync.h"
7
+ #include "JLocationSync.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Messenger.h ADDED
@@ -0,0 +1,7 @@
1
+ // Messenger API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_Messenger.h"
7
+ #include "JMessenger.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Monitor.h ADDED
@@ -0,0 +1,7 @@
1
+ // Monitor API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_Monitor.h"
7
+ #include "JMonitor.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Netflix.h ADDED
@@ -0,0 +1,7 @@
1
+ // Netflix API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_Netflix.h"
7
+ #include "JNetflix.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_OCDM.h ADDED
@@ -0,0 +1,7 @@
1
+ // OCDM API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_OCDM.h"
7
+ #include "JOCDM.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Packager.h ADDED
@@ -0,0 +1,7 @@
1
+ // Packager API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_Packager.h"
7
+ #include "JPackager.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_PerformanceMonitor.h ADDED
@@ -0,0 +1,7 @@
1
+ // PerformanceMonitor API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_PerformanceMonitor.h"
7
+ #include "JPerformanceMonitor.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_PersistentStore.h ADDED
@@ -0,0 +1,7 @@
1
+ // PersistentStore API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_PersistentStore.h"
7
+ #include "JPersistentStore.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_PlayerInfo.h ADDED
@@ -0,0 +1,7 @@
1
+ // PlayerInfo API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_PlayerInfo.h"
7
+ #include "JPlayerInfo.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Power.h ADDED
@@ -0,0 +1,7 @@
1
+ // Power API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_Power.h"
7
+ #include "JPower.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Provisioning.h ADDED
@@ -0,0 +1,7 @@
1
+ // Provisioning API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_Provisioning.h"
7
+ #include "JProvisioning.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_RemoteControl.h ADDED
@@ -0,0 +1,7 @@
1
+ // RemoteControl API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_RemoteControl.h"
7
+ #include "JRemoteControl.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_SecureShellServer.h ADDED
@@ -0,0 +1,7 @@
1
+ // SecureShellServer API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_SecureShellServer.h"
7
+ #include "JSecureShellServer.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_SecurityAgent.h ADDED
@@ -0,0 +1,7 @@
1
+ // SecurityAgent API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_SecurityAgent.h"
7
+ #include "JSecurityAgent.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Spark.h ADDED
@@ -0,0 +1,6 @@
1
+ // Spark API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JSpark.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_StateControl.h ADDED
@@ -0,0 +1,7 @@
1
+ // StateControl API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_StateControl.h"
7
+ #include "JStateControl.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_Streamer.h ADDED
@@ -0,0 +1,7 @@
1
+ // Streamer API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_Streamer.h"
7
+ #include "JStreamer.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_SubsystemControl.h ADDED
@@ -0,0 +1,7 @@
1
+ // SubsystemControl API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_SubsystemControl.h"
7
+ #include "JSubsystemControl.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_SystemCommands.h ADDED
@@ -0,0 +1,7 @@
1
+ // SystemCommands API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_SystemCommands.h"
7
+ #include "JSystemCommands.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_TestController.h ADDED
@@ -0,0 +1,7 @@
1
+ // TestController API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_TestController.h"
7
+ #include "JTestController.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_TestUtility.h ADDED
@@ -0,0 +1,7 @@
1
+ // TestUtility API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_TestUtility.h"
7
+ #include "JTestUtility.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_TimeSync.h ADDED
@@ -0,0 +1,7 @@
1
+ // TimeSync API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_TimeSync.h"
7
+ #include "JTimeSync.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_TraceControl.h ADDED
@@ -0,0 +1,7 @@
1
+ // TraceControl API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_TraceControl.h"
7
+ #include "JTraceControl.h"
generated/generated/Debug/ThunderInterfaces/definitions/generated/json_WebKitBrowser.h ADDED
@@ -0,0 +1,7 @@
1
+ // WebKitBrowser API
2
+ // Generated automatically. DO NOT EDIT.
3
+
4
+ #pragma once
5
+
6
+ #include "JsonData_WebKitBrowser.h"
7
+ #include "JWebKitBrowser.h"