CPbk2ImageManager Class Reference
class CPbk2ImageManager : public CBase |
Phonebook 2 image manager. Contains operations for attaching, removing and querying images connected to Phonebook 2 contacts.
For all thumbnail images all the Set* operations convert the image to full color (24 bits/pixel) JPEG format and scale it to KPbk2PersonalImageSize before connecting the image to a contact. Scaling does not change image's aspect ratio. If the original image is in JPEG format and its size is <=KPbk2PersonalImageSize a copy of the original image is stored directly.
For all call object images all the Set* operations convert the image to full color (24 bits/pixel) JPEG format and scale it to the total area of the screen available to the application before connecting the image to a contact. Scaling does not change image's aspect ratio. If the original image is in JPEG format and its size is <= the application screen area a copy of the original image is stored directly.
MPbk2ImageGetObserver MPbk2ImageSetObserver
Public Member Functions |
---|
| ~CPbk2ImageManager() |
IMPORT_C MPbk2ImageOperation * | GetImageAsyncL(TPbk2ImageManagerParams *, MVPbkBaseContact &, const MVPbkFieldType &, MPbk2ImageGetObserver &) |
IMPORT_C TBool | HasImage(const MVPbkBaseContact &, const MVPbkFieldType &) |
IMPORT_C CPbk2ImageManager * | NewL(CVPbkContactManager &) |
IMPORT_C void | RemoveImage(MVPbkStoreContact &, const MVPbkFieldType &) |
IMPORT_C MPbk2ImageOperation * | SetImageAsyncL(MVPbkStoreContact &, const MVPbkFieldType &, MPbk2ImageSetObserver &, const CFbsBitmap &) |
IMPORT_C MPbk2ImageOperation * | SetImageAsyncL(MVPbkStoreContact &, const MVPbkFieldType &, MPbk2ImageSetObserver &, const TDesC8 &) |
IMPORT_C MPbk2ImageOperation * | SetImageAsyncL(MVPbkStoreContact &, const MVPbkFieldType &, MPbk2ImageSetObserver &, const TDesC &) |
Constructor & Destructor Documentation
CPbk2ImageManager(CVPbkContactManager &)
Member Functions Documentation
ConstructL()
void | ConstructL | ( | ) | [private, inline] |
GetImageAsyncL(TPbk2ImageManagerParams *, MVPbkBaseContact &, const MVPbkFieldType &, MPbk2ImageGetObserver &)
Gets a image bitmap from a contact asynchronously.
HasImage(const MVPbkBaseContact &, const MVPbkFieldType &)
Returns true if a contact has an image attached to it in a specified field.
Parameters
const MVPbkBaseContact & aContact | Contact that is queried for the image. |
const MVPbkFieldType & aFieldType | A field type from where to look for the image. |
NewL(CVPbkContactManager &)
Creates new instance of this class.
RemoveImage(MVPbkStoreContact &, const MVPbkFieldType &)
Removes any image from a contact at the specified field.
SetImageAsyncL(MVPbkStoreContact &, const MVPbkFieldType &, MPbk2ImageSetObserver &, const CFbsBitmap &)
Sets a image for a contact asynchronously.
SetImageAsyncL(MVPbkStoreContact &, const MVPbkFieldType &, MPbk2ImageSetObserver &, const TDesC8 &)
Sets a image for a contact asynchronously.
SetImageAsyncL(MVPbkStoreContact &, const MVPbkFieldType &, MPbk2ImageSetObserver &, const TDesC &)
Sets a image for a contact asynchronously.
Parameters
MVPbkStoreContact & aContact | A contact to where the image will be set. |
const MVPbkFieldType & aFieldType | A field type to where the image will be set. |
MPbk2ImageSetObserver & aObserver | Observer for this operation. |
const TDesC & aFileName | File name for a image to set as the image for contact. |
Member Data Documentation
CVPbkContactManager & iContactManager
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.