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

#include <ApplicationDescription.h>

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

Public Types

enum  Status { Status_Ready = 0, Status_Updating, Status_Installing, Status_Failed }
 
enum  HardwareFeaturesNeeded {
  HardwareFeaturesNeeded_None = 0, HardwareFeaturesNeeded_Wifi = 1 << 0, HardwareFeaturesNeeded_Bluetooth = 1 << 1, HardwareFeaturesNeeded_Compass = 1 << 2,
  HardwareFeaturesNeeded_Accelerometer = 1 << 3, HardwareFeaturesNeeded_Last = 1 << 31
}
 

Public Member Functions

 ApplicationDescription ()
 
 ~ApplicationDescription ()
 
const std::string & menuName () const
 
const std::string & category () const
 
std::list< std::string > keywords () const
 
const std::string & version () const
 
bool hasTransparentWindows () const
 
bool isRemovable () const
 
bool handlesRelaunch () const
 
bool isUserHideable () const
 
bool isVisible () const
 
const std::string & folderPath () const
 
Type type () const
 
Status status () const
 
int progress () const
 
const std::string & attributes () const
 
bool hasAccounts () const
 
bool dockModeStatus () const
 
const std::string & dockModeTitle () const
 
const std::string & miniIconUrl () const
 
const std::string & vendorName () const
 
const std::string & vendorUrl () const
 
uint64_t appSize () const
 
void setAppSize (const uint64_t &s)
 
uint32_t blockSize () const
 
void setBlockSize (uint32_t s)
 
unsigned int runtimeMemoryRequired () const
 
QPixmap miniIcon () const
 
const std::string & splashIconName () const
 
const std::string & splashBackgroundName () const
 
const bool launchInNewGroup () const
 
const std::list
< ResourceHandler > & 
mimeTypes () const
 
const std::list
< RedirectHandler > & 
redirectTypes () const
 
const LaunchPointListlaunchPoints () const
 
void launchPoints (LaunchPointList &launchPointList)
 
void addLaunchPoint (LaunchPoint *lp)
 
const LaunchPointfindLaunchPoint (const std::string &lpId)
 
const LaunchPointgetDefaultLaunchPoint () const
 
void removeLaunchPoint (const LaunchPoint *lp)
 
json_object * toJSON () const
 
std::string toString () const
 
bool canExecute () const
 
void executionLock (bool xp=true)
 
bool isRemoveFlagged () const
 
void flagForRemoval (bool rf=true)
 
bool setRemovable (bool v=true)
 
bool setVisible (bool v=true)
 
void setVersion (const std::string &version)
 
uint32_t hardwareFeaturesNeeded () const
 
void setUserHideable (bool hideable)
 
void setStatus (Status newStatus)
 
void setHasAccounts (bool hasAccounts)
 
bool tapToShareSupported () const
 
bool operator== (const ApplicationDescription &cmp) const
 
bool operator!= (const ApplicationDescription &cmp) const
 
bool strictCompare (const ApplicationDescription &cmp) const
 
void update (const ApplicationStatus &appStatus, bool isUpdating)
 
int update (const ApplicationDescription &appDesc)
 
bool doesMatchKeywordExact (const gchar *keyword) const
 
bool doesMatchKeywordPartial (const gchar *keyword) const
 
void getAppDescriptionString (std::string &descString) const
 
void startSysmgrBuiltIn (const std::string &jsonArgsString) const
 
void startSysmgrBuiltIn () const
 
void startSysmgrBuiltInNoArgs () const
 
bool initSysmgrBuiltIn (QObject *pReceiver, const std::string &entrypt, const std::string &args)
 
void dbgSetProgressManually (int progv)
 
bool securityChecksVerified ()
 

Static Public Member Functions

static ApplicationDescriptionfromFile (const std::string &filePath, const std::string &folderPath)
 
static ApplicationDescriptionfromJsonString (const char *jsonStr)
 
static ApplicationDescriptionfromApplicationStatus (const ApplicationStatus &appStatus, bool isUpdating)
 
static ApplicationDescriptionfromNativeDockApp (const std::string &id, const std::string &title, const std::string &version, const std::string &splashIcon, const std::string &splashBackgroundName, const std::string &miniicon, const std::string &vendor, const std::string &vendorUrl, const std::string &appmenu)
 
static std::string versionFromFile (const std::string &filePath, const std::string &folderPath)
 

Member Enumeration Documentation

Enumerator
HardwareFeaturesNeeded_None 
HardwareFeaturesNeeded_Wifi 
HardwareFeaturesNeeded_Bluetooth 
HardwareFeaturesNeeded_Compass 
HardwareFeaturesNeeded_Accelerometer 
HardwareFeaturesNeeded_Last 
Enumerator
Status_Ready 
Status_Updating 
Status_Installing 
Status_Failed 

Constructor & Destructor Documentation

ApplicationDescription::ApplicationDescription ( )
ApplicationDescription::~ApplicationDescription ( )

Member Function Documentation

