Skip to content

Commit e7c62ce

Browse files
committed
RDKEMW-6787: [AI2.0] Create IPreInstallerManager interface
-fix for review comments
1 parent c2964c3 commit e7c62ce

File tree

1 file changed

+2
-55
lines changed

1 file changed

+2
-55
lines changed

apis/PreinstallManager/IPreinstallManager.h

Lines changed: 2 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -26,64 +26,11 @@
2626
namespace WPEFramework {
2727
namespace Exchange {
2828

29-
#ifndef RUNTIME_CONFIG
30-
struct RuntimeConfig {
31-
bool dial;
32-
bool wanLanAccess;
33-
bool thunder;
34-
int32_t systemMemoryLimit;
35-
int32_t gpuMemoryLimit;
36-
std::string envVariables;
37-
uint32_t userId;
38-
uint32_t groupId;
39-
uint32_t dataImageSize;
40-
41-
bool resourceManagerClientEnabled;
42-
std::string dialId;
43-
std::string command;
44-
std::string appType;
45-
std::string appPath;
46-
std::string runtimePath;
47-
48-
std::string logFilePath;
49-
uint32_t logFileMaxSize;
50-
std::string logLevels; //json array of strings
51-
bool mapi;
52-
std::string fkpsFiles; //json array of strings
53-
54-
std::string fireboltVersion;
55-
bool enableDebugger;
56-
};
57-
#define RUNTIME_CONFIG
58-
#endif
59-
6029
// @json 1.0.0 @text:keep
6130
struct EXTERNAL IPreinstallManager : virtual public Core::IUnknown {
6231
enum { ID = ID_PREINSTALL_MANAGER };
6332

64-
enum PreinstallState : uint8_t {
65-
PREINSTALL_STATE_UNKNOWN = 0 /* @text PREINSTALL_STATE_UNKNOWN */, //required?
66-
PREINSTALL_STATE_INSTALLED = 1 /* @text PREINSTALL_STATE_INSTALLED */,
67-
PREINSTALL_STATE_INSTALL_FAILURE = 2 /* @text PREINSTALL_STATE_INSTALL_FAILURE */
68-
};
69-
70-
enum PreinstallFailReason : uint8_t {
71-
PREINSTALL_FAIL_REASON_NONE = 0 /* @text PREINSTALL_FAIL_REASON_NONE */,
72-
PREINSTALL_FAIL_REASON_UNKNOWN = 1 /* @text PREINSTALL_FAIL_REASON_UNKNOWN */,
73-
PREINSTALL_FAIL_REASON_SIGNATURE_VERIFICATION_FAILURE = 2 /* @text PREINSTALL_FAIL_REASON_SIGNATURE_VERIFICATION_FAILURE */,
74-
PREINSTALL_FAIL_REASON_PERSISTENCE_FAILURE = 3 /* @text PREINSTALL_FAIL_REASON_PERSISTENCE_FAILURE */
75-
};
76-
77-
78-
struct AppInstallInfo {
79-
string packageId;
80-
string version;
81-
PreinstallState state;
82-
PreinstallFailReason failReason;
83-
};
84-
8533

86-
// using IAppInstallInfoIterator = RPC::IIteratorType<AppInstallInfo, ID_PREINSTALL_MANAGER_INSTALL_INFO_ITERATOR>;
8734

8835
// @event
8936
struct EXTERNAL INotification : virtual public Core::IUnknown {
@@ -92,8 +39,8 @@ struct EXTERNAL IPreinstallManager : virtual public Core::IUnknown {
9239

9340
// @text onAppInstallationStatus
9441
// @brief Emitted when the installation of a preinstalled app succeeds or fails.
95-
// @param appInstallInfoArray: Output installation status details as string object
96-
virtual void OnAppInstallationStatus(const string& jsonresponse) {};
42+
// @param jsonresponse: Output installation status details as string object
43+
virtual void OnAppInstallationStatus(const string& jsonresponse /* @opaque */) {};
9744
};
9845

9946
/** Register notification interface */

0 commit comments

Comments
 (0)