#include <mmf/common/mmfcontrollerpluginresolver.h>
class CMMFFormatSelectionParameters : public CBase |
Public Member Enumerations | |
---|---|
enum | TMatchDataType { EMatchAny, EMatchFileExtension, EMatchMimeType, EMatchHeaderData, EMatchUri } |
Public Member Functions | |
---|---|
virtual | ~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 &) |
Defines the format support required.
On construction, the selection parameters are blank, causing all plugins to be returned.
Describes the type of match to be performed. The match types are mutually exclusive.
void | ConstructL | ( | const CMMFFormatSelectionParameters & | aParams | ) | [protected] |
IMPORT_C const TDesC8 & | MatchData | ( | ) | const |
Returns the data used to perform the plugin match.
Returns: The match data.
IMPORT_C TMatchDataType | MatchDataType | ( | ) | const |
Returns the type of the data used to perform the plugin match.
Returns: The match data type.
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.
Returns: The uri scheme.The uri scheme.
IMPORT_C CMMFFormatSelectionParameters * | NewL | ( | ) | [static] |
Allocates and constructs a new format selection parameter object with blank parameters.
Calls NewLC().
Returns: A new format selection parameter object.
CMMFFormatSelectionParameters * | NewL | ( | const CMMFFormatSelectionParameters & | aParams | ) | [static] |
Allocates and constructs a new format selection parameter object with the specified parameters.
Parameter | Description |
---|---|
aParams | The required parameters. |
Returns: A new format selection parameter object.
IMPORT_C CMMFFormatSelectionParameters * | NewLC | ( | ) | [static] |
Allocates and constructs a new format selection parameter object with blank parameters, placing it on the cleanup stack.
Returns: A new format selection parameter object.
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.
Parameter | Description |
---|---|
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.
Parameter | Description |
---|---|
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.
Parameter | Description |
---|---|
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.
Parameter | Description |
---|---|
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.
Parameter | Description |
---|---|
aUri | The URI containing the scheme and uri extension to be matched. |