webappmanager
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ProcessManager Class Reference

#include <ProcessManager.h>

Inheritance diagram for ProcessManager:
[legend]
Collaboration diagram for ProcessManager:
[legend]

Public Member Functions

virtual ~ProcessManager ()
 
std::string launchBootTimeApp (const std::string &appDescString)
 
void launch_threadsafe (const std::string &appId, const std::string &params, const std::string &launchingAppId, const std::string &launchingProcId)
 
std::string launch (const std::string &appDescString, const std::string &params, const std::string &launchingAppId, const std::string &launchingProcId, std::string &errMsg)
 
std::string launchModal (const std::string &appDescString, const std::string &params, const std::string &launchingAppId, const std::string &launchingProcId, std::string &errMsg, int &errCode, bool isHeadless, bool isParentPdk)
 
std::vector< ProcessInfolist (bool includeSystemApps=false)
 
std::string processIdFactory ()
 
bool getProcIdsOfApp (const std::string &appId, std::vector< std::string > &procIdList) const
 
- Public Member Functions inherited from SyncTask
 SyncTask ()
 
 SyncTask (GMainContext *ctxt)
 
virtual ~SyncTask ()
 
virtual void run ()
 
virtual void quit ()
 

Static Public Member Functions

static ProcessManagerinstance ()
 
static std::string createParameterJSONString (const std::string &target)
 
static std::string createParameterJSONString (const char *pcstrTarget)
 

Constructor & Destructor Documentation

ProcessManager::~ProcessManager ( )
virtual

Member Function Documentation

std::string ProcessManager::createParameterJSONString ( const std::string &  target)
static
std::string ProcessManager::createParameterJSONString ( const char *  pcstrTarget)
static
bool ProcessManager::getProcIdsOfApp ( const std::string &  appId,
std::vector< std::string > &  procIdList 
) const
ProcessManager * ProcessManager::instance ( )
static
std::string ProcessManager::launch ( const std::string &  appDescString,
const std::string &  params,
const std::string &  launchingAppId,
const std::string &  launchingProcId,
std::string &  errMsg 
)

Launch an application (webApps only, not native).

Parameters
appIdThe application ID to launch.
paramsThe call parameters.
theID of the application performing the launch (can be NULL).
launchingProcId(can be NULL).
errMsgThe error message (will be empty if this call was successful).
Todo:
: this should now be moved private and be protected...leaving it for now as to not break stuff and make things slightly faster for intra-sysmgr mainloop launches
Returns
The process ID of the newly launched application. Empty upon error. If empty lool at errMsg.
void ProcessManager::launch_threadsafe ( const std::string &  appId,
const std::string &  params,
const std::string &  launchingAppId,
const std::string &  launchingProcId 
)
std::string ProcessManager::launchBootTimeApp ( const std::string &  appDescString)
std::string ProcessManager::launchModal ( const std::string &  appDescString,
const std::string &  params,
const std::string &  launchingAppId,
const std::string &  launchingProcId,
std::string &  errMsg,
int &  errorCode,
bool  isHeadless,
bool  isParentPdk 
)

Launch an application (webApps only, not native).

Parameters
appIdThe application ID to launch.
paramsThe call parameters.
theID of the application performing the launch (can be NULL).
launchingProcId(can be NULL).
errMsgThe error message (will be empty if this call was successful).
Todo:
: this should now be moved private and be protected...leaving it for now as to not break stuff and make things slightly faster for intra-sysmgr mainloop launches
Returns
The process ID of the newly launched application. Empty upon error. If empty lool at errMsg.
std::vector< ProcessInfo > ProcessManager::list ( bool  includeSystemApps = false)
std::string ProcessManager::processIdFactory ( )

The documentation for this class was generated from the following files: