RVmbxNumber Class Reference

class RVmbxNumber : public MCenRepNotifyHandlerCallback

RVmbxNumber

vmbx.lib
Since

Inherits from

Public Member Functions
RVmbxNumber()
~RVmbxNumber()
TBool AllowRefresh(TSatRefreshType, const TSatRefreshFiles &)
IMPORT_C TBoolAllowedToChangeTheNumber()
IMPORT_C voidBrandIdL(TInt, TDes8 &)
IMPORT_C voidClose()
IMPORT_C voidConstructDefaultIconsL(CArrayPtr< CGulIcon > *)
IMPORT_C TIntGetAlsLine(TInt &)
IMPORT_C voidGetBrandedIconL(const TDesC8 &, CFbsBitmap *&, CFbsBitmap *&)
IMPORT_C TIntGetServiceIds(RArray< TUint > &)
IMPORT_C TIntGetServiceInfo(TVmbxServiceInfo &)
IMPORT_C TIntGetVideoMbxNumber(TDes &, TVmbxNumberEntry)
IMPORT_C TIntGetVmbxAddress(TDes &, TUint)
IMPORT_C TIntGetVmbxAddressL(TDes &)
IMPORT_C TIntGetVmbxNumber(TDes &, TVmbxNumberEntry)
voidHandleAlsChangeL(TVmbxAlsLine)
voidHandleNotifyGeneric(TUint32)
voidHandleNotifyString(TUint32, const TDesC16 &)
IMPORT_C TBoolIsIpVoiceMailboxServices()
IMPORT_C TBoolIsSimMemory()
IMPORT_C TBoolIsVoIPProfilesFound()
IMPORT_C voidNotifyAlsLineChangeCancel()
IMPORT_C voidNotifyAlsLineChangeL(MVmbxAlsObserver *)
IMPORT_C voidNotifyServiceChange(MServiceNotifyHandler *)
IMPORT_C voidNotifyServiceChangeCancel()
IMPORT_C voidNotifyVmbxNumberChangeCancel()
IMPORT_C voidNotifyVmbxNumberChangeL(MVmbxNotifyHandler *, TBool)
IMPORT_C TIntOpen()
IMPORT_C TIntOpen(RMobilePhone &)
voidPhoneSettingChanged(TSSSettingsSetting, TInt)
IMPORT_C TBoolQueryAddressL(TVmbxQueryType, TDes &)
IMPORT_C TBoolQueryNumberL(TVmbxQueryType, TDes &, TBool)
IMPORT_C TBoolQueryVideoMbxNumberL(TVmbxQueryType, TDes &)
voidRefresh(TSatRefreshType, const TSatRefreshFiles &)
IMPORT_C TIntSaveVideoMbxNumber(const TDesC &, TVmbxNumberEntry)
IMPORT_C TIntSaveVmbxAddressL(TDes &)
IMPORT_C TIntSaveVmbxNumber(const TDesC &, TVmbxNumberEntry)
TInt SaveVmbxNumberToPhone(const TDesC &, TVmbxNumberEntry)
TInt SaveVmbxNumberToSim(const TDesC &, TVmbxNumberEntry)
IMPORT_C TIntSelectTypeL(TBool)
IMPORT_C TIntSelectTypeL(TBool, TUint &)
Private Member Functions
RVmbxNumber(const RVmbxNumber &)
voidAddBrandIconL(CArrayPtr< CGulIcon > *, TUint, TInt &)
voidAppendStrToArrayL(TInt, CDesCArray &)
TInt BackUpSimNumber(const TDesC &, TInt)
voidCalculateActualMaxLengthOnSim(TInt)
TInt CheckDefinedNumberCountL(TInt &, TInt &, TUint &)
TInt ClearVMBXNumberFromPhone(TInt)
voidCloseETel()
TInt ConnectETelServer()
voidConvertToWesternDigits(TDes &)
TInt DoPhonebookOperation(TVmbxPhonebookOperation, TVmbxEntry *)
voidFetchNumberFromPhonebook2L(TDes &)
TInt FetchSimNumberBackUp(TDes &, TInt)
TInt GetVmNumFromNamStore(TDes &, TInt)
TInt GetVmNumFromSD(TDes &, TInt)
TInt GetVmNumFromSIM(TDes &, TInt)
TInt GetVmNumFromVMN(TDes &)
voidHandleEmergencyDialL(const TInt)
TInt HandleNumberStores(TInt)
TBool IsEmergencyNumberL(const TDesC &)
TBool IsInactiveLineEdited(TInt &)
TBool IsNoNumberNoteAllowed()
TBool IsPhoneMemForcedEdit(const TInt)
TBool IsReadOnlySIM()
TBool IsValidPhoneNumber(const TDesC &)
voidLoadResourceL()
TInt MailboxNumbersIdentifiers()
TBool NumStoredInPhone(const TDesC &, TInt)
TInt PhoneBookInfo()
TInt PhonebookDelete(TVmbxEntry &)
voidPhonebookReadL(TVmbxEntry &)
TInt PhonebookWrite(TVmbxEntry &)
TBool QuerySimNumberL(TDes &, TVmbxNumberEntry)
TInt ResetUserEditNumber(TInt)
voidSetHeaderFromResourceL(TInt, CAknQueryDialog &)
TInt SetPhoneMemForcedEdit(TInt)
TInt SetUserEditNumber(TInt)
voidShowConfirmationNoteL(TInt)
voidShowInformationNoteL(const TInt)
voidSubscribeSATNotificationsL()
voidTestAndSetSimAccessFlags()
TBool UseSimNumIfAvailable(TDes &, TInt)
TBool UserEditNumber(TInt)
TBool UsesSimMemory()
TBool VideoSupported()
TBool VmbxNumDefInPhoneMemory(TInt)
RVmbxNumber &operator=(const RVmbxNumber &)
Inherited Functions
MCenRepNotifyHandlerCallback::HandleNotifyBinary(TUint32,const TDesC8 &)
MCenRepNotifyHandlerCallback::HandleNotifyError(TUint32,TInt,CCenRepNotifyHandler *)
MCenRepNotifyHandlerCallback::HandleNotifyInt(TUint32,TInt)
MCenRepNotifyHandlerCallback::HandleNotifyReal(TUint32,TReal)
Public Member Enumerations
enumTVmVmQueryStatusType { EVmQueryNormal = 0, EVmQueryProcess }
Private Attributes
TBool iAlphaStringFound
HBufC *iAlphaStringFromSIM
TBool *iClosedPtr
CPhCntSingleItemFetch *iCntFetch
CCoeEnv *iCoeEnv
TBool iFeatMgrInitialized
TInt iFlags
TBool iMbdnPhonebookOk
TInt iMemoryLocation
TBool iNoNumberFound
MVmbxNotifyHandler *iNotifyCallBack
CCenRepNotifyHandler *iNotifyHandler
TBool iNumberFound
TBuf< KVmbxMaxNumberLength >iNumberFromSim
RSat::TRefreshFileList iObservedFileList
RMobilePhone iPhone
RMobilePhoneBookStore iPhoneBook
RMobilePhoneBookStore::TMobilePhoneBookInfoV1 iPhoneBookInfo
RMobilePhoneBookStore::TMobilePhoneBookInfoV1Pckg iPhoneBookInfoPckg
TUint8 iPhoneBookType
RMobilePhone::TMobilePhoneVoicemailIdsV3 iPhoneVoicemailInfo
RMobilePhone::TMobilePhoneVoicemailIdsV3Pckg iPhoneVoicemailInfoPckg
CVmTextQueryDialog *iQuery
TVmVmQueryStatusType iQueryingState
RSatRefresh iRSatClient
RSatSession iRSatSession
TInt iResourceFileOffset
CRepository *iSession
TBool iSimCardFound
RSSSettings iSsSettings
TBool iStartUpTest
TBool iSynchronize
RTelServer iTelServer
TInt iType
CAknListQueryDialog *iTypeSelectionQuery
TBool iUSimFirstRoundTest
MVmbxAlsObserver *iUserAlsObserver
CVMSimQueryDilaog *iVMSimQueryDialog
CVmTextQueryDialog *iVideoQuery
CVmBSHandler *iVmBsHandler
TInt iVmNumOpts
CVmSPSHandler *iVmSpsHandler
TInt iVmUiOpts
RArray< TVmbxServiceSelection >iVmbxServiceSelection

