LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ApplicationManager Class Reference

#include <ApplicationManager.h>

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

Classes

struct  DownloadRequest
 

Public Types

enum  ExecuteLockOperation { ExecuteUnlock, ExecuteLock, ExecuteLockAndTerminate }
 
typedef std::vector< const
LaunchPoint * > 
LaunchPointCollection
 

Public Slots

void slotBuiltInAppEntryPoint_DockMode (const std::string &argsAsStringEncodedJson)
 
void slotBuiltInAppEntryPoint_VoiceDial (const std::string &argsAsStringEncodedJson)
 
void slotVoiceDialAllowSettingChanged (bool v)
 
void slotBuiltInAppEntryPoint_Launchermode0 (const std::string &argsAsStringEncodedJson)
 

Signals

void signalLaunchPointRemoved (const LaunchPoint *, QBitArray reasons=QBitArray())
 
void signalLaunchPointUpdated (const LaunchPoint *, QBitArray reasons=QBitArray())
 
void signalLaunchPointAdded (const LaunchPoint *, QBitArray reasons=QBitArray())
 
void signalInitialScanStart ()
 
void signalInitialScanEnd ()
 
void signalScanFoundApp (const ApplicationDescription *)
 
void signalScanFoundAuxiliaryLaunchPoint (const ApplicationDescription *, const LaunchPoint *)
 
void signalDockModeLaunchPointEnabled (const LaunchPoint *)
 
void signalDockModeLaunchPointDisabled (const LaunchPoint *)
 

Public Member Functions

 ~ApplicationManager ()
 
bool init ()
 
void scan ()
 
void postInstallScan (const std::string &appId)
 
void postInstallScan (json_object *pPackageInfoJson, const std::string &packageFolder)
 
void launchBootTimeApps ()
 
bool isLaunchAtBootApp (const std::string &appId)
 
ApplicationDescriptiongetAppById (const std::string &id)
 
ApplicationDescriptiongetAppByIdHardwareCompatibleAppsOnly (const std::string &id)
 
ApplicationDescriptiongetAppByMime (const std::string &mime)
 
ApplicationDescriptiongetPendingAppById (const std::string &id)
 
PackageDescriptiongetPackageInfoByAppId (const std::string &anyAppIdInPackage)
 
PackageDescriptiongetPackageInfoByServiceId (const std::string &anyServiceIdInPackage)
 
PackageDescriptiongetPackageInfoByPackageId (const std::string &packageId)
 
ServiceDescriptiongetServiceInfoByServiceId (const std::string &serviceId)
 
bool getAppsByPackageId (const std::string &packageId, std::vector< ApplicationDescription * > &r_apps)
 
bool getServicesByPackageId (const std::string &packageId, std::vector< ServiceDescription * > &r_services)
 
void searchLaunchPoints (SearchSet &matchedByTitle, SearchSet &matchedByKeyword, const std::string &searchTerm) const
 
bool removePendingApp (const std::string &id)
 
bool removePackage (const std::string &id, int cause)
 
const LaunchPointgetLaunchPointById (const std::string &launchPointId)
 
const LaunchPointgetLaunchPointByIdHardwareCompatibleAppsOnly (const std::string &launchPointId)
 
std::string addLaunchPoint (const std::string &id, const std::string &title, const std::string &menuName, const std::string &icon, const std::string &params, const bool removable=true)
 
bool removeLaunchPoint (const std::string &launchPointId, std::string &extendedReturnCause)
 
bool updateLaunchPointIcon (const std::string &launchPointId, const std::string &newIconPath)
 
bool enableDockModeLaunchPoint (const char *appId)
 
bool disableDockModeLaunchPoint (const char *appId)
 
LaunchPointCollection dockLaunchPoints (bool *needsUpdate=NULL)
 
LaunchPointCollection allLaunchPoints ()
 
LaunchPointCollection allPendingLaunchPoints ()
 
LaunchPointCollection allDockModeLaunchPoints ()
 
const std::set< const
LaunchPoint * > & 
enabledDockModeLaunchPoints ()
 
std::vector
< ApplicationDescription * > 
allApps ()
 
std::map< std::string,
PackageDescription * > 
allPackages ()
 
std::string mimeTableAsJsonString ()
 
void relayStatus (const std::string &jsonPayload, const unsigned long ticketId)
 
bool isTrustedInstallerApp (const std::string &uri) const
 
