MsvUiServiceUtilitiesInternal Class Reference

class MsvUiServiceUtilitiesInternal

Static class to help service handling.

Member Functions Documentation

CallServiceL(const TDesC &, const TDesC &, const TDesC &, CEikonEnv *)

IMPORT_C TBoolCallServiceL(const TDesC &aSenderNumber,
const TDesC &aSenderName,
const TDesC &aNumberInFocus =  KNullDesC ,
CEikonEnv *aEnv = NULL
)[static]

When SMS viewer or MMS viewer is open it is possible to call back to sender or phone number which is currently highlighted in message. If user select Send-key then CAknListQueryDialog is opened with items "Back to sender" and currently highlighted phone number and with soft keys "Call" and "Cancel". If item "Back to sender" is selected and user select "Call" then function call "CallToSenderQueryL" function with parameters "aSenderNumber" and "aSenderName". If currently highlighted item is selected and user select "Call" then function call "CallToSenderQueryL" function with parameters "aSenderNumber" and KNullDesC. If no phone number is highlighted in message and user select Send-key then function launch the normal call query.

Parameters

const TDesC & aSenderNumber
const TDesC & aSenderName
const TDesC & aNumberInFocus =  KNullDesC
CEikonEnv * aEnv = NULL

CallToSenderQueryL(const TDesC &, const TDesC &, TBool)

IMPORT_C TBoolCallToSenderQueryL(const TDesC &aNumber,
const TDesC &aName,
TBoolaDialWithoutQueries = ETrue
)[static]

Used when asking from user if calling to sender of the message and dial to sender if user select "Yes". Check immediately if phone number is valid. If phone number is not valid then return EFalse and doesn't do nothing.If parameter "aDialWithoutQueries" is true then call immediately to sender of the message and doesn't ask nothing from user before it.

Parameters

const TDesC & aNumber
const TDesC & aName
TBool aDialWithoutQueries = ETrue

ChangeMessageStoreToPhoneL(CMsvSession &)

IMPORT_C voidChangeMessageStoreToPhoneL(CMsvSession &aSession)[static]

Sets message store to phone's internal memory. This function is possible to use for example in situation where current drive is memory card and memory card is not in use.

Parameters

CMsvSession & aSession

ComparePhoneNumberL(const TDesC &, const TDesC &, TInt)

IMPORT_C TBoolComparePhoneNumberL(const TDesC &aNumber1,
const TDesC &aNumber2,
TIntaCompareLength = -1
)[static]

Compares two phone numbers.

Parameters

const TDesC & aNumber1
const TDesC & aNumber2
TInt aCompareLength = -1

ConvertUtcToLocalTime(TTime &)

IMPORT_C voidConvertUtcToLocalTime(TTime &aTime)[static]

Converts UTC time to local time

Parameters

TTime & aTimeUtc time that is converted to local time on return.

DefaultServiceForMTML(CMsvSession &, TUid, TBool)

IMPORT_C TMsvIdDefaultServiceForMTML(CMsvSession &aSession,
TUidaMtm,
TBoolaFindFirstServiceIfNoDefault
)[static]

Returns id of the default service of certain mtm type.

Parameters

CMsvSession & aSession
TUid aMtm
TBool aFindFirstServiceIfNoDefault

InternetCallServiceL(const TDesC &, const TDesC &, const TDesC &, CEikonEnv *)

IMPORT_C TBoolInternetCallServiceL(const TDesC &aSenderNumber,
const TDesC &aSenderName,
const TDesC &aNumberInFocus =  KNullDesC ,
CEikonEnv *aEnv = NULL
)[static]
When SMS viewer or MMS viewer is open it is possible to call back to sender or phone number which is currently highlighted in message. If user select Send-key then CAknListQueryDialog is opened with items "Back to sender" and currently highlighted phone number and with soft keys "Call" and "Cancel". If item "Back to sender" is selected and user select "Call" then function call "CallToSenderQueryL" function with parameters "aSenderNumber" and "aSenderName". If currently highlighted item is selected and user select "Call" then function call "CallToSenderQueryL" function with parameters "aSenderNumber" and KNullDesC. If no phone number is highlighted in message and user select Send-key then function launch the normal call query.
Since
3.0

Parameters

const TDesC & aSenderNumber
const TDesC & aSenderName
const TDesC & aNumberInFocus =  KNullDesC
CEikonEnv * aEnv = NULL

InternetCallToSenderQueryL(const TDesC &, const TDesC &, TBool)

IMPORT_C TBoolInternetCallToSenderQueryL(const TDesC &aNumber,
const TDesC &aName,
TBoolaDialWithoutQueries = ETrue
)[static]
Used when asking from user if calling to sender of the message and dial to sender if user select "Yes". Assumes allways that Internet call number is valid and ETrue returned. If parameter "aDialWithoutQueries" is true then call immediately to sender of the message and doesn't ask nothing from user before it.
Since
3.0