Constructor & Destructor Documentation

RVmbxNumber()

IMPORT_CRVmbxNumber()

C++ default constructor.

RVmbxNumber(const RVmbxNumber &)

RVmbxNumber(const RVmbxNumber &)[private]

Parameters

const RVmbxNumber &

~RVmbxNumber()

IMPORT_C~RVmbxNumber()

Destructor.

Member Functions Documentation

AddBrandIconL(CArrayPtr< CGulIcon > *, TUint, TInt &)

voidAddBrandIconL(CArrayPtr< CGulIcon > *aIcons,
TUintaServiceId,
TInt &aIconId
)[private]
Add brand icon if it exist.
Since
S60 3.2

Parameters

CArrayPtr< CGulIcon > * aIconsOn completion, contains new brand icon
TUint aServiceIdUsed Service Id
TInt & aIconIdOn completion, contains branded icon's icon list id

AllowRefresh(TSatRefreshType, const TSatRefreshFiles &)

TBool AllowRefresh(TSatRefreshTypeaType,
const TSatRefreshFiles &aFiles
)
Refresh query. Client should determine whether it allow the refresh to happen.
Since
2.6

Parameters

TSatRefreshType aTypeRefresh type.
const TSatRefreshFiles & aFilesElementary files which are to be changed. May be zero length.

AllowedToChangeTheNumber()

IMPORT_C TBoolAllowedToChangeTheNumber()
Check wether the voice mailbox number can be changed. If the number cannot be edited, the QueryNumberL leaves with and SaveVmbxNumber returns KErrAccessDenied.
Since
2.7

AppendStrToArrayL(TInt, CDesCArray &)

voidAppendStrToArrayL(TIntaResourceId,
CDesCArray &aArray
)[private]
Appends string from resource to descriptor array
Since

Parameters

TInt aResourceIdResource id
CDesCArray & aArrayString array