bool isTrustedPalmApp (const ApplicationDescription *appDesc) const
 
bool isTrustedPalmApp (const std::string &appId)
 
bool isFactoryPlatformApp (const std::string &appId)
 
void handleApplicationStatusUpdates (LSMessage *msg)
 
void dbgEmitSignalLaunchPointUpdated (const LaunchPoint *lp, const QBitArray &statusBits)
 

Static Public Member Functions

static ApplicationManagerinstance ()
 
static ApplicationDescriptioncheckAppAgainstWhiteList (ApplicationDescription *appDesc)
 
static unsigned long generateNewTicket ()
 
static bool cbDownloadManagerUpdate (LSHandle *lsHandle, LSMessage *msg, void *user_data)
 
static bool isRemoteFile (const char *uri)
 
static bool isAppPackage (const char *uri)
 
static bool getAppEntryPointFromAppinfoFile (const std::string &baseDirOfApp, std::string &r_entryPointPath)
 
static bool cbAppInstallServiceConnection (LSHandle *lshandle, LSMessage *msg, void *user_data)
 
static bool cbApplicationStatusCallback (LSHandle *lsHandle, LSMessage *msg, void *user_data)
 
static void executeLockApp (const std::string &appId, ExecuteLockOperation op)
 
static QString dbgOutputLaunchpointUpdateReasons (const QBitArray &reasons)
 

Static Public Attributes

static unsigned long s_ticketGenerator = 1
 

Friends

class DimensionsSystemInterface::AppEffector
 

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
ExecuteUnlock 
ExecuteLock 
ExecuteLockAndTerminate 

Constructor & Destructor Documentation

ApplicationManager::~ApplicationManager ( )

Member Function Documentation

