class CIAUpdate : public CBase |
CIAUpdate object provides methods to handle update actions. Updating will be targeted to the update items that qualify the requirements given in CIAUpdateParameters objects. In asynchronous actions, the callback functions of MIAUpdateObserver object will be informed about the progress of update actions.
Public Member Functions | |
---|---|
~CIAUpdate () | |
IMPORT_C void | CheckUpdates (const CIAUpdateParameters &) |
IMPORT_C CIAUpdate * | NewL ( MIAUpdateObserver &) |
IMPORT_C CIAUpdate * | NewLC ( MIAUpdateObserver &) |
IMPORT_C void | ShowUpdates (const CIAUpdateParameters &) |
IMPORT_C void | Update (const CIAUpdateParameters &) |
IMPORT_C void | UpdateQuery () |
Private Member Functions | |
---|---|
CIAUpdate () | |
CIAUpdate (const CIAUpdate &) | |
void | ConstructL ( MIAUpdateObserver &) |
CIAUpdateManager & | UpdateManager () |
CIAUpdate & | operator= (const CIAUpdate &) |
Private Attributes | |
---|---|
CIAUpdateManager * | iUpdateManager |
CIAUpdate | ( | ) | [private] |
Constructor is private because this class is not meant for inheritance.
CIAUpdate | ( | const CIAUpdate & | aObject | ) | [private] |
const CIAUpdate & aObject |
IMPORT_C void | CheckUpdates | ( | const CIAUpdateParameters & | aUpdateParameters | ) |
Checks if any updates are available. This function is asynchronic.
Uid describes either package UID or SID. UID is assumed to be SID if update items are not found with the given UID. Then, corresponding package UID is searched from the installed application registry. If corresponding package UID is found, then update items are rechecked.
If Uid is given, then search criteria is omitted.
If none of the parameters that are mentioned above is not set, then all the updates are checked.
CIAUpdateParameters::ShowProgress defines if a ready-made wait dialog should be shown in case the operation takes longer time. This happens e.g. if the updates are refreshed from the server.
const CIAUpdateParameters & aUpdateParameters | Defines the update targets. |
void | ConstructL | ( | MIAUpdateObserver & | aObserver | ) | [private] |
MIAUpdateObserver & aObserver |
IMPORT_C CIAUpdate * | NewL | ( | MIAUpdateObserver & | aObserver | ) | [static] |
MIAUpdateObserver & aObserver | Callback functions of the observer are called when operations that are started from this interface progress. |
IMPORT_C CIAUpdate * | NewLC | ( | MIAUpdateObserver & | aObserver | ) | [static] |
MIAUpdateObserver & aObserver |
IMPORT_C void | ShowUpdates | ( | const CIAUpdateParameters & | aUpdateParameters | ) |
Starts IAD UI.
UI will show the update items that qualify the requirements given in aUpdateParameters.
Even if the updating is handled in the IAD UI, the observer is informed about the progression of operations. So, the calling application may continue correctly after updates are finished.
Uid describes either package UID or SID. UID is assumed to be SID if update items are not found with the given UID. Then, corresponding package UID is searched from the installed application registry. If corresponding package UID is found, then update items are rechecked.
If Uid is given, then search criteria is omitted.
If none of the parameters that are mentioned above is not set, then all the updates are shown in the UI.
If CIAUpdateParameters::CommandLineExecutable is not set, then no command line execution is done.
const CIAUpdateParameters & aUpdateParameters | Defines the update targets. |
IMPORT_C void | Update | ( | const CIAUpdateParameters & | aUpdateParameters | ) |
All the items that qualify the requirements given in aUpdateParameters will be updated without opening the IAD UI. This function is asynchronic.
Uid describes either package UID or SID. UID is assumed to be SID if update items are not found with the given UID. Then, corresponding package UID is searched from the installed application registry. If corresponding package UID is found, then update items are rechecked.
If Uid is given, then search criteria is omitted.
If none of the parameters that are mentioned above is not set, then everything is updated.
If CIAUpdateParameters::CommandLineExecutable is not set, then no command line execution is done.
const CIAUpdateParameters & aUpdateParameters | Defines the update targets. |
IMPORT_C void | UpdateQuery | ( | ) |
This function is provided as a convenience method that has localized texts for the query dialog. This function does not start any update. This function is asynchronic.
The observer is informed when the update query operation has completed.
CIAUpdate & | operator= | ( | const CIAUpdate & | aObject | ) | [private] |
const CIAUpdate & aObject |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.