#include <mmf/common/mmfcontrollerpluginresolver.h>
Link against: mmfcontrollerframework.lib
class CMMFFormatSelectionParameters : public CBase, 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.
Enumerator | Value | Description |
---|---|---|
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. |
void | ConstructL | ( | const CMMFFormatSelectionParameters & | aParams | ) | [protected] |
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.
Parameters | |
---|---|
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.
Parameters | |
---|---|
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.
Parameters | |
---|---|
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.
Parameters | |
---|---|
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.
Parameters | |
---|---|
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.
Parameters | |
---|---|
aUri | The URI containing the scheme and uri extension to be matched. |