Public Member Functions | |
virtual | ~CContactsModelDocument () |
HBufC * | GetItemL (TInt anIndex) |
TInt | ItemCount () |
void | UpdateContactsL () |
TInt | ImportL (RReadStream &aReadStream) |
void | ExportL (RWriteStream &aWriteStream, TInt aExportItem) |
Static Public Member Functions | |
static CContactsModelDocument * | NewL (CEikApplication &aApp) |
CContactsModelDocument application class.
Definition at line 23 of file ContactsModelDocument.h.
CContactsModelDocument::~CContactsModelDocument | ( | ) | [virtual] |
Destructor.
Definition at line 23 of file ContactsModelDocument.cpp.
CContactsModelDocument * CContactsModelDocument::NewL | ( | CEikApplication & | aApp | ) | [static] |
Two-phased constructor.
Definition at line 42 of file ContactsModelDocument.cpp.
HBufC * CContactsModelDocument::GetItemL | ( | TInt | anIndex | ) |
GetItemL
Returns text representation of the specified contact item.
Parameters anIndex - contact item index
Returns String with the text description of the contact item
Definition at line 54 of file ContactsModelDocument.cpp.
TInt CContactsModelDocument::ItemCount | ( | ) |
ItemCount
Return the number of contact items in the default database
Returns Number of contact items
Definition at line 70 of file ContactsModelDocument.cpp.
void CContactsModelDocument::UpdateContactsL | ( | ) |
UpdateContactsL
Retrives the list of contact item ids from the default database.
Definition at line 75 of file ContactsModelDocument.cpp.
TInt CContactsModelDocument::ImportL | ( | RReadStream & | aReadStream | ) |
ImportL
Reads from the stream vCard and tries to import them in the default database.
Parameters aReadStream - read stream with vCards
Returns KErrNone or KErrGeneral if import failed
Definition at line 100 of file ContactsModelDocument.cpp.
void CContactsModelDocument::ExportL | ( | RWriteStream & | aWriteStream, | |
TInt | aExportItem | |||
) |
ExportL
Exports the selected item from the default contact database to the specified ouput stream as vCard.
Parameters aWriteStream - output stream to write the item as vCard aExportItem - the index of item for export
Returns Nothing
Definition at line 121 of file ContactsModelDocument.cpp.