|
23 | 23 |
|
24 | 24 | namespace WPEFramework {
|
25 | 25 | namespace Exchange {
|
| 26 | + |
| 27 | +#ifndef RUNTIME_CONFIG |
| 28 | +struct RuntimeConfig |
| 29 | +{ |
| 30 | + bool dial; |
| 31 | + bool wanLanAccess; |
| 32 | + bool thunder; |
| 33 | + int32_t systemMemoryLimit; |
| 34 | + int32_t gpuMemoryLimit; |
| 35 | + std::string envVariables; |
| 36 | + uint32_t userId; |
| 37 | + uint32_t groupId; |
| 38 | + uint32_t dataImageSize; |
| 39 | + |
| 40 | + bool resourceManagerClientEnabled; |
| 41 | + std::string dialId; |
| 42 | + std::string command; |
| 43 | + std::string appType; |
| 44 | + std::string appPath; |
| 45 | + std::string runtimePath; |
| 46 | + |
| 47 | + std::string logFilePath; |
| 48 | + uint32_t logFileMaxSize; |
| 49 | + std::string logLevels; //json array of strings |
| 50 | + bool mapi; |
| 51 | + std::string fkpsFiles; //json array of strings |
| 52 | + |
| 53 | + std::string fireboltVersion; |
| 54 | + bool enableDebugger; |
| 55 | + string unpackedPath; |
| 56 | +}; |
| 57 | +#define RUNTIME_CONFIG |
| 58 | +#endif |
| 59 | + |
26 | 60 | // @json 1.0.0 @text:keep
|
27 | 61 | struct EXTERNAL IAppManager : virtual public Core::IUnknown {
|
28 | 62 | enum { ID = ID_APPMANAGER };
|
29 | 63 |
|
30 | 64 | enum AppLifecycleState : uint8_t {
|
31 |
| - APP_STATE_UNKNOWN = 0 /* @text APP_STATE_UNKNOWN */, |
32 |
| - APP_STATE_RUNNING = 1 /* @text APP_STATE_RUNNING */, |
33 |
| - APP_STATE_ACTIVE = 2 /* @text APP_STATE_ACTIVE */, |
34 |
| - APP_STATE_SUSPENDED = 3 /* @text APP_STATE_SUSPENDED */, |
35 |
| - APP_STATE_HIBERNATED = 4 /* @text APP_STATE_HIBERNATED */, |
36 |
| - APP_STATE_TERMINATED = 5 /* @text APP_STATE_TERMINATED */ |
| 65 | + APP_STATE_UNKNOWN = 0 /* @text APP_STATE_UNKNOWN */, |
| 66 | + APP_STATE_UNLOADED = 1 /* @text APP_STATE_UNLOADED */, |
| 67 | + APP_STATE_LOADING = 2 /* @text APP_STATE_LOADING */, |
| 68 | + APP_STATE_INITIALIZING = 3 /* @text APP_STATE_INITIALIZING */, |
| 69 | + APP_STATE_PAUSED = 4 /* @text APP_STATE_PAUSED */, |
| 70 | + APP_STATE_RUNNING = 5 /* @text APP_STATE_RUNNING */, |
| 71 | + APP_STATE_ACTIVE = 6 /* @text APP_STATE_ACTIVE */, |
| 72 | + APP_STATE_SUSPENDED = 7 /* @text APP_STATE_SUSPENDED */, |
| 73 | + APP_STATE_HIBERNATED = 8 /* @text APP_STATE_HIBERNATED */, |
| 74 | + APP_STATE_TERMINATED = 9 /* @text APP_STATE_TERMINATED */ |
37 | 75 | };
|
38 | 76 |
|
39 | 77 | enum AppErrorReason : uint8_t {
|
40 |
| - APP_ERROR_UNKNOWN = 0 /* @text APP_ERROR_UNKNOWN */, |
41 |
| - APP_ERROR_STATE_TIMEOUT = 1 /* @text APP_ERROR_STATE_TIMEOUT */, |
42 |
| - APP_ERROR_ABORT = 2 /* @text APP_ERROR_ABORT */ |
| 78 | + APP_ERROR_NONE = 0 /* @text APP_ERROR_NONE */, |
| 79 | + APP_ERROR_UNKNOWN = 1 /* @text APP_ERROR_UNKNOWN */, |
| 80 | + APP_ERROR_STATE_TIMEOUT = 2 /* @text APP_ERROR_STATE_TIMEOUT */, |
| 81 | + APP_ERROR_ABORT = 3 /* @text APP_ERROR_ABORT */ |
43 | 82 | };
|
44 | 83 |
|
45 |
| - // @event |
| 84 | + // @event |
46 | 85 | struct EXTERNAL INotification : virtual public Core::IUnknown {
|
47 | 86 | enum { ID = ID_APPMANAGER_NOTIFICATION };
|
48 |
| - |
| 87 | + |
49 | 88 | // @text onAppInstalled
|
50 | 89 | // @brief Triggered whenever the App is installed.
|
51 | 90 | // @param appId:App identifier for the application.
|
|
0 commit comments