| class CHarvesterData : public CBase |
Class that encapsulates harvesting related data/harvesting request data. These instances are moved around the MdS Harvesting framework and this class encapsulates all information needed when harvesting a file/item.
| Private Member Functions | |
|---|---|
| CHarvesterData (const HBufC *) | |
| void | ConstructL () |
| Private Attributes | |
|---|---|
| TBool | iAddLocation |
| CBase * | iClientData |
| TUid | iClientId |
| TInt | iErrorCode |
| THarvesterEventType | iEventType |
| TBool | iIsBinary |
| TLocationData * | iLocationData |
| CMdEObject * | iMdeObject |
| THarvesterObjectType | iObjectType |
| MHarvesterPluginObserver * | iObserver |
| TOrigin | iOrigin |
| CHarvesterPluginInfo * | iPluginInfo |
| TBool | iTakeSnapshot |
| const HBufC * | iUri |
| CHarvesterData | ( | const HBufC * | aUri | ) | [private] |
Constructor for performing 1st stage construction
| const HBufC * aUri | URI of the item ie. filename. |
| IMPORT_C TBool | AddLocation | ( | ) |
Method returns whether location data should be added to MdE DB or not.
| IMPORT_C CBase * | ClientData | ( | ) |
Method returns the custom harvesting data (received from client)
| void | ConstructL | ( | ) | [private] |
Default constructor for performing 2nd stage construction
| IMPORT_C CHarvesterPluginInfo * | HarvesterPluginInfo | ( | ) |
Method returns harvester plug-in info structure.
| IMPORT_C TLocationData * | LocationData | ( | ) |
Method returns the location metadata structure.
| IMPORT_C CMdEObject & | MdeObject | ( | ) |
Method returns the metadata objects which is used to store the metadata from the file/item that is harvested.
| IMPORT_C CHarvesterData * | NewL | ( | const HBufC * | aUri | ) | [static] |
Two-phased constructor.
| const HBufC * aUri | URI of the file, usually filename. With messages can be messageID. |
| IMPORT_C CHarvesterData * | NewLC | ( | const HBufC * | aUri | ) | [static] |
Two-phased constructor.
| const HBufC * aUri | URI of the file, usually filename. With messages can be messageID. |
| IMPORT_C THarvesterObjectType | ObjectType | ( | ) |
Method retursn the (object) type of the harvesting procedure.
| IMPORT_C MHarvesterPluginObserver * | PluginObserver | ( | ) |
Method returns pointer to the harvesting observer (Harvester server).
| IMPORT_C void | SetAddLocation | ( | TBool | aAdd | ) |
Method sets a flag which defines whether location data should be added to MdE DB or not.
| TBool aAdd | Client application UID. |
| IMPORT_C void | SetBinary | ( | TBool | aValue | ) |
Method sets a flag determinning
| TBool aValue |
| IMPORT_C void | SetClientData | ( | CBase * | aClientData | ) |
Method sets the custom harvesting data from client.
| CBase * aClientData | Custom harvesting data from client. |
| IMPORT_C void | SetClientId | ( | TUid | aClientId | ) |
Method sets the client application UID.
| TUid aClientId | Client application UID. |
| IMPORT_C void | SetErrorCode | ( | TInt | aErrorCode | ) |
Method sets the error code for harvesting.
| TInt aErrorCode | Error code for harvesting |
| IMPORT_C void | SetEventType | ( | THarvesterEventType | aEventType | ) |
Method sets harvesting type.
| THarvesterEventType aEventType | Harvesting type |
| IMPORT_C void | SetHarvesterPluginInfo | ( | CHarvesterPluginInfo * | aPluginInfo | ) |
Method sets harvesting plug-in information which is needed to carry out the harvesting procedure
| CHarvesterPluginInfo * aPluginInfo | Pointer to harvester plug-in info structure. |
| IMPORT_C void | SetLocationData | ( | TLocationData * | aLD | ) |
Method sets location metadadata (GPS).
| TLocationData * aLD | Pointer to the location metadata structure. |
| IMPORT_C void | SetMdeObject | ( | CMdEObject * | aMdeObject | ) |
Method sets metadata object which will be used to store the metadata in the harvesting plug-in.
| CMdEObject * aMdeObject | Pointer to the metadata object that will be used to store the metadata from the file/item. |
| IMPORT_C void | SetObjectType | ( | THarvesterObjectType | aObjectType | ) |
Method sets (object) type of the harvesting procedure.
| THarvesterObjectType aObjectType | Type of the harvesting procedure. |
| IMPORT_C void | SetOrigin | ( | TOrigin | aOrigin | ) |
Method sets the origin information for the file/item.
| TOrigin aOrigin | Origin of the file/item. |
| IMPORT_C void | SetPluginObserver | ( | MHarvesterPluginObserver & | aObserver | ) |
Method sets observer for this harvesting request (Harvester server)
| MHarvesterPluginObserver & aObserver | Pointer to the harvesting observer in the harvesting FW |
| IMPORT_C void | SetTakeSnapshot | ( | TBool | aTakeSnapshot | ) |
Method sets flag whether Context snapshot (with Context Engine) is required during harvesting.
| TBool aTakeSnapshot | Whether Context snapshot is required or not. |
| IMPORT_C TBool | TakeSnapshot | ( | ) |
Method returns whether Context snapshot is required or not.
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.