|
|
|
Location:
phbksync.h
Link against: phbksyncplugin.lib
class RPhoneBookSession : public RSessionBase;
Supported from 7.0
Provides the CPhoneBookSyncPlugin class access to a session with the Phonebook Synchronizer Server. A handle to an RPhoneBookSession enables the plug-in class to perform IPC communications with the server.
|
Defined in RPhoneBookSession:
CancelRequest(), Close(), Connect(), DeleteContact(), DoSynchronisation(), EAutoCurrentIcc, EAutoSameIcc, ECacheValid, EManual, ESyncGroupId, ESyncTemplateId, EUnsynchronised, GetContactFormat(), GetPhoneBookCacheState(), GetPhoneBookId(), GetSyncMode(), MapContactFormatToInternalL(), RPhoneBookSession(), RPhoneBookSession(), SetSyncMode(), SetTypeOfNumber(), TContactFieldsV1, TContactFieldsV1Pckg, TPhonebookSyncMode, TSyncIdType, TSyncState, UpdateLookuptable(), ValidateContact(), Version(), WriteContact(), __DbgCheckHeap(), __DbgFailNext(), __DbgMarkEnd(), __DbgMarkHeap(), iSyncPtrHolder
Inherited from RHandleBase:
Duplicate(),
Handle(),
SetHandle()
Inherited from RSessionBase:
Attach(),
CreateSession(),
EAutoAttach,
EExplicitAttach,
Send(),
SendReceive(),
SetRetry(),
Share(),
TAttachMode
TInt Connect();
Connects the client to the Phonebook Synchronizer Server. It must be used before any of the other methods listed in this API section. The first client to call this method will cause the initiation of the Phonebook Synchronizer Server thread within the C32 process.
|
TVersion Version() const;
Returns the current version of the Phonebook Synchronizer Server.
|
void DoSynchronisation(TRequestStatus& aReqStatus);
Executes a manual synchronization of the ICC phonebook entries.
|
TInt ValidateContact(MContactSynchroniser::TValidateOperation aOperation, TContactItemId aId);
Test whether the read, edit or search operation specified by the aOp parameter is valid.
|
|
void WriteContact(TRequestStatus& aReqStatus, CContactICCEntry& aContactItem, TInt& aSlotNumber);
Writes the contact item to the ICC card. Can be used yo edit an existing contact or to create a new contact/
|
void DeleteContact(TRequestStatus& aReqStatus, TContactItemId aId);
Deletes the contact item from the ICC card.
|
TInt GetPhoneBookId(TContactItemId& aId, TSyncIdType aIdType);
Returns the requested UID. This is the ID type spedified by aIdType which can be either the template ID or the group ID.
|
|
TInt UpdateLookuptable(TContactItemId aNewUid, TInt aIccSlot);
Update its look-up table with the new contact ID. This method is called when a new entry has been added to the Contacts Database by a client other than the Phonebook Synchronizer Server, because the server can do the update when it knows what the UID of the newly added contact was. The Phonebook Synchronizer plug-in should extract the appropriate details from the item (e.g. item UID and slot number) and call the Phonebook server to update the look-up tables.
|
|
TInt GetContactFormat(TDes8& aContactFields);
Returns information about the supported fields within an ICC phonebook entry. The TContactFieldFormat type defines the information available for each field and TContactFieldsV1 is a collection of this information for all supported field types. The client can use the field information to tailor its UI so that user can only enter fields with the maximum number of supported characters.
The only fields supported by GSM ADN phonebook are the name, number and ICC slot number, so these are the only fields included in TContactFieldsV1. Future API enhancement will add a TContactFieldsV2 to contain the new USIM phonebook fields.
|
|
TInt GetSyncMode(TPhonebookSyncMode& aSyncMode);
Returns the current setting for the synchronization mode, used by the Phonebook Synchronizer Server at start-up to determine its synchronization policy.
|
|
TInt SetSyncMode(TPhonebookSyncMode aSyncMode);
Sets a new value for the synchronization mode, used by the Phonebook Synchronizer Server at start-up to determine its synchronization policy.
|
|
TInt GetPhoneBookCacheState(TSyncState& aState);
Returns the current state of the Phonebook Synchronizer server cache.
|
|
void CancelRequest(TPhonebookSyncRequestCancel aReqToCancel);
Cancels a previously issued asynchronous request.
|
class TContactFieldsV1;
The contact fields that can be stored within the phonebook.
Defined in RPhoneBookSession::TContactFieldsV1:
ExtensionId(), KPhBkSyncTContactFieldsV1, TContactFieldsExtensionId, TContactFieldsV1(), iExtensionId, iIccSlotField, iNameField, iNumberField
TContactFieldsV1()TContactFieldsV1();
Standard constructor.
ExtensionId()TInt ExtensionId() const;
Returns the Phonebook Synchronizer API extension number of the class.
|
TContactFieldsExtensionIdTContactFieldsExtensionId
Enumeration to describe the version ID of the Phonebook Synchronizer .
|
iNameFieldTContactFieldFormat iNameField;
The format of the name field within an ICC phonebook entry.
iNumberFieldTContactFieldFormat iNumberField;
The format of the number field within an ICC phonebook entry.
iIccSlotFieldTContactFieldFormat iIccSlotField;
The format of the ICC slot number field within an ICC phonebook entry.
iExtensionIdprotected: TInt iExtensionId;
This member is internal and not intended for use.
TPhonebookSyncMode
The synchronization mode.
|
TSyncState
The phonebook cache state.
|
TSyncIdType
Phonebook identity.
|
typedef TPckg<TContactFieldsV1> TContactFieldsV1Pckg;
A packaged instance of TContactFieldsV1.
private: RPhoneBookSession(const RPhoneBookSession& aSession);
This member is internal and not intended for use.
private: TInt MapContactFormatToInternalL(const CContactICCEntry& aContactItem);
This member is internal and not intended for use.
private: void SetTypeOfNumber(const TDesC& aNumber);
This member is internal and not intended for use.
private: CPBSyncPtrHolder* iSyncPtrHolder;
This member is internal and not intended for use.