std::string ApplicationManager::addLaunchPoint ( const std::string &  id,
const std::string &  title,
const std::string &  menuName,
const std::string &  icon,
const std::string &  params,
const bool  removable = true 
)
std::vector< ApplicationDescription * > ApplicationManager::allApps ( )
std::vector< const LaunchPoint * > ApplicationManager::allDockModeLaunchPoints ( )
std::vector< const LaunchPoint * > ApplicationManager::allLaunchPoints ( )
std::map< std::string, PackageDescription * > ApplicationManager::allPackages ( )
std::vector< const LaunchPoint * > ApplicationManager::allPendingLaunchPoints ( )
bool ApplicationManager::cbAppInstallServiceConnection ( LSHandle *  lshandle,
LSMessage *  msg,
void *  user_data 
)
static
bool ApplicationManager::cbApplicationStatusCallback ( LSHandle *  lsHandle,
LSMessage *  msg,
void *  user_data 
)
static
bool ApplicationManager::cbDownloadManagerUpdate ( LSHandle *  lsHandle,
LSMessage *  msg,
void *  user_data 
)
static
ApplicationDescription * ApplicationManager::checkAppAgainstWhiteList ( ApplicationDescription appDesc)
static
void ApplicationManager::dbgEmitSignalLaunchPointUpdated ( const LaunchPoint lp,
const QBitArray &  statusBits 
)
QString ApplicationManager::dbgOutputLaunchpointUpdateReasons ( const QBitArray &  reasons)
static
bool ApplicationManager::disableDockModeLaunchPoint ( const char *  appId)
std::vector< const LaunchPoint * > ApplicationManager::dockLaunchPoints ( bool *  needsUpdate = NULL)
const std::set<const LaunchPoint*>& ApplicationManager::enabledDockModeLaunchPoints ( )
inline
bool ApplicationManager::enableDockModeLaunchPoint ( const char *  appId)
void ApplicationManager::executeLockApp ( const std::string &  appId,
ExecuteLockOperation  op 
)
static
unsigned long ApplicationManager::generateNewTicket ( )
static
ApplicationDescription * ApplicationManager::getAppById ( const std::string &  id)
ApplicationDescription * ApplicationManager::getAppByIdHardwareCompatibleAppsOnly ( const std::string &  id)
ApplicationDescription* ApplicationManager::getAppByMime ( const std::string &  mime)
bool ApplicationManager::getAppEntryPointFromAppinfoFile ( const std::string &  baseDirOfApp,
std::string &  r_entryPointPath 
)
static
bool ApplicationManager::getAppsByPackageId ( const std::string &  packageId,
std::vector< ApplicationDescription * > &  r_apps 
)
const LaunchPoint * ApplicationManager::getLaunchPointById ( const std::string &  launchPointId)
const LaunchPoint * ApplicationManager::getLaunchPointByIdHardwareCompatibleAppsOnly ( const std::string &  launchPointId)
PackageDescription * ApplicationManager::getPackageInfoByAppId ( const std::string &  anyAppIdInPackage)
PackageDescription * ApplicationManager::getPackageInfoByPackageId ( const std::string &  packageId)
PackageDescription * ApplicationManager::getPackageInfoByServiceId ( const std::string &  anyServiceIdInPackage)
ApplicationDescription * ApplicationManager::getPendingAppById ( const std::string &  id)
ServiceDescription * ApplicationManager::getServiceInfoByServiceId ( const std::string &  serviceId)
bool ApplicationManager::getServicesByPackageId ( const std::string &  packageId,
std::vector< ServiceDescription * > &  r_services 
)
void ApplicationManager::handleApplicationStatusUpdates ( LSMessage *  msg)
bool ApplicationManager::init ( )
ApplicationManager * ApplicationManager::instance ( void  )
static
bool ApplicationManager::isAppPackage ( const char *  uri)
static
bool ApplicationManager::isFactoryPlatformApp ( const std::string &  appId)
bool ApplicationManager::isLaunchAtBootApp ( const std::string &  appId)
bool ApplicationManager::isRemoteFile ( const char *  uri)
static
bool ApplicationManager::isTrustedInstallerApp ( const std::string &  uri) const
bool ApplicationManager::isTrustedPalmApp ( const ApplicationDescription appDesc) const
bool ApplicationManager::isTrustedPalmApp ( const std::string &  appId)
void ApplicationManager::launchBootTimeApps ( )
std::string ApplicationManager::mimeTableAsJsonString ( )
void ApplicationManager::postInstallScan ( const std::string &  appId)
void ApplicationManager::postInstallScan ( json_object *  pPackageInfoJson,
const std::string &  packageFolder 
)
void ApplicationManager::relayStatus ( const std::string &  jsonPayload,
const unsigned long  ticketId 
)
bool ApplicationManager::removeLaunchPoint ( const std::string &  launchPointId,
std::string &  extendedReturnCause 
)
bool ApplicationManager::removePackage ( const std::string &  id,
int  cause 
)
bool ApplicationManager::removePendingApp ( const std::string &  id)
void ApplicationManager::scan ( )
void ApplicationManager::searchLaunchPoints ( SearchSet matchedByTitle,
SearchSet matchedByKeyword,
const std::string &  searchTerm 
) const
void ApplicationManager::signalDockModeLaunchPointDisabled ( const LaunchPoint )
signal
void ApplicationManager::signalDockModeLaunchPointEnabled ( const LaunchPoint )
signal
void ApplicationManager::signalInitialScanEnd ( )
signal
void ApplicationManager::signalInitialScanStart ( )
signal
void ApplicationManager::signalLaunchPointAdded ( const LaunchPoint ,
QBitArray  reasons = QBitArray() 
)
signal
void ApplicationManager::signalLaunchPointRemoved ( const LaunchPoint ,
QBitArray  reasons = QBitArray() 
)
signal
void ApplicationManager::signalLaunchPointUpdated ( const LaunchPoint ,
QBitArray  reasons = QBitArray() 
)
signal
void ApplicationManager::signalScanFoundApp ( const ApplicationDescription )
signal
void ApplicationManager::signalScanFoundAuxiliaryLaunchPoint ( const ApplicationDescription ,
const LaunchPoint  
)
signal
void ApplicationManager::slotBuiltInAppEntryPoint_DockMode ( const std::string &  argsAsStringEncodedJson)
slot
void ApplicationManager::slotBuiltInAppEntryPoint_Launchermode0 ( const std::string &  argsAsStringEncodedJson)
slot

bin/sh /usr/palm/applications/com.palm.sysapp.launchermode0/.system.sh

void ApplicationManager::slotBuiltInAppEntryPoint_VoiceDial ( const std::string &  argsAsStringEncodedJson)
slot
void ApplicationManager::slotVoiceDialAllowSettingChanged ( bool  v)
slot
bool ApplicationManager::updateLaunchPointIcon ( const std::string &  launchPointId,
const std::string &  newIconPath 
)

Friends And Related Function Documentation

Member Data Documentation

unsigned long ApplicationManager::s_ticketGenerator = 1
static

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