BackUpSimNumber(const TDesC &, TInt)

TInt BackUpSimNumber(const TDesC &aNumber,
TIntaLineNumber
)[private]
Saves VMBX number to the backup store
Since
S60 3.2

Parameters

const TDesC & aNumberThe number to be saved
TInt aLineNumberLine 1 or 2

BrandIdL(TInt, TDes8 &)

IMPORT_C voidBrandIdL(TIntaServiceId,
TDes8 &aBrandId
)
Get Service's Brand Id
Since
S60 3.2

Parameters

TInt aServiceIdUsed Service Id
TDes8 & aBrandIdOn completion, contains Brand Id

CalculateActualMaxLengthOnSim(TInt)

voidCalculateActualMaxLengthOnSim(TIntaSimNumberLength)[private]
The actual size for number must be determine from max length returned from GetInfo-method and saved number length on Sim.
Since

Parameters

TInt aSimNumberLengthThe length of the number read from sim.

CheckDefinedNumberCountL(TInt &, TInt &, TUint &)

TInt CheckDefinedNumberCountL(TInt &aDefinedNumber,
TInt &aDefinedFlag,
TUint &aServiceId
)[private]
check count of VMBX number available
Since
S60 3.2.2

Parameters

TInt & aDefinedNumber
TInt & aDefinedFlag
TUint & aServiceId

ClearVMBXNumberFromPhone(TInt)

TInt ClearVMBXNumberFromPhone(TIntaLineNumber)[private]
Clears VMBX number from the phone memory
Since
S60 3.2

Parameters

TInt aLineNumberLine 1 or 2

Close()

IMPORT_C voidClose()

Closes the resources allocated in Open().

Cancels all issued notify requests.

CloseETel()

voidCloseETel()[private]
Closes ETel resources
Since

ConnectETelServer()

TInt ConnectETelServer()[private]
Create connection to ETel server
Since

ConstructDefaultIconsL(CArrayPtr< CGulIcon > *)

IMPORT_C voidConstructDefaultIconsL(CArrayPtr< CGulIcon > *aIcons)
Construct default icons(CS, Video and VoIP)
Since
S60 3.2

Parameters

CArrayPtr< CGulIcon > * aIconsOn completion, contains created icons

ConvertToWesternDigits(TDes &)

voidConvertToWesternDigits(TDes &aDes)const [private]

Converts a phone number to western format

Parameters

TDes & aDesParameter to change

DoPhonebookOperation(TVmbxPhonebookOperation, TVmbxEntry *)

TInt DoPhonebookOperation(TVmbxPhonebookOperationaOperation,
TVmbxEntry *aEntry = NULL
)[private]

Does a vmbx phonebook operation

If the phonebook is being cached, defined amount of retries are made with 0.2 second delay in between.

Parameters

TVmbxPhonebookOperation aOperationOperation identifier
TVmbxEntry * aEntry = NULLVmbx entry (NULL)

FetchNumberFromPhonebook2L(TDes &)

voidFetchNumberFromPhonebook2L(TDes &aPhoneNumber)[private]
Open phonebook's Single Fetch Dialog
Since

Parameters

TDes & aPhoneNumberPhone number

FetchSimNumberBackUp(TDes &, TInt)

TInt FetchSimNumberBackUp(TDes &aNumber,
TIntaLineNumber
)[private]
Fetches VMBX number from backup store
Since
S60 3.2

Parameters

TDes & aNumbernumber
TInt aLineNumberLine 1 or 2

GetAlsLine(TInt &)

IMPORT_C TIntGetAlsLine(TInt &aLineNumber)const

Gets the currently active ALS line number ( 1 or 2 ). Information is fetched from supplementary settings client.

Parameters

TInt & aLineNumberline number is returned here. If ALS is not supported, value 1 is returned.

GetBrandedIconL(const TDesC8 &, CFbsBitmap *&, CFbsBitmap *&)

IMPORT_C voidGetBrandedIconL(const TDesC8 &aBrandingId,
CFbsBitmap *&aBrandedBitmap,
CFbsBitmap *&aBrandedBitmapMask
)
Branded icon getter
Since
S60 3.2

Parameters

const TDesC8 & aBrandingIdUsed branding Id
CFbsBitmap *& aBrandedBitmapBitmap for branded icon
CFbsBitmap *& aBrandedBitmapMaskMask to branded icon

GetServiceIds(RArray< TUint > &)

IMPORT_C TIntGetServiceIds(RArray< TUint > &aProfileIds)
Service Ids getter
Since
3.2

Parameters

RArray< TUint > & aProfileIdsOn completion, contains all Service Ids.

GetServiceInfo(TVmbxServiceInfo &)

IMPORT_C TIntGetServiceInfo(TVmbxServiceInfo &aServiceInfo)
Service info getter
Since
3.2

Parameters

TVmbxServiceInfo & aServiceInfoOn completion, contains Service information

GetVideoMbxNumber(TDes &, TVmbxNumberEntry)

