Home · All Namespaces · All Classes
Public Slots | Signals | Public Member Functions | Static Public Member Functions

ApplicationPackageMonitorListener Class Reference

#include <applicationpackagemonitorlistener.h>

List of all members.

Public Slots

void setDownloadProgress (const QString &desktopEntryPath, const QString &packageName, int bytesLoaded, int bytesTotal, bool packageRemovable)
void setInstallProgress (const QString &desktopEntryPath, const QString &packageName, int percentage, bool packageRemovable)
void setOperationSuccess (const QString &desktopEntryPath, const QString &packageName, bool packageRemovable)
void setOperationError (const QString &desktopEntryPath, const QString &packageName, const QString &error, bool packageRemovable)
void setPackageUninstall (const QString &desktopEntryPath, const QString &packageName, bool packageRemovable)

Signals

void packageStateChanged (const QString &desktopEntryPath, const QString &packageName, LauncherButtonModel::State state, int progress, bool packageRemovable)
void installExtraEntryRemoved (const QString &desktopEntryPath)
void updatePackageName (const QString &desktopEntryPath, const QString &packageName)

Public Member Functions

 ApplicationPackageMonitorListener ()
virtual ~ApplicationPackageMonitorListener ()
void updatePackageStates ()

Static Public Member Functions

static bool isInstallerExtraEntry (const QString &desktopEntryPath)
 Checks whether given desktop entry is located in installer extra folder.
static QString toInstallerExtraEntryPath (const QString &entryPath)
 Returns given entry file in installer extra path.
static QString toApplicationsEntryPath (const QString &entryPath)
 Returns given entry file in applictions path.

Detailed Description

ApplicationPackageMonitorListener listens signals from Application Package Manager to be used for updating Launcher Button and Quick Launcg Bar Button statuses.


Constructor & Destructor Documentation

ApplicationPackageMonitorListener::ApplicationPackageMonitorListener (  ) 

Initializes ApplicationPackageMonitorListener object.

ApplicationPackageMonitorListener::~ApplicationPackageMonitorListener (  )  [virtual]

Member Function Documentation

void ApplicationPackageMonitorListener::installExtraEntryRemoved ( const QString &  desktopEntryPath  )  [signal]

Signal sent when we have received a installExtraEntryRemoved signal from ApplicationPackageMonitor

bool ApplicationPackageMonitorListener::isInstallerExtraEntry ( const QString &  desktopEntryPath  )  [static]

Checks whether given desktop entry is located in installer extra folder.

void ApplicationPackageMonitorListener::packageStateChanged ( const QString &  desktopEntryPath,
const QString &  packageName,
LauncherButtonModel::State  state,
int  progress,
bool  packageRemovable 
) [signal]

Signal sent when we have received and handled a signal from ApplicationPackageMonitor

void ApplicationPackageMonitorListener::setDownloadProgress ( const QString &  desktopEntryPath,
const QString &  packageName,
int  bytesLoaded,
int  bytesTotal,
bool  packageRemovable 
) [slot]

Set button state to "downloading", and calculate and set it's progress

Parameters:
desktopEntryName Desktop entry of the application button represents
packageName name of the package
bytesLoaded Amount of bytes loaded
bytesTotal Total amount of bytes to download
packageRemovable is package removable
void ApplicationPackageMonitorListener::setInstallProgress ( const QString &  desktopEntryPath,
const QString &  packageName,
int  percentage,
bool  packageRemovable 
) [slot]

Set button state to "installing", and set it's progress

Parameters:
desktopEntryName Desktop entry of the application button represents
packageName name of the package
percentage Percentage of installation completed
packageRemovable is package removable
void ApplicationPackageMonitorListener::setOperationError ( const QString &  desktopEntryPath,
const QString &  packageName,
const QString &  error,
bool  packageRemovable 
) [slot]

Set button state to "broken"

Parameters:
desktopEntryName Desktop entry of the application button represents
packageName name of the package
error Error message
packageRemovable is package removable
void ApplicationPackageMonitorListener::setOperationSuccess ( const QString &  desktopEntryPath,
const QString &  packageName,
bool  packageRemovable 
) [slot]

Set button state to "installed"

Parameters:
desktopEntryName Desktop entry of the application button represents
packageName name of the package
packageRemovable is package removable
void ApplicationPackageMonitorListener::setPackageUninstall ( const QString &  desktopEntryPath,
const QString &  packageName,
bool  packageRemovable 
) [slot]

Set button state to "uninstall"

Parameters:
desktopEntryName Desktop entry of the application button represents
packageName name of the package
packageRemovable is package removable
QString ApplicationPackageMonitorListener::toApplicationsEntryPath ( const QString &  entryPath  )  [static]

Returns given entry file in applictions path.

QString ApplicationPackageMonitorListener::toInstallerExtraEntryPath ( const QString &  entryPath  )  [static]

Returns given entry file in installer extra path.

void ApplicationPackageMonitorListener::updatePackageName ( const QString &  desktopEntryPath,
const QString &  packageName 
) [signal]

Notifies about a need to update package name.

Parameters:
desktopEntryPath path that specifies the package.
packageName name of the package
void ApplicationPackageMonitorListener::updatePackageStates (  ) 

Updates package states


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

Copyright © 2011 Nokia Corporation Generated on Thu Jul 7 2011 22:14:50
Doxygen 1.7.1
MeeGo Touch