class CMMFFormatSelectionParameters : public CBase |
Defines the format support required.
On construction, the selection parameters are blank, causing all plugins to be returned.
Public Member Functions | |
---|---|
~CMMFFormatSelectionParameters () | |
IMPORT_C const TDesC8 & | MatchData () |
IMPORT_C TMatchDataType | MatchDataType () |
IMPORT_C const TDesC8 & | MatchUriScheme () |
IMPORT_C CMMFFormatSelectionParameters * | NewL () |
CMMFFormatSelectionParameters * | NewL (const CMMFFormatSelectionParameters &) |
IMPORT_C CMMFFormatSelectionParameters * | NewLC () |
IMPORT_C void | SetMatchToFileNameL (const TDesC &) |
IMPORT_C void | SetMatchToHeaderDataL (const TDesC8 &) |
IMPORT_C void | SetMatchToMimeTypeL (const TDesC8 &) |
IMPORT_C void | SetMatchToUriL (const TDesC &) |
IMPORT_C void | SetMatchToUriSupportL (const TDesC &) |
Protected Member Functions | |
---|---|
CMMFFormatSelectionParameters () | |
void | ConstructL (const CMMFFormatSelectionParameters &) |
Public Member Enumerations | |
---|---|
enum | TMatchDataType { EMatchAny , EMatchFileExtension , EMatchMimeType , EMatchHeaderData , EMatchUri } |
Private Attributes | |
---|---|
TMatchDataType | iMatchDataType |
CMatchData * | iMatchReqData |
CMMFFormatSelectionParameters | ( | ) | [protected] |
Protected constructor.
void | ConstructL | ( | const CMMFFormatSelectionParameters & | aParams | ) | [protected] |
const CMMFFormatSelectionParameters & aParams |
IMPORT_C const TDesC8 & | MatchData | ( | ) | const |
Returns the data used to perform the plugin match.
IMPORT_C TMatchDataType | MatchDataType | ( | ) | const |
Returns the type of the data used to perform the plugin match.
IMPORT_C const TDesC8 & | MatchUriScheme | ( | ) | const |
Returns the uri scheme used to perform the plugin match.
Returns the uri scheme used to perform the plugin match.
IMPORT_C CMMFFormatSelectionParameters * | NewL | ( | ) | [static] |
Allocates and constructs a new format selection parameter object with blank parameters.
Calls NewLC() .
CMMFFormatSelectionParameters * | NewL | ( | const CMMFFormatSelectionParameters & | aParams | ) | [static] |
Allocates and constructs a new format selection parameter object with the specified parameters.
const CMMFFormatSelectionParameters & aParams | The required parameters. |
IMPORT_C CMMFFormatSelectionParameters * | NewLC | ( | ) | [static] |
Allocates and constructs a new format selection parameter object with blank parameters, placing it on the cleanup stack.
IMPORT_C void | SetMatchToFileNameL | ( | const TDesC & | aFileName | ) |
Sets this object to match to a file extension.
aFileName can be a full filename or just an extension. If there is no dot in the filename and it is 5 characters or less in length then it is assumed to be an extension. If the first character of the filename is a dot, it assumed to be an extension. Otherwise, the filename is parsed using TParse to reveal the extension.
Once the extension has been extracted, it is converted from unicode to utf8 and copied into iMatchData.
const TDesC & aFileName | The file name to be matched. Must include the extension. |
IMPORT_C void | SetMatchToHeaderDataL | ( | const TDesC8 & | aHeaderData | ) |
Sets this object to match to a pattern in header data.
const TDesC8 & aHeaderData | The header of the file in question. This header data will be matched against the match patterns provided by the plugins. |
IMPORT_C void | SetMatchToMimeTypeL | ( | const TDesC8 & | aMimeType | ) |
Sets this object to match to a MIME type.
const TDesC8 & aMimeType | The mime type to match. |
IMPORT_C void | SetMatchToUriL | ( | const TDesC & | aUri | ) |
Sets this object to match to a file extension specified by a URI
Once the extension has been extracted, it is copied into iMatchData.
const TDesC & aUri | The URI containing the file name to be matched. Must include the extension. |
IMPORT_C void | SetMatchToUriSupportL | ( | const TDesC & | aUri | ) |
Sets this object to match to uri scheme and file extension specified by a URI.
The Uri scheme and extension are saved in iMatchReqData. Further,iMatchData contains uri extension, iMatchUriScheme contains uri scheme.
Sets this object to match to uri scheme and file extension specified by a URI.
The Uri scheme and extension are saved in iMatchReqData. Further,iMatchData contains uri extension, iMatchUriScheme contains uri scheme.
const TDesC & aUri | The URI containing the scheme and uri extension to be matched. |
Describes the type of match to be performed. The match types are mutually exclusive.
EMatchAny |
All plugins will be selected. This is the default option. |
EMatchFileExtension |
The match will be based on a file extension. |
EMatchMimeType |
The match will be based on a mime type. |
EMatchHeaderData |
The match will be based on a header data. |
EMatchUri |
The match will be based on Uri details. |
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.