Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions apis/AppcLifecycleManager/IAppcLifecycleManager.h
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion apis/Ids.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
}
}
4 changes: 3 additions & 1 deletion apis/LifecycleManager/ILifecycleManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
Loading