class CMmsConformance : public CBase |
CMmsConformance ...
Public Member Functions | |
---|---|
~CMmsConformance () | |
void | CheckCharacterSet ( TBool ) |
TUint8 | ConformanceVersion () |
IMPORT_C TUint8 | ConformanceVersionL () |
TBool | CreationMode () |
TBool | CreationModeUserChangeable () |
IMPORT_C TBool | IsConformantMime (const TPtrC8 &) |
TUint32 | MaxSendSize () |
IMPORT_C TMmsConformance | MediaConformance (CMsgMediaInfo &) |
IMPORT_C CMmsConformance * | NewL () |
IMPORT_C CMmsConformance * | NewLC () |
void | SetCreationMode ( TBool ) |
void | SetImageSizeSetting ( TSize ) |
void | SetMaxSendSize ( TUint32 ) |
Private Member Functions | |
---|---|
CMmsConformance () | |
void | CheckDRMStatus () |
TBool | CheckFileSize () |
TBool | CheckImageSize () |
TMmsConfClass | ClassByImageResolution ( TSize ) |
void | ConstructL () |
TBool | LargerThanImageSizeSetting ( TSize ) |
void | ResolveAttachment () |
void | ResolveAudioAmr () |
void | ResolveAudioSpMidi () |
LocalFuncPtr | ResolveFunction (const TPtrC8 &) |
void | ResolveImageGif () |
void | ResolveImageJpeg () |
void | ResolveImagePng () |
void | ResolveImageWbmp () |
void | ResolveNonconformantAttachment () |
void | ResolveTextPlain () |
void | ResolveTextXhtml () |
void | ResolveVideo3gpp () |
void | ResolveVideo3gpp2 () |
Private Member Enumerations | |
---|---|
enum | TResolverFlags { EDrmFeatureFull = 0x0001, ECreationModeRestricted = 0x0002, ECreationModeUserChangeable = 0x0004, EMms3gpp2Mode = 0x0008, ECheckCharacterSet = 0x0010 } |
Private Attributes | |
---|---|
TMmsConformance | iConformance |
TUint32 | iMaxSendSize |
CMsgMediaInfo * | iMediaInfo |
TUint8 | iMmsVersion |
TUint32 | iResolverFlags |
TSize | iSettingsImageSize |
void | CheckCharacterSet | ( | TBool | aCheck | ) | [inline] |
CheckCharacterSet
With this method it is possible to control whether the conformance of the character set is checked for text/plain files.
By default character set conformance is checked, i.e. CheckCharacterSet flag is ETrue.
If set EFalse the client is responsible for converting the character set to a conformant one (either US-ASCII or UTF-8).
TBool aCheck | ETrue, character set conformance is checked, EFalse, character set conformance is not checked. |
TBool | CheckImageSize | ( | ) | [private] |
Determines conformance of an image file based on the file size and the image resolution.
TMmsConfClass | ClassByImageResolution | ( | TSize | aImageSize | ) | [private] |
Subfunction of CheckImageSize. Determines enumeration from image resolution
TSize aImageSize | Size of the image |
TUint8 | ConformanceVersion | ( | ) | const [inline] |
Get the OMA Conformance Document version supported by the current implementation.
IMPORT_C TUint8 | ConformanceVersionL | ( | ) | [static] |
Static version of the function that returns the OMA Conformance Document version supported by the current implementation.
TBool | CreationModeUserChangeable | ( | ) | const [inline] |
User changeable creation mode
IMPORT_C TBool | IsConformantMime | ( | const TPtrC8 & | aMimeType | ) |
Checks whether the MIME type is MMS conformant or not.
const TPtrC8 & aMimeType | IN Mime type of the file. |
TBool | LargerThanImageSizeSetting | ( | TSize | aImageSize | ) | [private, inline] |
Compares size to MMS Settings "Image size".
TSize aImageSize | Size of the image |
IMPORT_C TMmsConformance | MediaConformance | ( | CMsgMediaInfo & | aMediaInfo | ) |
Resolves conformance status of the given media object.
CMsgMediaInfo & aMediaInfo | IN Mime type of the file. |
void | ResolveAttachment | ( | ) | [private] |
Determines conformance for supported attachment MIME types.
void | ResolveAudioSpMidi | ( | ) | [private] |
Determines conformance for audio/sp-midi.
LocalFuncPtr | ResolveFunction | ( | const TPtrC8 & | aMimeType | ) | [private] |
const TPtrC8 & aMimeType |
void | ResolveNonconformantAttachment | ( | ) | [private] |
Determines conformance for unsupported attachment MIME types.
void | ResolveTextXhtml | ( | ) | [private] |
Determines conformance for application/xhtml+xml.
void | SetCreationMode | ( | TBool | aFree | ) | [inline] |
Set MMS creation mode
The default creation mode (in MMS Settings) can be overriden with this function.
TBool aFree | ETrue, Set creation mode to "free" EFalse, Set creation mode to "restricted" |
void | SetImageSizeSetting | ( | TSize | aImageSize | ) | [inline] |
Set image size setting
The default image size setting (in MMS Settings) can be overriden with this function.
NOTICE! There is no guarantee that the message can be sent if the size is defined bigger than the default max send size.
TSize aImageSize | Image size in pixels |
void | SetMaxSendSize | ( | TUint32 | aMaxSize | ) | [inline] |
Set maximum send size for a multimedia message
The default max send size (in MMS Settings) can be overriden with this function.
NOTICE! There is no guarantee that the message can be sent if the size is defined bigger than the default max send size.
TUint32 aMaxSize | 0, unlimited other value, max send size in bytes |
EDrmFeatureFull = 0x0001 | |
ECreationModeRestricted = 0x0002 | |
ECreationModeUserChangeable = 0x0004 | |
EMms3gpp2Mode = 0x0008 | |
ECheckCharacterSet = 0x0010 |
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.