diff -r 60bb012f1157 -r 9e8b0cc88842 imagehandling_plat/thumbnailmanager_api/inc/thumbnailobjectsource.h --- a/imagehandling_plat/thumbnailmanager_api/inc/thumbnailobjectsource.h Wed Sep 15 12:32:44 2010 +0300 +++ b/imagehandling_plat/thumbnailmanager_api/inc/thumbnailobjectsource.h Wed Oct 13 14:53:56 2010 +0300 @@ -134,45 +134,6 @@ */ void ConstructL( const RFile64& aFile, const TDesC& aMimeType ); - /** - * Symbian 2nd phase constructor can leave. - * - * @since S60 v5.0 - * @param aURI URI. - * @param aMimeType MimeType. - * @param aThumbnailId ThumbnailId - */ - void ConstructL( const TDesC& aUri, const TDesC& aMimeType, TThumbnailId aThumbnailId ); - - /** - * Symbian 2nd phase constructor can leave. - * - * @since S60 v5.0 - * @param aBitmap Bitmap. - * @param aURI URI. - */ - void ConstructL( CFbsBitmap* aBitmap, const TDesC& aUri ); - - /** - * Symbian 2nd phase constructor can leave. - * - * @since S60 v5.0 - * @param aBuffer Buffer. - * @param aMimeType MIME type. Optional, but should be specified if known. - * @param aURI URI. - */ - void ConstructL( TDesC8* aBuffer, const TDesC& aMimeType, const TDesC& aUri ); - - /** - * Symbian 2nd phase constructor can leave. - * - * @since Symbian^3 - * @param aUri Object URI or a full path to a file in the file system. - * @param aTargetUri For linking the thumbnail to a different URI. - * @param aMimeType MIME type. Optional, but should be specified if known. - */ - void ConstructL( const TDesC& aUri, const TDesC& aTargetUri, const TDesC& aMimeType ); - private: // data @@ -199,19 +160,25 @@ /** * Bitmap */ + CFbsBitmap* iBitmap; // own /** * ThumbnailId - */ - TThumbnailId iThumbnailId; //own + */ - /** - * Uri - */ - HBufC* iTargetUri; // own + TThumbnailId iThumbnailId; //own public: + /** + * Symbian 2nd phase constructor can leave. + * + * @since S60 v5.0 + * @param aURI URI. + * @param aMimeType MimeType. + * @param aThumbnailId ThumbnailId + */ + void ConstructL( const TDesC& aUri, const TDesC& aMimeType, TThumbnailId aThumbnailId ); /** * Construct a new CThumbnailObjectSource referring to a buffer @@ -244,8 +211,7 @@ * @since S60 v5.0 * @return New CThumbnailObjectSource instance. */ - IMPORT_C static CThumbnailObjectSource* NewL( TDesC8* aBuffer, TDesC& aMimeType, - const TDesC& aUri ); + IMPORT_C static CThumbnailObjectSource* NewL( TDesC8* aBuffer, TDesC& aMimeType, const TDesC& aUri ); /** * Construct a new CThumbnailObjectSource referring to a buffer @@ -257,8 +223,7 @@ * @since S60 v5.0 * @return New CThumbnailObjectSource instance. */ - IMPORT_C static CThumbnailObjectSource* NewLC( TDesC8* aBuffer, TDesC& aMimeType, - const TDesC& aUri); + IMPORT_C static CThumbnailObjectSource* NewLC( TDesC8* aBuffer, TDesC& aMimeType, const TDesC& aUri); /** * Construct a new CThumbnailObjectSource referring to an URI. @@ -268,7 +233,7 @@ * @return New CThumbnailObjectSource instance. */ IMPORT_C static CThumbnailObjectSource* NewL( const TDesC& aUri, - TThumbnailId aThumbnailId = 0, const TDesC& aMimeType = KNullDesC ); + TThumbnailId aThumbnailId = 0, const TDesC& aMimeType = KNullDesC ); /** * Construct a new CThumbnailObjectSource referring to an URI. @@ -278,8 +243,9 @@ * @return New CThumbnailObjectSource instance. */ IMPORT_C static CThumbnailObjectSource* NewLC( const TDesC& aUri, - TThumbnailId aThumbnailId = 0, const TDesC& aMimeType = KNullDesC ); - + TThumbnailId aThumbnailId = 0, const TDesC& aMimeType = KNullDesC ); + + /** * Returns source buffer. * @@ -310,8 +276,30 @@ * * @since S60 v5.0 * @return ThumbnailId - */ - IMPORT_C TThumbnailId Id(); + */ + + IMPORT_C TThumbnailId Id(); + + /** + * Symbian 2nd phase constructor can leave. + * + * @since S60 v5.0 + * @param aBitmap Bitmap. + * @param aURI URI. + */ + void ConstructL( CFbsBitmap* aBitmap, const TDesC& + aUri ); + + /** + * Symbian 2nd phase constructor can leave. + * + * @since S60 v5.0 + * @param aBuffer Buffer. + * @param aMimeType MIME type. Optional, but should be specified if known. + * @param aURI URI. + */ + void ConstructL( TDesC8* aBuffer, const TDesC& + aMimeType, const TDesC& aUri ); /** * Returns source bitmap. @@ -329,36 +317,6 @@ * @return bitmap */ IMPORT_C CFbsBitmap* GetBitmapOwnership(); - - /** - * Construct a new CThumbnailObjectSource referring to an URI. - * @param aUri Object URI or a full path to a file in the file system. - * @param aTargetUri For linking the thumbnail to a different URI. - * @param aMimeType MIME type. Optional, but should be specified if known. - * @since Symbian^3 - * @return New CThumbnailObjectSource instance. - */ - IMPORT_C static CThumbnailObjectSource* NewL( const TDesC& aUri, - const TDesC& aTargetUri, const TDesC& aMimeType ); - - /** - * Construct a new CThumbnailObjectSource referring to an URI. - * @param aUri Object URI or a full path to a file in the file system. - * @param aTargetUri For linking the thumbnail to a different URI. - * @param aMimeType MIME type. - * @since Symbian^3 - * @return New CThumbnailObjectSource instance. - */ - IMPORT_C static CThumbnailObjectSource* NewLC( const TDesC& aUri, - const TDesC& aTargetUri, const TDesC& aMimeType ); - - /** - * Returns target uri. - * - * @since Symbian^3 - * @return uri - */ - IMPORT_C const TDesC& TargetUri(); }; #endif // THUMBNAILOBJECTSOURCE_H