CMmsConformance Class Reference

class CMmsConformance : public CBase

CMmsConformance...

MsgMedia.lib
Since
3.1

Inherits from

Public Member Functions
~CMmsConformance()
voidCheckCharacterSet(TBool)
TUint8 ConformanceVersion()
IMPORT_C TUint8ConformanceVersionL()
TBool CreationMode()
TBool CreationModeUserChangeable()
IMPORT_C TBoolIsConformantMime(const TPtrC8 &)
TUint32 MaxSendSize()
IMPORT_C TMmsConformanceMediaConformance(CMsgMediaInfo &)
IMPORT_C CMmsConformance *NewL()
IMPORT_C CMmsConformance *NewLC()
voidSetCreationMode(TBool)
voidSetImageSizeSetting(TSize)
voidSetMaxSendSize(TUint32)
Private Member Functions
CMmsConformance()
voidCheckDRMStatus()
TBool CheckFileSize()
TBool CheckImageSize()
TMmsConfClass ClassByImageResolution(TSize)
voidConstructL()
TBool LargerThanImageSizeSetting(TSize)
voidResolveAttachment()
voidResolveAudioAmr()
voidResolveAudioSpMidi()
LocalFuncPtr ResolveFunction(const TPtrC8 &)
voidResolveImageGif()
voidResolveImageJpeg()
voidResolveImagePng()
voidResolveImageWbmp()
voidResolveNonconformantAttachment()
voidResolveTextPlain()
voidResolveTextXhtml()
voidResolveVideo3gpp()
voidResolveVideo3gpp2()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Member Enumerations
enumTResolverFlags { EDrmFeatureFull = 0x0001, ECreationModeRestricted = 0x0002, ECreationModeUserChangeable = 0x0004, EMms3gpp2Mode = 0x0008, ECheckCharacterSet = 0x0010 }
Private Attributes
TMmsConformance iConformance
TUint32 iMaxSendSize
CMsgMediaInfo *iMediaInfo
TUint8 iMmsVersion
TUint32 iResolverFlags
TSize iSettingsImageSize

Constructor & Destructor Documentation

CMmsConformance()

CMmsConformance()[private]

Constructor.

~CMmsConformance()

~CMmsConformance()[virtual]

Destructor

Member Functions Documentation

CheckCharacterSet(TBool)

voidCheckCharacterSet(TBoolaCheck)[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).

Parameters

TBool aCheckETrue, character set conformance is checked, EFalse, character set conformance is not checked.

CheckDRMStatus()

voidCheckDRMStatus()[private]

CheckFileSize()

TBool CheckFileSize()[private]

Determines conformance based on the file size.

CheckImageSize()

TBool CheckImageSize()[private]

Determines conformance of an image file based on the file size and the image resolution.

ClassByImageResolution(TSize)

TMmsConfClass ClassByImageResolution(TSizeaImageSize)[private]

Subfunction of CheckImageSize. Determines enumeration from image resolution

Parameters

TSize aImageSizeSize of the image

ConformanceVersion()

TUint8 ConformanceVersion()const [inline]

Get the OMA Conformance Document version supported by the current implementation.

ConformanceVersionL()

IMPORT_C TUint8ConformanceVersionL()[static]

Static version of the function that returns the OMA Conformance Document version supported by the current implementation.

ConstructL()

voidConstructL()[private]

2nd phase constructor.

CreationMode()

TBool CreationMode()const [inline]

Get MMS creation mode

CreationModeUserChangeable()

TBool CreationModeUserChangeable()const [inline]

User changeable creation mode

IsConformantMime(const TPtrC8 &)

IMPORT_C TBoolIsConformantMime(const TPtrC8 &aMimeType)

Checks whether the MIME type is MMS conformant or not.

Parameters

const TPtrC8 & aMimeTypeIN Mime type of the file.

LargerThanImageSizeSetting(TSize)

TBool LargerThanImageSizeSetting(TSizeaImageSize)[private, inline]

Compares size to MMS Settings "Image size".

Parameters

TSize aImageSizeSize of the image

MaxSendSize()

TUint32 MaxSendSize()const [inline]

Get maximum send size of a multimedia message

MediaConformance(CMsgMediaInfo &)

IMPORT_C TMmsConformanceMediaConformance(CMsgMediaInfo &aMediaInfo)

Resolves conformance status of the given media object.

Parameters

CMsgMediaInfo & aMediaInfoIN Mime type of the file.

NewL()

IMPORT_C CMmsConformance *NewL()[static]

Factory method.

NewLC()

IMPORT_C CMmsConformance *NewLC()[static]

Factory method.

ResolveAttachment()

voidResolveAttachment()[private]

Determines conformance for supported attachment MIME types.

ResolveAudioAmr()

voidResolveAudioAmr()[private]

Determines conformance for audio/amr.

ResolveAudioSpMidi()

voidResolveAudioSpMidi()[private]

Determines conformance for audio/sp-midi.

ResolveFunction(const TPtrC8 &)

LocalFuncPtr ResolveFunction(const TPtrC8 &aMimeType)[private]

Parameters

const TPtrC8 & aMimeType

ResolveImageGif()

voidResolveImageGif()[private]

Determines conformance for image/gif.

ResolveImageJpeg()

voidResolveImageJpeg()[private]

Determines conformance for image/jpeg.

ResolveImagePng()

voidResolveImagePng()[private]

Determines conformance for image/png.

ResolveImageWbmp()

voidResolveImageWbmp()[private]

Determines conformance for image/wbmp.

ResolveNonconformantAttachment()

voidResolveNonconformantAttachment()[private]

Determines conformance for unsupported attachment MIME types.

ResolveTextPlain()

voidResolveTextPlain()[private]

Determines conformance for text/plain.

ResolveTextXhtml()

voidResolveTextXhtml()[private]

Determines conformance for application/xhtml+xml.

ResolveVideo3gpp()

voidResolveVideo3gpp()[private]

Determines conformance for video/3gpp.

ResolveVideo3gpp2()

voidResolveVideo3gpp2()[private]

Determines conformance for video/3gpp2.

SetCreationMode(TBool)

voidSetCreationMode(TBoolaFree)[inline]

Set MMS creation mode

The default creation mode (in MMS Settings) can be overriden with this function.

Parameters

TBool aFreeETrue, Set creation mode to "free" EFalse, Set creation mode to "restricted"

SetImageSizeSetting(TSize)

voidSetImageSizeSetting(TSizeaImageSize)[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.

Parameters

TSize aImageSizeImage size in pixels

SetMaxSendSize(TUint32)

voidSetMaxSendSize(TUint32aMaxSize)[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.

Parameters

TUint32 aMaxSize0, unlimited other value, max send size in bytes

Member Enumerations Documentation

Enum TResolverFlags

Enumerators

EDrmFeatureFull = 0x0001
ECreationModeRestricted = 0x0002
ECreationModeUserChangeable = 0x0004
EMms3gpp2Mode = 0x0008
ECheckCharacterSet = 0x0010

Member Data Documentation

TMmsConformance iConformance

TMmsConformance iConformance[private]

TUint32 iMaxSendSize

TUint32 iMaxSendSize[private]

CMsgMediaInfo * iMediaInfo

CMsgMediaInfo *iMediaInfo[private]

TUint8 iMmsVersion

TUint8 iMmsVersion[private]

TUint32 iResolverFlags

TUint32 iResolverFlags[private]

TSize iSettingsImageSize

TSize iSettingsImageSize[private]