IMPORT_C TIntGetVideoMbxNumber(TDes &aNumber,
TVmbxNumberEntryaEntry = EAlsActiveLineEntry
)
Fetches the specified video mailbox number. If there is no video mailbox number saved for the specified ALS line, parameter aNumber remains unchanged and the return value is KErrNotFound.
Since
3.1
  • KErrNotFound if the number is not defined

  • Other error code if there was a problem in getting the number. Clients should show error note if this happens.

Parameters

TDes & aNumbervideo mailbox number is saved here (must be room for at least KVmbxMaxNumberLength characters)
TVmbxNumberEntry aEntry = EAlsActiveLineEntrydetermines which video mbx number entry is used: EAlsLine1Entry = video mbx number entry of primary line EAlsLine2Entry = video mbx number entry of secondary line EAlsActiveLineEntry = entry of currently active line

GetVmNumFromNamStore(TDes &, TInt)

TInt GetVmNumFromNamStore(TDes &aNumber,
TIntaNumType = EVmbxMDN
)[private]
Retrieves voice mailbox number from NAM
Since

Parameters

TDes & aNumberNumber
TInt aNumType = EVmbxMDNNumber type (EVmbxMDN)

GetVmNumFromSD(TDes &, TInt)

TInt GetVmNumFromSD(TDes &aNumber,
TIntaLineNumber
)[private]
Retrieves voice mailbox number from Shared Data
Since

Parameters

TDes & aNumberNumber
TInt aLineNumberLine 1 or 2

GetVmNumFromSIM(TDes &, TInt)

TInt GetVmNumFromSIM(TDes &aNumber,
TIntaLineNumber
)[private]
Retrieves voice mailbox number from SIM/R-UIM
Since

Parameters

TDes & aNumberNumber
TInt aLineNumberLine 1 or 2

GetVmNumFromVMN(TDes &)

TInt GetVmNumFromVMN(TDes &aNumber)[private]
Retrieves voice mailbox number from VMN summary info
Since

Parameters

TDes & aNumberNumber

GetVmbxAddress(TDes &, TUint)

IMPORT_C TIntGetVmbxAddress(TDes &aAddress,
TUintaServiceId
)
Fetches vmbx address from SPS.
Since
3.2

Parameters

TDes & aAddressvmbx address is saved here (must be room for at least KVmbxMaxAddressLength characters).
TUint aServiceIdUsed Service Id

GetVmbxAddressL(TDes &)

IMPORT_C TIntGetVmbxAddressL(TDes &aAddress)
Fetches vmbx address from SPS.
Since
3.0
  • KErrNotFound if the address is not defined

  • Other error code if there was a problem in getting the address. Clients should show error note if this happens.

Parameters

TDes & aAddressvmbx address is saved here (must be room for at least KVmbxMaxAddressLength characters).

GetVmbxNumber(TDes &, TVmbxNumberEntry)

IMPORT_C TIntGetVmbxNumber(TDes &aNumber,
TVmbxNumberEntryaEntry = EAlsActiveLineEntry
)

Fetches the specified vmbx number. If there is no vmbx number saved for the specified ALS line, parameter aNumber remains unchanged and the return value is KErrNotFound.

  • KErrNotFound if the number is not defined

  • Other error code if there was a problem in getting the number. Clients should show error note if this happens.

Parameters

TDes & aNumbervmbx number is saved here (must be room for at least KVmbxMaxNumberLength characters)
TVmbxNumberEntry aEntry = EAlsActiveLineEntrydetermines which vmbx number entry is used: EAlsLine1Entry = vmbx number entry of primary line EAlsLine2Entry = vmbx number entry of secondary line EAlsActiveLineEntry = entry of currently active line

HandleAlsChangeL(TVmbxAlsLine)

voidHandleAlsChangeL(TVmbxAlsLineaLine)

Parameters

TVmbxAlsLine aLine

HandleEmergencyDialL(const TInt)

voidHandleEmergencyDialL(const TIntaStatus)[private]
Handling of emergency dial result.
Since
3.2
MPhCltEmergencyCallObserver::HandleEmergencyDialL().

Parameters

const TInt aStatus

HandleNotifyGeneric(TUint32)

voidHandleNotifyGeneric(TUint32aKey)[virtual]

From MCenRepNotifyHandlerCallback, to notify the client about changes in keys when the whole repository is listened for.

Parameters

TUint32 aKey

HandleNotifyString(TUint32, const TDesC16 &)

voidHandleNotifyString(TUint32aKey,
const TDesC16 &aValue
)[virtual]

From MCenRepNotifyHandlerCallback, to notify the client about changes for string value keys

Parameters

TUint32 aKey
const TDesC16 & aValue

HandleNumberStores(TInt)

TInt HandleNumberStores(TIntaLineNumber)[private]
Handles the updating of a number stores in phone memory
Since
S60 3.2

Parameters

TInt aLineNumberLine 1 or 2

IsEmergencyNumberL(const TDesC &)

TBool IsEmergencyNumberL(const TDesC &aNumber)[private]
Checks if a number is an emergency number.
Since

Parameters

const TDesC & aNumberVmbx number

IsInactiveLineEdited(TInt &)

TBool IsInactiveLineEdited(TInt &aInactiveLineNumber)[private]
Check whether the number had been edited in inactive line
Since
S60 v5.2

Parameters

TInt & aInactiveLineNumberthe inactive line number

