| class CFileExtensionMIMEType : public CBase |
Class used to manage the mapping between an image's MIME type & file extension.
| Public Member Functions | |
|---|---|
| ~CFileExtensionMIMEType () | |
| IMPORT_C const TDesC & | DisplayName () |
| IMPORT_C const TDesC & | FileExtension () |
| IMPORT_C TUid | ImageSubType () |
| IMPORT_C TUid | ImageType () |
| IMPORT_C TUid | ImplementationUid () |
| IMPORT_C const TDesC8 & | MIMEType () |
| CFileExtensionMIMEType * | NewL (const TDesC8 &, const TDesC8 &, const TDesC &, TUid , TUid , TUid ) |
| IMPORT_C CFileExtensionMIMEType * | NewLC (const TDesC8 &, const TDesC8 &, const TDesC &, TUid , TUid , TUid ) |
| Private Member Functions | |
|---|---|
| CFileExtensionMIMEType () | |
| void | ConstructL (const TDesC8 &, const TDesC8 &, const TDesC &, TUid , TUid , TUid ) |
| Private Attributes | |
|---|---|
| HBufC * | iDisplayName |
| HBufC * | iFileExtension |
| TUid | iImageSubTypeUid |
| TUid | iImageTypeUid |
| TUid | iImplementationUid |
| HBufC8 * | iMIMEType |
| IMPORT_C | ~CFileExtensionMIMEType | ( | ) |
Destructor.
Frees all resources owned by the object prior to its destruction.
| void | ConstructL | ( | const TDesC8 & | aExtn, |
| const TDesC8 & | aMIMEType, | |||
| const TDesC & | aDisplayName, | |||
| TUid | aImageType, | |||
| TUid | aImageSubType, | |||
| TUid | aImplementationUid | |||
| ) | [private] | |||
Second phase constructor.
| const TDesC8 & aExtn | The file extension |
| const TDesC8 & aMIMEType | The associated MIME type. |
| const TDesC & aDisplayName | The display name of the implementation |
| TUid aImageType | The plugin decoder/encoder type UID. |
| TUid aImageSubType | The plugin decoder/encoder sub-type UID. |
| TUid aImplementationUid | The unique ID of the implementation. |
| IMPORT_C const TDesC & | DisplayName | ( | ) | const |
Returns the human-readable plugin description.
| IMPORT_C const TDesC & | FileExtension | ( | ) | const |
Returns the image file extension info.
| IMPORT_C TUid | ImageSubType | ( | ) | const |
Returns the image sub-type associated with the plugin.
| IMPORT_C TUid | ImplementationUid | ( | ) | const |
Returns the implementation UID of the plugin.
| CFileExtensionMIMEType * | NewL | ( | const TDesC8 & | aExtn, |
| const TDesC8 & | aMIMEType, | |||
| const TDesC & | aDisplayName, | |||
| TUid | aImageType, | |||
| TUid | aImageSubType, | |||
| TUid | aImplementationUid | |||
| ) | [static] | |||
Constructs a new file extension/MIME type entry.
A leave occurs if there is insufficient memory available.
| const TDesC8 & aExtn | The file extension. |
| const TDesC8 & aMIMEType | The associated MIME type. |
| const TDesC & aDisplayName | The display name of the implementation |
| TUid aImageType | The plugin decoder/encoder type UID. |
| TUid aImageSubType | The plugin decoder/encoder sub-type UID. |
| TUid aImplementationUid | The unique ID of the implementation. |
| IMPORT_C CFileExtensionMIMEType * | NewLC | ( | const TDesC8 & | aExtn, |
| const TDesC8 & | aMIMEType, | |||
| const TDesC & | aDisplayName, | |||
| TUid | aImageType, | |||
| TUid | aImageSubType, | |||
| TUid | aImplementationUid | |||
| ) | [static] | |||
Constructs a new file extension/MIME type entry. The new object is left on the clean-up stack.
A leave occurs if there is insufficient memory available.
| const TDesC8 & aExtn | The file extension. |
| const TDesC8 & aMIMEType | The associated MIME type. |
| const TDesC & aDisplayName | The display name of the implementation |
| TUid aImageType | The plugin decoder/encoder type UID. |
| TUid aImageSubType | The plugin decoder/encoder sub-type UID. |
| TUid aImplementationUid | The unique ID of the implementation. |
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.