diff --git a/apis/AppcLifecycleManager/IAppcLifecycleManager.h b/apis/AppcLifecycleManager/IAppcLifecycleManager.h new file mode 100644 index 00000000..7afc99ea --- /dev/null +++ b/apis/AppcLifecycleManager/IAppcLifecycleManager.h @@ -0,0 +1,25 @@ +#pragma once + +#include "Module.h" +#include "../LifecycleManager/ILifecycleManager.h" +// @stubgen:include "ILifecycleManager.h" + +namespace WPEFramework { +namespace Exchange { + +// @json 1.0.0 @text:keep +struct EXTERNAL IAppcLifecycleManager : virtual public Core::IUnknown { + enum { ID = ID_APPCLIFECYCLEMANAGER }; + + + /** Get the list of loaded applications */ + // @text setTargetAppState + // @brief Set the state for the application instance + // @param appInstanceId: Instance ID of the application + // @param targetLifecycleState: Target lifecycle state to set + // @param launchIntent: Launch intent to use + virtual Core::hresult SetTargetAppState(const string& appInstanceId /* @in */, const LifecycleState targetLifecycleState /* @in */, const string& launchIntent /* @in */) = 0; + +}; +} // namespace Exchange +} // namespace WPEFramework diff --git a/apis/Ids.h b/apis/Ids.h index f9474e53..a36b11ef 100755 --- a/apis/Ids.h +++ b/apis/Ids.h @@ -300,7 +300,9 @@ namespace Exchange { ID_FRONT_PANEL = ID_ENTOS_OFFSET + 0x3E0, ID_FRONT_PANEL_LIGHTS_LIST_ITERATOR = ID_FRONT_PANEL + 1, - ID_FRONT_PANEL_BLINK_INFO_LIST_ITERATOR = ID_FRONT_PANEL + 2 + ID_FRONT_PANEL_BLINK_INFO_LIST_ITERATOR = ID_FRONT_PANEL + 2, + + ID_APPCLIFECYCLEMANAGER = ID_ENTOS_OFFSET + 0x3F0 }; } } diff --git a/apis/LifecycleManager/ILifecycleManager.h b/apis/LifecycleManager/ILifecycleManager.h index c9b94887..84aece5a 100755 --- a/apis/LifecycleManager/ILifecycleManager.h +++ b/apis/LifecycleManager/ILifecycleManager.h @@ -108,9 +108,11 @@ struct EXTERNAL ILifecycleManager : virtual public Core::IUnknown { virtual Core::hresult SpawnApp(const string& appId /* @in */, const string& launchIntent /* @in */, const LifecycleState targetLifecycleState /* @in */, const RuntimeConfig& runtimeConfigObject /* @in */, const string& launchArgs /* @in */, string& appInstanceId /* @out */, string& errorReason /* @out */, bool& success /* @out */) = 0; /** Get the list of loaded applications */ - // @json:omit // @text setTargetAppState // @brief Set the state for the application instance + // @param appInstanceId: Instance ID of the application + // @param targetLifecycleState: Target lifecycle state to set + // @param launchIntent: Launch intent to use virtual Core::hresult SetTargetAppState(const string& appInstanceId /* @in */, const LifecycleState targetLifecycleState /* @in */, const string& launchIntent /* @in */) = 0; /** unload the application */