IsIpVoiceMailboxServices()

IMPORT_C TBoolIsIpVoiceMailboxServices()
Check if VoIP voice mailbox services exists
Since
5.0

IsNoNumberNoteAllowed()

TBool IsNoNumberNoteAllowed()[private]
Check whether the note should be shown this check is done because phone client calls GetVmbxNumber and then SelectTypeL, which causes note qtn_... to be shown twice
Since
S60 v5.2

IsPhoneMemForcedEdit(const TInt)

TBool IsPhoneMemForcedEdit(const TIntaLineNumber)[private]
Returns if VMBX number stored in phone memory via external clients
Since
S60 3.2.3

Parameters

const TInt aLineNumberLine 1 or 2

IsReadOnlySIM()

TBool IsReadOnlySIM()[private]
Checks if writing to sim is prohibited
Since
S60 3.2 return ETrue if writing is not allowed

IsSimMemory()

IMPORT_C TBoolIsSimMemory()
Returns if the memory location for vmbx is sim memory
Since
3.0

IsValidPhoneNumber(const TDesC &)

TBool IsValidPhoneNumber(const TDesC &aNumber)const [private]

Verifies that the given string is a valid phone number. Rules:

  • '+' is only allowed as the first character

  • The phone number part must have 3-21 digits
    Since

Parameters

const TDesC & aNumberVmbx number

IsVoIPProfilesFound()

IMPORT_C TBoolIsVoIPProfilesFound()
Check if VoIP profiles exists.
Since
3.0

LoadResourceL()

voidLoadResourceL()[private]
Loads the resources needed for queries and confirmation notes.
Since

MailboxNumbersIdentifiers()

TInt MailboxNumbersIdentifiers()[private]
Gets MBI-file settings from Sim. MBI-file identifies the usage of the mailbox records settings
Since

NotifyAlsLineChangeCancel()

IMPORT_C voidNotifyAlsLineChangeCancel()

Cancels a notify request on ALS line change.

NotifyAlsLineChangeL(MVmbxAlsObserver *)

IMPORT_C voidNotifyAlsLineChangeL(MVmbxAlsObserver *aObserver)

Issues a notify request on active ALS line change. A callback to user's code is made when the ALS line is changed. The notify request remains active as long as it is canceled with NotifyAlsLineChangeCancel(), ie. it is not canceled when the ALS line is changed. Implementation uses SharedData's notify system. Leaves if the notify request could not be done.

Parameters

MVmbxAlsObserver * aObserveruser's observer

NotifyServiceChange(MServiceNotifyHandler *)

IMPORT_C voidNotifyServiceChange(MServiceNotifyHandler *aHandler)

Issues a notify request on a Service profile change.

Parameters

MServiceNotifyHandler * aHandlerUser's notify handler

NotifyServiceChangeCancel()

IMPORT_C voidNotifyServiceChangeCancel()

Cancels a notify request on a Service profile change.

NotifyVmbxNumberChangeCancel()

IMPORT_C voidNotifyVmbxNumberChangeCancel()

Cancels a notify request on a vmbx number change.

NotifyVmbxNumberChangeL(MVmbxNotifyHandler *, TBool)

IMPORT_C voidNotifyVmbxNumberChangeL(MVmbxNotifyHandler *aHandler,
TBoolaNotifyOnActiveLineOnly
)

Issues a notify request on a vmbx number change. User's HandleNotifyL() will be called whenever the vmbx number has been changed by any subsystem. Only one notify request can be done per one RVmbxNumber object simultaneously. When issuing a notify request while one is active already, only parameters aHandler and aNotifyOnActiveLineOnly are updated in existing request.

Leaves if the notify request could not be done.

Parameters

MVmbxNotifyHandler * aHandleruser's notify handler
TBool aNotifyOnActiveLineOnlyif this is ETrue, notify events will be generated only if the vmbx number of the active ALS line is changed, not if the number of the other line is changed. When there is no ALS support, this has no effect ie. notification will be generated always.

NumStoredInPhone(const TDesC &, TInt)

TBool NumStoredInPhone(const TDesC &aNumber,
TIntaLineNumber
)[private]
Checks is the given number stored in phone memory
Since
S60 3.2

Parameters

const TDesC & aNumberThe number checked
TInt aLineNumberLine 1 or 2

Open()

IMPORT_C TIntOpen()

Opens the resources needed. This or the other overloaded Open() has to be called successfully before doing anything else.

---------------------------------------------------------------------- A new ETel connection is opened when using this method! ----------------------------------------------------------------------

Open(RMobilePhone &)

IMPORT_C TIntOpen(RMobilePhone &aPhone)

Opens the resources needed. This or the other overloaded Open() has to be called successfully before doing anything else.

Use this overload if you already have ETel connection.

---------------------------------------------------------------------- An existing ETel connection is used when using this method! ----------------------------------------------------------------------

Parameters

RMobilePhone & aPhonePhone client

PhoneBookInfo()

TInt PhoneBookInfo()[private]

Fetches information about the SIM phonebook for vmbx numbers. Updates internal flags KVmFlagSimSupport and KVmFlagPhonebookBeingCached.

