class MLogCntModel |
Provides an interface to decouple the internal static dependency of LogEng on Contacts.
Rather than statically linking against a specific contacts implementation dll the log engine dynamically loads a plugin implementation of this class, to remove any need for a direct dependency on a specific Contacts implementation.
The interface is provided to allow logeng to retrieve a string which contains contacts information for a given phone number.
Public Member Functions | |
---|---|
void | CloseContacts () |
TLogContactItemId | MatchPhoneNumberL (const TDesC &, TInt ) |
void | OpenContactsL () |
void | ReadContactNameL ( TLogContactItemId , TDes &, TLogContactNameFormat ) |
TLogContactItemId | MatchPhoneNumberL | ( | const TDesC & | aNumber, |
TInt | aMatchLengthFromRight | |||
) | [pure virtual] |
Attempts to find a contact item ID for the contact items which contains the specified telephone number in a telephone, fax or SMS type field. If more than one contact item contains the telephone number this should be treated the same as no contact found.
void | OpenContactsL | ( | ) | [pure virtual] |
void | ReadContactNameL | ( | TLogContactItemId | aContactId, |
TDes & | aName, | |||
TLogContactNameFormat | aNameFormat | |||
) | [pure virtual] |
Gets the text data for the family and given name fields of a given contact Id.
TLogContactItemId aContactId | Contact Id to find data for |
TDes & aName | On return contains a string holding the family and given name in the desired format if found, a 0 length string otherwise. The buffer for aName is supplied by the client and should be of a length sufficent to hold a standard contact string. |
TLogContactNameFormat aNameFormat | Desired format of returned string - Chinese or Western format |
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.