Parameters

const TDesC & aNumber
const TDesC & aName
TBool aDialWithoutQueries = ETrue

InternetOrVoiceCallServiceL(const CMsgVoIPExtension &, const TDesC &, const TDesC &, const TDesC &, TBool, CEikonEnv *)

IMPORT_C TBoolInternetOrVoiceCallServiceL(const CMsgVoIPExtension &aVoIPExtension,
const TDesC &aSenderAddress,
const TDesC &aSenderName,
const TDesC &aAddressInFocus =  KNullDesC ,
TBoolaDialWithoutQueries = ETrue,
CEikonEnv *aEnv = NULL
)[static]

Messaging application viewer or other application may call to sender or higlighted address when send key is pressed or in other situation. This function makes the decision whether voice or VoIP call is done. For more information about usage see CallToSenderQueryL(), CallServiceL(), InternetCallToSenderQueryL() and InternetCallServiceL().

Parameters

const CMsgVoIPExtension & aVoIPExtension
const TDesC & aSenderAddress
const TDesC & aSenderName
const TDesC & aAddressInFocus =  KNullDesC
TBool aDialWithoutQueries = ETrue
CEikonEnv * aEnv = NULL

InternetOrVoiceCallServiceL(CEikonEnv &, const CMsgVoIPExtension &, const TDesC &, const TDesC &, TMuiuAddressType, const TDesC &, TMuiuAddressType, TBool)

IMPORT_C TBoolInternetOrVoiceCallServiceL(CEikonEnv &aEnv,
const CMsgVoIPExtension &aVoIPExtension,
const TDesC &aSenderAddress,
const TDesC &aSenderName,
TMuiuAddressTypeaSenderAddressType,
const TDesC &aAddressInFocus =  KNullDesC ,
TMuiuAddressTypeaAddressInFocusType = EMuiuAddressTypeNone,
TBoolaDialWithoutQueries = ETrue
)[static]

Messaging application viewer or other application may call to sender or higlighted address when send key is pressed or in other situation. This function makes the decision whether voice or VoIP call is done. For more information about usage see CallToSenderQueryL(), CallServiceL(), InternetCallToSenderQueryL() and InternetCallServiceL().

Parameters

CEikonEnv & aEnv
const CMsgVoIPExtension & aVoIPExtension
const TDesC & aSenderAddress
const TDesC & aSenderName
TMuiuAddressType aSenderAddressTypeaddress type of sender
const TDesC & aAddressInFocus =  KNullDesC
TMuiuAddressType aAddressInFocusType = EMuiuAddressTypeNoneaddress type of focused address
TBool aDialWithoutQueries = ETrue

IsPhoneOfflineL()

IMPORT_C TBoolIsPhoneOfflineL()[static]

Checks if phone is in offline mode or not Make sure that offline feature has been checked using feature manager

LaunchDialogL(const TPtr, TInt *)

TInt LaunchDialogL(const TPtraGroupedNumberPtr,
TInt *aIndex
)[private, static]

Parameters

const TPtr aGroupedNumberPtrPhone number which is groupped before it goes to dialog
TInt * aIndextell which item is selected when dialog is closed

MmcDriveInfoL(CMsvSession &)

IMPORT_C TBoolMmcDriveInfoL(CMsvSession &aSession)[static]

Check if iUnicueID of memory card is same than uniqueid of memory card in message server.

Parameters

CMsvSession & aSession

OtherEmailMTMExistL(CMsvSession &, TInt)

IMPORT_C TBoolOtherEmailMTMExistL(CMsvSession &aSession,
TIntaMailbox = 0
)[static]

Parameters

CMsvSession & aSession
TInt aMailbox = 0

ResolveAddressTypeL(const TDesC &, CommonPhoneParser::TPhoneNumberType)

IMPORT_C TMuiuAddressTypeResolveAddressTypeL(const TDesC &aAddress,
CommonPhoneParser::TPhoneNumberTypeaDefaultPhoneNumberType = CommonPhoneParser::EPhoneClientNumber
)[static]

Resolves type of given address Phone number is checked by CommonPhoneParser. Email address is checked by MsvUiServiceUtilities

Parameters

const TDesC & aAddressaddress to check
CommonPhoneParser::TPhoneNumberType aDefaultPhoneNumberType = CommonPhoneParser::EPhoneClientNumbersubtype of phone number check

SetDefaultServiceForMTML(CMsvSession &, TUid, TMsvId)

IMPORT_C voidSetDefaultServiceForMTML(CMsvSession &aSession,
TUidaMtm,
TMsvIdaServiceId
)[static]

Sets default service for the certain mtm type.

Parameters

CMsvSession & aSession
TUid aMtm
TMsvId aServiceId