|
||
class CMMFFormatSelectionParameters : public CBase;
Defines the format support required.
On construction, the selection parameters are blank, causing all plugins to be returned.
CBase
-
Base class for all classes to be instantiated on the heap.
CMMFFormatSelectionParameters
-
Defines the format support required.
Defined in CMMFFormatSelectionParameters
:
EMatchAny
All plugins will be selected. This is the default option.EMatchFileExtension
The match will be based on a file extension.EMatchHeaderData
The match will be based on a header data.EMatchMimeType
The match will be based on a mime type.MatchData()const
Returns the data used to perform the plugin match.MatchDataType()const
Returns the type of the data used to perform the plugin match.NewL()
Allocates and constructs a new format selection parameter object with blank para...NewLC()
Allocates and constructs a new format selection parameter object with blank para...SetMatchToFileNameL(const TDesC &)
Sets this object to match to a file extension.SetMatchToHeaderDataL(const TDesC8 &)
Sets this object to match to a pattern in header data.SetMatchToMimeTypeL(const TDesC8 &)
Sets this object to match to a MIME type.SetMatchToUriL(const TDesC &)
Sets this object to match to a file extension specified by a URITMatchDataType
Describes the type of match to be performed. The match types are mutually exclus...~CMMFFormatSelectionParameters()
Destructor.Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.Extension_(TUint,TAny *&,TAny *)
Extension function operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...IMPORT_C static CMMFFormatSelectionParameters* NewL();
Allocates and constructs a new format selection parameter object with blank parameters.
Calls CMMFFormatSelectionParameters::NewLC()
.
|
IMPORT_C static CMMFFormatSelectionParameters* NewLC();
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.
|
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.
|
IMPORT_C void SetMatchToMimeTypeL(const TDesC8 &aMimeType);
Sets this object to match to a MIME type.
|
IMPORT_C void SetMatchToHeaderDataL(const TDesC8 &aHeaderData);
Sets this object to match to a pattern in header data.
|
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.
|
TMatchDataType
Describes the type of match to be performed. The match types are mutually exclusive.
|