|
LunaSysMgr
|
#include <ApplicationManager.h>
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) |
| ApplicationDescription * | getAppById (const std::string &id) |
| ApplicationDescription * | getAppByIdHardwareCompatibleAppsOnly (const std::string &id) |
| ApplicationDescription * | getAppByMime (const std::string &mime) |
| ApplicationDescription * | getPendingAppById (const std::string &id) |
| PackageDescription * | getPackageInfoByAppId (const std::string &anyAppIdInPackage) |
| PackageDescription * | getPackageInfoByServiceId (const std::string &anyServiceIdInPackage) |
| PackageDescription * | getPackageInfoByPackageId (const std::string &packageId) |
| ServiceDescription * | getServiceInfoByServiceId (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 LaunchPoint * | getLaunchPointById (const std::string &launchPointId) |
| const LaunchPoint * | getLaunchPointByIdHardwareCompatibleAppsOnly (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 ¶ms, 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 ApplicationManager * | instance () |
| static ApplicationDescription * | checkAppAgainstWhiteList (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 |
| typedef std::vector<const LaunchPoint *> ApplicationManager::LaunchPointCollection |
| ApplicationManager::~ApplicationManager | ( | ) |
| 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 | ( | ) |
|
static |
|
static |
|
static |
|
static |
| void ApplicationManager::dbgEmitSignalLaunchPointUpdated | ( | const LaunchPoint * | lp, |
| const QBitArray & | statusBits | ||
| ) |
|
static |
| bool ApplicationManager::disableDockModeLaunchPoint | ( | const char * | appId | ) |
| std::vector< const LaunchPoint * > ApplicationManager::dockLaunchPoints | ( | bool * | needsUpdate = NULL | ) |
|
inline |
| bool ApplicationManager::enableDockModeLaunchPoint | ( | const char * | appId | ) |
|
static |
|
static |
| ApplicationDescription * ApplicationManager::getAppById | ( | const std::string & | id | ) |
| ApplicationDescription * ApplicationManager::getAppByIdHardwareCompatibleAppsOnly | ( | const std::string & | id | ) |
| ApplicationDescription* ApplicationManager::getAppByMime | ( | const std::string & | mime | ) |
|
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 | ( | ) |
|
static |
|
static |
| bool ApplicationManager::isFactoryPlatformApp | ( | const std::string & | appId | ) |
| bool ApplicationManager::isLaunchAtBootApp | ( | const std::string & | appId | ) |
|
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 |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
slot |
|
slot |
bin/sh /usr/palm/applications/com.palm.sysapp.launchermode0/.system.sh
|
slot |
|
slot |
| bool ApplicationManager::updateLaunchPointIcon | ( | const std::string & | launchPointId, |
| const std::string & | newIconPath | ||
| ) |
|
friend |
|
static |