PhoneSettingChanged(TSSSettingsSetting, TInt)

voidPhoneSettingChanged(TSSSettingsSettingaSetting,
TIntaNewValue
)

From MSSSettingsObserver, to notify changes in SS settings in phone

Parameters

TSSSettingsSetting aSetting
TInt aNewValue

PhonebookDelete(TVmbxEntry &)

TInt PhonebookDelete(TVmbxEntry &aEntry)[private]
Removes an entry from ICC-based phonebook.
Since

Parameters

TVmbxEntry & aEntryVmbx sim entry data

PhonebookReadL(TVmbxEntry &)

voidPhonebookReadL(TVmbxEntry &aEntry)[private]
Reads an entry from the ICC-based phonebook.
Since

Parameters

TVmbxEntry & aEntryVmbx sim entry data

PhonebookWrite(TVmbxEntry &)

TInt PhonebookWrite(TVmbxEntry &aEntry)[private]
Writes an entry into ICC-based phonebook.
Since

Parameters

TVmbxEntry & aEntryVmbx sim entry data

QueryAddressL(TVmbxQueryType, TDes &)

IMPORT_C TBoolQueryAddressL(TVmbxQueryTypeaQueryType,
TDes &aNumber
)
Puts a query on the screen asking for a voice mailbox address.
Since
3.0
IMPORTANT:

Other subsystems than voice mailbox application should call this ONLY IF GetVmbxNumber() returned KErrNotFound. Also, only the parameter EVmbxNotDefinedQuery should be used outside the voice mailbox application.

  • EVmbxChangeNumberQuery

Parameters

TVmbxQueryType aQueryTypetype of the query, alternatives:EVmbxNotDefinedQuery (use this when no vmbx address is defined)
TDes & aNumberInitial value for the query, AND the result value of an accepted query. (must be room for at least KVmbxMaxAddressLength characters. Not allowed to contain longer initial value than KVmbxMaxAddressLength)

QueryNumberL(TVmbxQueryType, TDes &, TBool)

IMPORT_C TBoolQueryNumberL(TVmbxQueryTypeaQueryType,
TDes &aNumber,
TBoolaShowQuery = EFalse
)

Puts a query on the screen asking for a voice mailbox number.

IMPORTANT:

Other subsystems than voice mailbox application should call this ONLY IF GetVmbxNumber() returned KErrNotFound. Also, only the parameter EVmbxNotDefinedQuery should be used outside the voice mailbox application.

  • EVmbxChangeNumberQuery

Parameters

TVmbxQueryType aQueryTypetype of the query, alternatives:EVmbxNotDefinedQuery (use this when no vmbx number is defined)
TDes & aNumberInitial value for the query, AND the result value of an accepted query. (must be room for at least KVmbxMaxNumberLength characters. Not allowed to contain longer initial value than KVmbxMaxNumberLength)
TBool aShowQuery = EFalseWhen this is set and the sim has support for vmbx number the user is shown a list query by which the storage of sim number can be decided

QuerySimNumberL(TDes &, TVmbxNumberEntry)

TBool QuerySimNumberL(TDes &aNumber,
TVmbxNumberEntryaEntry = EAlsActiveLineEntry
)[private]
Routine to query SIM number
Since

Parameters

TDes & aNumberVmbx number
TVmbxNumberEntry aEntry = EAlsActiveLineEntryAls line entry

QueryVideoMbxNumberL(TVmbxQueryType, TDes &)

IMPORT_C TBoolQueryVideoMbxNumberL(TVmbxQueryTypeaQueryType,
TDes &aNumber
)
Puts a query on the screen asking for a video mailbox number.
Since
3.1
IMPORTANT:

Other subsystems than voice mailbox application should call this ONLY IF GetVideoMbxNumber() returned KErrNotFound. Also, only the parameter EVmbxNotDefinedQuery should be used outside the voice mailbox application.

Parameters

TVmbxQueryType aQueryTypetype of the query, alternatives:EVmbxNotDefinedQuery (use this when no vmbx number is defined)EVmbxChangeNumberQuery
TDes & aNumberInitial value for the query, AND the result value of an accepted query. (must be room for at least KVmbxMaxNumberLength characters. Not allowed to contain longer initial value than KVmbxMaxNumberLength)

Refresh(TSatRefreshType, const TSatRefreshFiles &)

voidRefresh(TSatRefreshTypeaType,
const TSatRefreshFiles &aFiles
)
Notification of refresh.
Since
2.6

Parameters

TSatRefreshType aTypeType of refresh which has happened.
const TSatRefreshFiles & aFilesList of elementary files which has been changed. May be zero length.

ResetUserEditNumber(TInt)

TInt ResetUserEditNumber(TIntaLineNumber)[private]
Resets the flag that indicates that the user has edited VMBX number
Since
S60 3.2

Parameters

TInt aLineNumberLine 1 or 2

SaveVideoMbxNumber(const TDesC &, TVmbxNumberEntry)

IMPORT_C TIntSaveVideoMbxNumber(const TDesC &aNumber,
TVmbxNumberEntryaEntry
)
Saves the vmbx number. (in phone file system)
Since
3.1

Parameters

