CMmsConformance Class Reference

class CMmsConformance : public CBase

CMmsConformance ...

MsgMedia.lib
Since
3.1

Inherits from

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 ()
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
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

Constructor & Destructor Documentation

CMmsConformance()

CMmsConformance ( ) [private]

Constructor.

~CMmsConformance()

~CMmsConformance ( ) [virtual]

Destructor

Member Functions Documentation

CheckCharacterSet(TBool)

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).

Parameters

TBool aCheck ETrue, character set conformance is checked, EFalse, character set conformance is not checked.

CheckDRMStatus()

void CheckDRMStatus ( ) [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 ( TSize aImageSize ) [private]

Subfunction of CheckImageSize. Determines enumeration from image resolution

Parameters

TSize aImageSize Size of the image

ConformanceVersion()

TUint8 ConformanceVersion ( ) const [inline]

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

ConformanceVersionL()

IMPORT_C TUint8 ConformanceVersionL ( ) [static]

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

ConstructL()

void ConstructL ( ) [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 TBool IsConformantMime ( const TPtrC8 & aMimeType )

Checks whether the MIME type is MMS conformant or not.

Parameters

const TPtrC8 & aMimeType IN Mime type of the file.

LargerThanImageSizeSetting(TSize)

TBool LargerThanImageSizeSetting ( TSize aImageSize ) [private, inline]

Compares size to MMS Settings "Image size".

Parameters

TSize aImageSize Size of the image

MaxSendSize()

TUint32 MaxSendSize ( ) const [inline]

Get maximum send size of a multimedia message

MediaConformance(CMsgMediaInfo &)

IMPORT_C TMmsConformance MediaConformance ( CMsgMediaInfo & aMediaInfo )

Resolves conformance status of the given media object.

Parameters

CMsgMediaInfo & aMediaInfo IN Mime type of the file.

NewL()

IMPORT_C CMmsConformance * NewL ( ) [static]

Factory method.

NewLC()

IMPORT_C CMmsConformance * NewLC ( ) [static]

Factory method.

ResolveAttachment()

void ResolveAttachment ( ) [private]

Determines conformance for supported attachment MIME types.

ResolveAudioAmr()

void ResolveAudioAmr ( ) [private]

Determines conformance for audio/amr.

ResolveAudioSpMidi()

void ResolveAudioSpMidi ( ) [private]

Determines conformance for audio/sp-midi.

ResolveFunction(const TPtrC8 &)

LocalFuncPtr ResolveFunction ( const TPtrC8 & aMimeType ) [private]

Parameters

const TPtrC8 & aMimeType

ResolveImageGif()

void ResolveImageGif ( ) [private]

Determines conformance for image/gif.

ResolveImageJpeg()

void ResolveImageJpeg ( ) [private]

Determines conformance for image/jpeg.

ResolveImagePng()

void ResolveImagePng ( ) [private]

Determines conformance for image/png.

ResolveImageWbmp()

void ResolveImageWbmp ( ) [private]

Determines conformance for image/wbmp.

ResolveNonconformantAttachment()

void ResolveNonconformantAttachment ( ) [private]

Determines conformance for unsupported attachment MIME types.

ResolveTextPlain()

void ResolveTextPlain ( ) [private]

Determines conformance for text/plain.

ResolveTextXhtml()

void ResolveTextXhtml ( ) [private]

Determines conformance for application/xhtml+xml.

ResolveVideo3gpp()

void ResolveVideo3gpp ( ) [private]

Determines conformance for video/3gpp.

ResolveVideo3gpp2()

void ResolveVideo3gpp2 ( ) [private]

Determines conformance for video/3gpp2.

SetCreationMode(TBool)

void SetCreationMode ( TBool aFree ) [inline]

Set MMS creation mode

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

Parameters

TBool aFree ETrue, Set creation mode to "free" EFalse, Set creation mode to "restricted"

SetImageSizeSetting(TSize)

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.

Parameters

TSize aImageSize Image size in pixels

SetMaxSendSize(TUint32)

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.

Parameters

TUint32 aMaxSize 0, 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]