void ApplicationDescription::addLaunchPoint ( LaunchPoint lp)
uint64_t ApplicationDescription::appSize ( ) const
inline
const std::string& ApplicationDescription::attributes ( ) const
inline
uint32_t ApplicationDescription::blockSize ( ) const
inline
bool ApplicationDescription::canExecute ( ) const
inline
const std::string& ApplicationDescription::category ( ) const
inline
void ApplicationDescription::dbgSetProgressManually ( int  progv)
inline
bool ApplicationDescription::dockModeStatus ( ) const
inline
const std::string& ApplicationDescription::dockModeTitle ( ) const
inline
bool ApplicationDescription::doesMatchKeywordExact ( const gchar *  keyword) const
bool ApplicationDescription::doesMatchKeywordPartial ( const gchar *  keyword) const
void ApplicationDescription::executionLock ( bool  xp = true)
inline
const LaunchPoint * ApplicationDescription::findLaunchPoint ( const std::string &  lpId)
void ApplicationDescription::flagForRemoval ( bool  rf = true)
inline
const std::string& ApplicationDescription::folderPath ( ) const
inline
ApplicationDescription * ApplicationDescription::fromApplicationStatus ( const ApplicationStatus appStatus,
bool  isUpdating 
)
static
ApplicationDescription * ApplicationDescription::fromFile ( const std::string &  filePath,
const std::string &  folderPath 
)
static
ApplicationDescription * ApplicationDescription::fromJsonString ( const char *  jsonStr)
static
ApplicationDescription * ApplicationDescription::fromNativeDockApp ( const std::string &  id,
const std::string &  title,
const std::string &  version,
const std::string &  splashIcon,
const std::string &  splashBackgroundName,
const std::string &  miniicon,
const std::string &  vendor,
const std::string &  vendorUrl,
const std::string &  appmenu 
)
static
void ApplicationDescription::getAppDescriptionString ( std::string &  descString) const
const LaunchPoint * ApplicationDescription::getDefaultLaunchPoint ( ) const
bool ApplicationDescription::handlesRelaunch ( ) const
inline
uint32_t ApplicationDescription::hardwareFeaturesNeeded ( ) const
inline
bool ApplicationDescription::hasAccounts ( ) const
inline
bool ApplicationDescription::hasTransparentWindows ( ) const
inline
bool ApplicationDescription::initSysmgrBuiltIn ( QObject pReceiver,
const std::string &  entrypt,
const std::string &  args 
)
bool ApplicationDescription::isRemovable ( ) const
inline
bool ApplicationDescription::isRemoveFlagged ( ) const
inline
bool ApplicationDescription::isUserHideable ( ) const
inline
bool ApplicationDescription::isVisible ( ) const
inline
std::list<std::string> ApplicationDescription::keywords ( ) const
inline
const bool ApplicationDescription::launchInNewGroup ( ) const
inline
const LaunchPointList & ApplicationDescription::launchPoints ( ) const
void ApplicationDescription::launchPoints ( LaunchPointList launchPointList)
const std::string& ApplicationDescription::menuName ( ) const
inline
const std::list< ResourceHandler > & ApplicationDescription::mimeTypes ( ) const
QPixmap ApplicationDescription::miniIcon ( ) const
const std::string& ApplicationDescription::miniIconUrl ( ) const
inline
bool ApplicationDescription::operator!= ( const ApplicationDescription cmp) const
bool ApplicationDescription::operator== ( const ApplicationDescription cmp) const
int ApplicationDescription::progress ( ) const
inline
const std::list< RedirectHandler > & ApplicationDescription::redirectTypes ( ) const
void ApplicationDescription::removeLaunchPoint ( const LaunchPoint lp)
unsigned int ApplicationDescription::runtimeMemoryRequired ( ) const
inline
bool ApplicationDescription::securityChecksVerified ( )
void ApplicationDescription::setAppSize ( const uint64_t &  s)
inline
void ApplicationDescription::setBlockSize ( uint32_t  s)
inline
void ApplicationDescription::setHasAccounts ( bool  hasAccounts)
inline
bool ApplicationDescription::setRemovable ( bool  v = true)
void ApplicationDescription::setStatus ( Status  newStatus)
inline
void ApplicationDescription::setUserHideable ( bool  hideable)
inline
void ApplicationDescription::setVersion ( const std::string &  version)
inline
bool ApplicationDescription::setVisible ( bool  v = true)
const std::string& ApplicationDescription::splashBackgroundName ( ) const
inline
const std::string& ApplicationDescription::splashIconName ( ) const
inline
void ApplicationDescription::startSysmgrBuiltIn ( const std::string &  jsonArgsString) const
void ApplicationDescription::startSysmgrBuiltIn ( ) const
void ApplicationDescription::startSysmgrBuiltInNoArgs ( ) const
Status ApplicationDescription::status ( ) const
inline
bool ApplicationDescription::strictCompare ( const ApplicationDescription cmp) const
bool ApplicationDescription::tapToShareSupported ( ) const
inline
json_object * ApplicationDescription::toJSON ( ) const
std::string ApplicationDescription::toString ( ) const
Type ApplicationDescription::type ( ) const
inline
void ApplicationDescription::update ( const ApplicationStatus appStatus,
bool  isUpdating 
)
int ApplicationDescription::update ( const ApplicationDescription appDesc)
const std::string& ApplicationDescription::vendorName ( ) const
inline
const std::string& ApplicationDescription::vendorUrl ( ) const
inline
const std::string& ApplicationDescription::version ( ) const
inline
std::string ApplicationDescription::versionFromFile ( const std::string &  filePath,
const std::string &  folderPath 
)
static

default from constructor


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