const TDesC & aNumbervideo mbx number ( max length is KVmbxMaxNumberLength )
TVmbxNumberEntry aEntrydetermines in which entry the number is saved: EAlsLine1Entry = video mbx number entry of ALS primary line EAlsLine2Entry = video mbx number entry of ALS secondary line EAlsActiveLineEntry = entry of currently active ALS line

SaveVmbxAddressL(TDes &)

IMPORT_C TIntSaveVmbxAddressL(TDes &aAddress)
Save address.
Since
3.0

Parameters

TDes & aAddressincludes saved vmbx address

SaveVmbxNumber(const TDesC &, TVmbxNumberEntry)

IMPORT_C TIntSaveVmbxNumber(const TDesC &aNumber,
TVmbxNumberEntryaEntry
)

Saves the vmbx number. (in phone file system and SIM)

Parameters

const TDesC & aNumbervmbx number ( max length is KVmbxMaxNumberLength )
TVmbxNumberEntry aEntrydetermines in which entry the number is saved: EAlsLine1Entry = vmbx number entry of ALS primary line EAlsLine2Entry = vmbx number entry of ALS secondary line EAlsActiveLineEntry = entry of currently active ALS line

SaveVmbxNumberToPhone(const TDesC &, TVmbxNumberEntry)

TInt SaveVmbxNumberToPhone(const TDesC &aNumber,
TVmbxNumberEntryaEntry
)
Saves vmbx number to phone memory
Since

Parameters

const TDesC & aNumberVmbx number
TVmbxNumberEntry aEntryAls line entry

SaveVmbxNumberToSim(const TDesC &, TVmbxNumberEntry)

TInt SaveVmbxNumberToSim(const TDesC &aNumber,
TVmbxNumberEntryaEntry
)
Saves vmbx number to Sim
Since

Parameters

const TDesC & aNumberVmbx number
TVmbxNumberEntry aEntryAls line entry

SelectTypeL(TBool)

IMPORT_C TIntSelectTypeL(TBoolaTitle)
Puts a popup on the screen asking for which type of Vmbx is used.
Since
3.0

Parameters

TBool aTitleVmbx title type ( call / define ).

SelectTypeL(TBool, TUint &)

IMPORT_C TIntSelectTypeL(TBoolaTitle,
TUint &aServiceId
)
Puts a popup on the screen asking for which type of Vmbx is used.
Since
3.2

Parameters

TBool aTitleVmbx title type ( call / define ).
TUint & aServiceIdOn completion, contains selected service's Service Id. If CS or Video Vmbx selected, value is 1, otherwise service's value is dynamic.

SetHeaderFromResourceL(TInt, CAknQueryDialog &)

voidSetHeaderFromResourceL(TIntaResourceId,
CAknQueryDialog &aDlg
)[private]
Set query dialog header text from resource string
Since

Parameters

TInt aResourceIdResource id
CAknQueryDialog & aDlgQuery dialog

SetPhoneMemForcedEdit(TInt)

TInt SetPhoneMemForcedEdit(TIntaLineNumber)[private]
Sets the flag indicating that external clients has edited VMBX number
Since
S60 3.2.3

Parameters

TInt aLineNumberLine 1 or 2

SetUserEditNumber(TInt)

TInt SetUserEditNumber(TIntaLineNumber)[private]
Sets the flag indicating that the user has edited VMBX number
Since
S60 3.2

Parameters

TInt aLineNumberLine 1 or 2

ShowConfirmationNoteL(TInt)

voidShowConfirmationNoteL(TIntaResourceId)const [private]

Shows a confirmation note after a saved vmbx number.

Parameters

TInt aResourceIdResource id

ShowInformationNoteL(const TInt)

voidShowInformationNoteL(const TIntaResourceId)const [private]
Displays a note with a text loaded from resource file.
Since
S60 v5.2

Parameters

const TInt aResourceIdResource id for loading text for note

SubscribeSATNotificationsL()

voidSubscribeSATNotificationsL()[private]
Subscribe SAT notifications
Since

TestAndSetSimAccessFlags()

voidTestAndSetSimAccessFlags()[private]
Reading and writing to sim are tested
Since

UseSimNumIfAvailable(TDes &, TInt)

TBool UseSimNumIfAvailable(TDes &aNumber,
TIntaLineNumber
)[private]
Fetches VMBX number stored in SIM if number is available
Since
S60 3.2

Parameters

TDes & aNumbernumber
TInt aLineNumberLine 1 or 2

UserEditNumber(TInt)

TBool UserEditNumber(TIntaLineNumber)[private]
Indicates if user has edited VMBX number
Since
S60 3.2

Parameters

TInt aLineNumberLine 1 or 2

UsesSimMemory()

TBool UsesSimMemory()[private]
Returns if the SIM memory is used on ALS 1
Since
3.2

VideoSupported()

TBool VideoSupported()[private]
Returns video support state
Since
S60 3.2 return ETrue if supported

VmbxNumDefInPhoneMemory(TInt)

TBool VmbxNumDefInPhoneMemory(TIntaLineNumber)[private]
Checks is VMBX number defined in phone memory
Since
S60 3.2

Parameters

TInt aLineNumberLine 1 or 2

