CPhonebookDispatcher Class Reference
class CPhonebookDispatcher : public CBase
|
This class is responsible for packing and unpacking data belonging to Phonebook related requests to the Licensee LTSY.
Public Member Functions
|
|
~CPhonebookDispatcher
()
|
void
|
CallbackGetPhoneStoreInfo
(
TInt
, const
RMobilePhoneStore::TMobilePhoneStoreInfoV1
&)
|
void
|
CallbackSmsStoreDeleteAll
(
TInt
)
|
void
|
CallbackSmsStoreDeleteEntry
(
TInt
)
|
void
|
CallbackSmsStoreGetInfo
(
TInt
,
TInt
,
TInt
)
|
void
|
CallbackSmsStoreReadAll
(
TInt
, const
DispatcherPhonebook::TSmsData
&,
TInt
,
TBool
,
TBool
)
|
void
|
CallbackSmsStoreReadEntry
(
TInt
, const
DispatcherPhonebook::TSmsData
&)
|
void
|
CallbackSmsStoreWriteEntry
(
TInt
,
TInt
,
TBool
)
|
void
|
CallbackStoreCache
(
TInt
,
DispatcherPhonebook::TPhonebook
, const
TDesC8
&)
|
void
|
CallbackStoreDeleteAll
(
TInt
,
DispatcherPhonebook::TPhonebook
,
TInt
)
|
void
|
CallbackStoreDeleteEntry
(
TInt
,
DispatcherPhonebook::TPhonebook
,
TInt
)
|
void
|
CallbackStoreGetPhonebookInfo
(
TInt
,
DispatcherPhonebook::TPhonebook
,
TInt
)
|
void
|
CallbackStoreInitialise
(
TInt
, const
DispatcherPhonebook::TPhonebookStoreInfoV1
&)
|
void
|
CallbackStoreReadEntry
(
TInt
,
DispatcherPhonebook::TPhonebook
, const
TDesC8
&)
|
void
|
CallbackStoreResetCache
(
TInt
,
DispatcherPhonebook::TPhonebook
)
|
void
|
CallbackStoreSetFdnPhonebookInfoInd
(
TInt
,
TInt
,
TInt
,
TInt
)
|
void
|
CallbackStoreWriteEntry
(
TInt
,
DispatcherPhonebook::TPhonebook
,
TUint16
,
TInt
)
|
void
|
CallbackSync
(
CRequestQueueOneShot::TIpcDataPackage
&)
|
TInt
|
DispatchGetPhoneStoreInfoL
(const
CMmDataPackage
*)
|
TInt
|
DispatchSmsStoreDeleteAllL
()
|
TInt
|
DispatchSmsStoreDeleteEntryL
(const
CMmDataPackage
*)
|
TInt
|
DispatchSmsStoreGetInfoL
()
|
TInt
|
DispatchSmsStoreReadAllL
()
|
TInt
|
DispatchSmsStoreReadEntryL
(const
CMmDataPackage
*)
|
TInt
|
DispatchSmsStoreWriteEntryL
(const
CMmDataPackage
*)
|
TInt
|
DispatchStoreCacheCancelL
(const
CMmDataPackage
*)
|
TInt
|
DispatchStoreCacheL
(const
CMmDataPackage
*)
|
TInt
|
DispatchStoreDeleteAllL
(const
CMmDataPackage
*)
|
TInt
|
DispatchStoreDeleteEntryL
(const
CMmDataPackage
*)
|
TInt
|
DispatchStoreGetInfoL
(const
CMmDataPackage
*)
|
TInt
|
DispatchStoreInitialiseL
(const
CMmDataPackage
*)
|
TInt
|
DispatchStoreReadEntryL
(const
CMmDataPackage
*)
|
TInt
|
DispatchStoreWriteEntryL
(const
CMmDataPackage
*)
|
CPhonebookDispatcher
*
|
NewL
(
MLtsyDispatchFactoryV1
&,
MmMessageManagerCallback
&,
CRequestQueueOneShot
&)
|
CPhonebookDispatcher
*
|
NewLC
(
MLtsyDispatchFactoryV1
&,
MmMessageManagerCallback
&,
CRequestQueueOneShot
&)
|
void
|
SetDispatcherHolder
(
TDispatcherHolder
&)
|
Constructor & Destructor Documentation
CPhonebookDispatcher(MLtsyDispatchFactoryV1 &, MmMessageManagerCallback &, CRequestQueueOneShot &)
~CPhonebookDispatcher()
~CPhonebookDispatcher
|
(
|
)
|
[virtual]
|
Member Functions Documentation
CallbackGetPhoneStoreInfo(TInt, const RMobilePhoneStore::TMobilePhoneStoreInfoV1 &)
CallbackSmsStoreDeleteAll(TInt)
void
|
CallbackSmsStoreDeleteAll
|
(
|
TInt
|
aError
|
)
|
|
Parameters
TInt
aError
|
The error code to be returned to the CTSY Dispatcher.
|
CallbackSmsStoreDeleteEntry(TInt)
void
|
CallbackSmsStoreDeleteEntry
|
(
|
TInt
|
aError
|
)
|
|
Parameters
TInt
aError
|
The error code to be returned.
|
CallbackSmsStoreGetInfo(TInt, TInt, TInt)
void
|
CallbackSmsStoreGetInfo
|
(
|
TInt
|
aError,
|
|
TInt
|
aTotalEntries,
|
|
TInt
|
aUsedEntries
|
|
)
|
|
Parameters
TInt
aError
|
The error code to be returned to the CTSY Dispatcher.
|
TInt
aTotalEntries
|
total number of entries in the SMS storage.
|
TInt
aUsedEntries
|
total number of used entries in the SMS storage.
|
CallbackSmsStoreReadAll(TInt, const DispatcherPhonebook::TSmsData &, TInt, TBool, TBool)
Parameters
TInt
aError
|
KErrNone on success, or another error code indicating the error otherwise.
|
const
DispatcherPhonebook::TSmsData
& aSmsData
|
SMS data.
|
TInt
aIndex
|
index of the SMS entry.
|
TBool
aMoreToCome
|
ETrue if there will be other SMS entries, EFalse otherwise.
|
TBool
aReceivedClass2ToBeResent
|
ETrue if received class is to be resent, else EFalse.
|
CallbackSmsStoreReadEntry(TInt, const DispatcherPhonebook::TSmsData &)
CallbackSmsStoreWriteEntry(TInt, TInt, TBool)
void
|
CallbackSmsStoreWriteEntry
|
(
|
TInt
|
aError,
|
|
TInt
|
aLocation,
|
|
TBool
|
aReceivedClass2ToBeResent
|
|
)
|
|
Parameters
TInt
aError
|
The error code to be returned to the CTSY Dispatcher.
|
TInt
aLocation
|
location of the entry.
|
TBool
aReceivedClass2ToBeResent
|
ETrue if received class is to be resent, else EFalse.
|
CallbackStoreCache(TInt, DispatcherPhonebook::TPhonebook, const TDesC8 &)
void
|
CallbackStoreCache
|
(
|
TInt
|
aError,
|
|
DispatcherPhonebook::TPhonebook
|
aPhonebook,
|
|
const
TDesC8
&
|
aPhonebookEntries
|
|
)
|
|
Parameters
TInt
aError
|
KErrNone on success, or another error code indicating the error otherwise.
|
DispatcherPhonebook::TPhonebook
aPhonebook
|
The phonebook of which the cache entries are for (and the request was made from).
|
const
TDesC8
& aPhonebookEntries
|
All entries from the phonebook encoded in a TLV, this can either be encoded directly via a CPhoneBookBuffer() or via the CPhoneBookEntry::ExternalizeToTlvEntry() utility.
|
CallbackStoreDeleteAll(TInt, DispatcherPhonebook::TPhonebook, TInt)
void
|
CallbackStoreDeleteAll
|
(
|
TInt
|
aError,
|
|
DispatcherPhonebook::TPhonebook
|
aPhonebook,
|
|
TInt
|
aMaxNumberLength
|
|
)
|
|
Parameters
TInt
aError
|
KErrNone on success, or another error code indicating the error otherwise.
|
DispatcherPhonebook::TPhonebook
aPhonebook
|
The phonebook name for which the delete all request was made.
|
TInt
aMaxNumberLength
|
The new maximum number length possible in the phonebook, this field is only relevant to Fdn, Adn and Vmb phonebooks.
|
CallbackStoreDeleteEntry(TInt, DispatcherPhonebook::TPhonebook, TInt)
void
|
CallbackStoreDeleteEntry
|
(
|
TInt
|
aError,
|
|
DispatcherPhonebook::TPhonebook
|
aPhonebook,
|
|
TInt
|
aMaxNumberLength
|
|
)
|
|
Parameters
TInt
aError
|
KErrNone on success, or another error code indicating the error otherwise.
|
DispatcherPhonebook::TPhonebook
aPhonebook
|
The phonebook of which the delete request was made.
|
TInt
aMaxNumberLength
|
The new maximum number length possible in the phonebook, this field is only relevant to Fdn, Adn and Vmb phonebooks.
|
CallbackStoreGetPhonebookInfo(TInt, DispatcherPhonebook::TPhonebook, TInt)
void
|
CallbackStoreGetPhonebookInfo
|
(
|
TInt
|
aError,
|
|
DispatcherPhonebook::TPhonebook
|
aPhonebook,
|
|
TInt
|
aUsedEntries
|
|
)
|
|
Parameters
TInt
aError
|
KErrNone on success, or another error code indicating the error otherwise.
|
DispatcherPhonebook::TPhonebook
aPhonebook
|
The phonebook name of which the phonebook information is for.
|
TInt
aUsedEntries
|
The number of used entries in the phonebook.
|
CallbackStoreInitialise(TInt, const DispatcherPhonebook::TPhonebookStoreInfoV1 &)
CallbackStoreReadEntry(TInt, DispatcherPhonebook::TPhonebook, const TDesC8 &)
void
|
CallbackStoreReadEntry
|
(
|
TInt
|
aError,
|
|
DispatcherPhonebook::TPhonebook
|
aPhonebook,
|
|
const
TDesC8
&
|
aPhonebookEntries
|
|
)
|
|
Parameters
TInt
aError
|
KErrNone on success, or another error code indicating the error otherwise.
|
DispatcherPhonebook::TPhonebook
aPhonebook
|
The phonebook of which the read request was made and which the enties are for.
|
const
TDesC8
& aPhonebookEntries
|
The read entries from the phonebook encoded in a TLV, this can either be encoded directly via a CPhoneBookBuffer() or via the CPhoneBookEntry::ExternalizeToTlvEntry() utility.
|
CallbackStoreResetCache(TInt, DispatcherPhonebook::TPhonebook)
void
|
CallbackStoreResetCache
|
(
|
TInt
|
aError,
|
|
DispatcherPhonebook::TPhonebook
|
aPhonebook
|
|
)
|
|
Parameters
TInt
aError
|
KErrNone on success, or another error code indicating the error otherwise.
|
DispatcherPhonebook::TPhonebook
aPhonebook
|
The phonebook to reset the cache for.
|
CallbackStoreSetFdnPhonebookInfoInd(TInt, TInt, TInt, TInt)
void
|
CallbackStoreSetFdnPhonebookInfoInd
|
(
|
TInt
|
aError,
|
|
TInt
|
aTotalEntries,
|
|
TInt
|
aMaxTextLength,
|
|
TInt
|
aMaxNumberLength
|
|
)
|
|
Parameters
TInt
aError
|
KErrNone on success, or another error code indicating the error otherwise.
|
TInt
aTotalEntries
|
The total number of entries in the Fdn phonebook.
|
TInt
aMaxTextLength
|
The maximum text length in the Fdn phonebook.
|
TInt
aMaxNumberLength
|
The maximum number length in the Fdn phonebook.
|
CallbackStoreWriteEntry(TInt, DispatcherPhonebook::TPhonebook, TUint16, TInt)
void
|
CallbackStoreWriteEntry
|
(
|
TInt
|
aError,
|
|
DispatcherPhonebook::TPhonebook
|
aPhonebook,
|
|
TUint16
|
aIndex,
|
|
TInt
|
aMaxNumberLength
|
|
)
|
|
Parameters
TInt
aError
|
KErrNone on success, or another error code indicating the error otherwise. KErrGsmSimServSneFull, KErrGsmSimServAnrFull, or KErrGsmSimServEmailFull indicates one of the services is full and the field of the entry (e.g. Email) could not be written. In the cache case the field (e.g. Email) is not written to the cache but the other fields are written, the request is then completed with the error code. In the non-cache case the request is completed with the error code.
|
DispatcherPhonebook::TPhonebook
aPhonebook
|
The phonebook name for which the write request was made.
|
TUint16
aIndex
|
The index to which the entry was written in the phonebook.
|
TInt
aMaxNumberLength
|
The new maximum number length possible in the phonebook, this field is only relevant to Fdn, Adn and Vmb phonebooks.
|
CallbackSync(CRequestQueueOneShot::TIpcDataPackage &)
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
Second phase constructor.
CreatePhoneBookStoreEntryLC(const CPhoneBookEntry &)
Parameters
const
CPhoneBookEntry
& aPhoneBookEntry
|
The entry to create a CPhoneBookStoreEntry from.
|
DispatchGetPhoneStoreInfoL(const CMmDataPackage *)
Unpack data related to EMobilePhoneGetPhoneStoreInfo and pass request on to Licensee LTSY.
DispatchSmsStoreDeleteAllL()
TInt
|
DispatchSmsStoreDeleteAllL
|
(
|
)
|
|
Pass request for EMobilePhoneStoreDeleteAll on to Licensee LTSY.
DispatchSmsStoreDeleteEntryL(const CMmDataPackage *)
Unpack data related to EMobilePhoneStoreDelete and pass request on to Licensee LTSY.
DispatchSmsStoreGetInfoL()
TInt
|
DispatchSmsStoreGetInfoL
|
(
|
)
|
|
Pass request for EMobilePhoneStoreGetInfo on to Licensee LTSY.
DispatchSmsStoreReadAllL()
TInt
|
DispatchSmsStoreReadAllL
|
(
|
)
|
|
Pass request for EMobilePhoneStoreReadAllPhase1 on to Licensee LTSY.
DispatchSmsStoreReadEntryL(const CMmDataPackage *)
Unpack data related to EMobilePhoneStoreRead and pass request on to Licensee LTSY.
DispatchSmsStoreWriteEntryL(const CMmDataPackage *)
Unpack data related to EMobilePhoneStoreWrite and pass request on to Licensee LTSY.
DispatchStoreCacheCancelL(const CMmDataPackage *)
Unpack data related to EMmTsyPhoneBookStoreCacheCancelIPC and pass request on to Licensee LTSY.
DispatchStoreCacheL(const CMmDataPackage *)
Unpack data related to EMmTsyPhoneBookStoreCacheIPC and pass request on to Licensee LTSY.
DispatchStoreDeleteAllL(const CMmDataPackage *)
Unpack data related to EMmTsyPhoneBookStoreDeleteAllIPC and pass request on to Licensee LTSY.
DispatchStoreDeleteEntryL(const CMmDataPackage *)
Unpack data related to EMmTsyPhoneBookStoreDeleteIPC and pass request on to Licensee LTSY.
DispatchStoreGetInfoL(const CMmDataPackage *)
Unpack data related to EMmTsyPhoneBookStoreGetInfoIPC and pass request on to Licensee LTSY.
DispatchStoreInitialiseL(const CMmDataPackage *)
Unpack data related to EMmTsyPhoneBookStoreInitIPC and pass request on to Licensee LTSY.
DispatchStoreReadEntryL(const CMmDataPackage *)
Unpack data related to EMmTsyPhoneBookStoreReadIPC and pass request on to Licensee LTSY.
DispatchStoreWriteEntryL(const CMmDataPackage *)
Unpack data related to EMmTsyPhoneBookStoreWriteIPC and pass request on to Licensee LTSY.
FillCtsyPhoneBookStoreL(const TDesC8 &, CArrayPtrSeg< CPhoneBookStoreEntry > &)
Fills the CTSY Store from the phonebook entries contained in a descriptor TLV.
FillPhoneBookEntry(const CPhoneBookStoreEntry &, CPhoneBookEntry &)
FillSmsStoreListL(const DispatcherPhonebook::TSmsData &, TInt, CArrayPtrFlat< TSmsMsg > &)
NewL(MLtsyDispatchFactoryV1 &, MmMessageManagerCallback &, CRequestQueueOneShot &)
NewLC(MLtsyDispatchFactoryV1 &, MmMessageManagerCallback &, CRequestQueueOneShot &)
Phonebook(const TDesC &)
DispatcherPhonebook::TPhonebook
|
Phonebook
|
(
|
const
TDesC
&
|
aPhonebookName
|
)
|
const [private]
|
Converts a phonebook name descriptor into an enum type.
Parameters
const
TDesC
& aPhonebookName
|
The phonebook name.
|
PhonebookName(DispatcherPhonebook::TPhonebook)
const
TDesC
&
|
PhonebookName
|
(
|
DispatcherPhonebook::TPhonebook
|
aPhonebookType
|
)
|
const [private]
|
Converts phonebook enum type to a phonebook name descriptor.
Parameters
DispatcherPhonebook::TPhonebook
aPhonebookType
|
|
PhonebookStoreToStorageInfo(const DispatcherPhonebook::TPhonebookStoreInfoV1 &, CStorageInfoData &)
Write data into a CTSY
CStorageInfoData
structure from a TPhonebookStoreInfoV1 dispatcher structure.
SetDispatcherHolder(TDispatcherHolder &)
Set the dispatcher holder.
Member Data Documentation
const TInt KMaxTotalEntries
const
TInt
|
KMaxTotalEntries
|
[private, static]
|
const TInt KPhonebookTypes
const
TInt
|
KPhonebookTypes
|
[private, static]
|
TDispatcherHolder * iDispatcherHolder
DispatcherPhonebook::TPhonebook
iInitialisePhonebook
DispatcherPhonebook::TPhonebook
|
iInitialisePhonebook
|
[private]
|
MLtsyDispatchPhonebookGetPhoneStoreInfo * iLtsyDispatchPhonebookGetPhoneStoreInfo
MLtsyDispatchPhonebookSmsStoreDeleteAll * iLtsyDispatchPhonebookSmsStoreDeleteAll
MLtsyDispatchPhonebookSmsStoreDeleteEntry * iLtsyDispatchPhonebookSmsStoreDeleteEntry
MLtsyDispatchPhonebookSmsStoreGetInfo * iLtsyDispatchPhonebookSmsStoreGetInfo
MLtsyDispatchPhonebookSmsStoreReadAll * iLtsyDispatchPhonebookSmsStoreReadAll
MLtsyDispatchPhonebookSmsStoreReadEntry * iLtsyDispatchPhonebookSmsStoreReadEntry
MLtsyDispatchPhonebookSmsStoreWriteEntry * iLtsyDispatchPhonebookSmsStoreWriteEntry
MLtsyDispatchPhonebookStoreCache * iLtsyDispatchPhonebookStoreCache
MLtsyDispatchPhonebookStoreCacheCancel * iLtsyDispatchPhonebookStoreCacheCancel
MLtsyDispatchPhonebookStoreDeleteAll * iLtsyDispatchPhonebookStoreDeleteAll
MLtsyDispatchPhonebookStoreDeleteEntry * iLtsyDispatchPhonebookStoreDeleteEntry
MLtsyDispatchPhonebookStoreGetPhonebookInfo * iLtsyDispatchPhonebookStoreGetPhonebookInfo
MLtsyDispatchPhonebookStoreInitialise * iLtsyDispatchPhonebookStoreInitialise
MLtsyDispatchPhonebookStoreReadEntry * iLtsyDispatchPhonebookStoreReadEntry
MLtsyDispatchPhonebookStoreWriteEntry * iLtsyDispatchPhonebookStoreWriteEntry
MLtsyDispatchFactoryV1 & iLtsyFactoryV1
MmMessageManagerCallback & iMessageManagerCallback
RPointerArray< CArrayPtrSeg< CPhoneBookStoreEntry > > iPhonebookCachePtrs
RPointerArray< CArrayPtrSeg< CPhoneBookStoreEntry > > iPhonebookReadPtrs
CRequestQueueOneShot & iRequestAsyncOneShot
CArrayPtrFlat< TSmsMsg > * iSmsListArray
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.