operator=(const RVmbxNumber &)

RVmbxNumber &operator=(const RVmbxNumber &)[private]

Parameters

const RVmbxNumber &

Member Enumerations Documentation

Enum TVmVmQueryStatusType

status for QueryNumberL. EVmQueryNormal Query number running normal case EVmQueryProcess Query number running FOREVER case

Enumerators

EVmQueryNormal = 0
EVmQueryProcess

Member Data Documentation

TBool iAlphaStringFound

TBool iAlphaStringFound[private]

HBufC * iAlphaStringFromSIM

HBufC *iAlphaStringFromSIM[private]

TBool * iClosedPtr

TBool *iClosedPtr[private]

CPhCntSingleItemFetch * iCntFetch

CPhCntSingleItemFetch *iCntFetch[private]

For single item fetch

CCoeEnv * iCoeEnv

CCoeEnv *iCoeEnv[private]

TBool iFeatMgrInitialized

TBool iFeatMgrInitialized[private]

Feature manager is initialized

TInt iFlags

TInt iFlags[private]

TBool iMbdnPhonebookOk

TBool iMbdnPhonebookOk[private]

To test if number can be found from vmbx-phonebook

TInt iMemoryLocation

TInt iMemoryLocation[private]

TBool iNoNumberFound

TBool iNoNumberFound[private]

To test if mbdn number doesn't exist

MVmbxNotifyHandler * iNotifyCallBack

MVmbxNotifyHandler *iNotifyCallBack[private]

CCenRepNotifyHandler * iNotifyHandler

CCenRepNotifyHandler *iNotifyHandler[private]

TBool iNumberFound

TBool iNumberFound[private]

TBuf< KVmbxMaxNumberLength > iNumberFromSim

TBuf< KVmbxMaxNumberLength >iNumberFromSim[private]

RSat::TRefreshFileList iObservedFileList

RSat::TRefreshFileList iObservedFileList[private]

RMobilePhone iPhone

RMobilePhone iPhone[private]

RMobilePhoneBookStore iPhoneBook

RMobilePhoneBookStore iPhoneBook[private]

RMobilePhoneBookStore::TMobilePhoneBookInfoV1 iPhoneBookInfo

RMobilePhoneBookStore::TMobilePhoneBookInfoV1 iPhoneBookInfo[private]

RMobilePhoneBookStore::TMobilePhoneBookInfoV1Pckg iPhoneBookInfoPckg

RMobilePhoneBookStore::TMobilePhoneBookInfoV1Pckg iPhoneBookInfoPckg[private]

TUint8 iPhoneBookType

TUint8 iPhoneBookType[private]

RMobilePhone::TMobilePhoneVoicemailIdsV3 iPhoneVoicemailInfo

RMobilePhone::TMobilePhoneVoicemailIdsV3 iPhoneVoicemailInfo[private]

RMobilePhone::TMobilePhoneVoicemailIdsV3Pckg iPhoneVoicemailInfoPckg

RMobilePhone::TMobilePhoneVoicemailIdsV3Pckg iPhoneVoicemailInfoPckg[private]

CVmTextQueryDialog * iQuery

CVmTextQueryDialog *iQuery[private]

TVmVmQueryStatusType iQueryingState

TVmVmQueryStatusType iQueryingState[private]

querying state of QueryNumberL

RSatRefresh iRSatClient

RSatRefresh iRSatClient[private]

RSatSession iRSatSession

RSatSession iRSatSession[private]

TInt iResourceFileOffset

TInt iResourceFileOffset[private]

CRepository * iSession

CRepository *iSession[private]

TBool iSimCardFound

TBool iSimCardFound[private]

Sim card is whether found in ME

RSSSettings iSsSettings

RSSSettings iSsSettings[private]

TBool iStartUpTest

TBool iStartUpTest[private]

True if Sim access rights are tested

TBool iSynchronize

TBool iSynchronize[private]

RTelServer iTelServer

RTelServer iTelServer[private]

TInt iType

TInt iType[private]

CAknListQueryDialog * iTypeSelectionQuery

CAknListQueryDialog *iTypeSelectionQuery[private]

TBool iUSimFirstRoundTest

TBool iUSimFirstRoundTest[private]

MVmbxAlsObserver * iUserAlsObserver

MVmbxAlsObserver *iUserAlsObserver[private]

CVMSimQueryDilaog * iVMSimQueryDialog

CVMSimQueryDilaog *iVMSimQueryDialog[private]

CVmTextQueryDialog * iVideoQuery

CVmTextQueryDialog *iVideoQuery[private]

CVmBSHandler * iVmBsHandler

CVmBSHandler *iVmBsHandler[private]

Handles Branding Server, Own.

TInt iVmNumOpts

TInt iVmNumOpts[private]

CVmSPSHandler * iVmSpsHandler

CVmSPSHandler *iVmSpsHandler[private]

Handles Service proviver Settings, Own.

TInt iVmUiOpts

TInt iVmUiOpts[private]

RArray< TVmbxServiceSelection > iVmbxServiceSelection

RArray< TVmbxServiceSelection >iVmbxServiceSelection[private]

Type and Id of mailboxes to list in iTypeSelectionQuery, Own