以前做symbian通讯录与funambol service进行数据交换,在funambol6.x时还没有symbian版本,现在将其中一部分贴出来吧,这部分是通讯录存取类
|
文件: | QsSyncML.zip |
大小: | 4KB |
下载: | 下载 |
|
#ifndef ___SERVERTOCLIENT__
#define ___SERVERTOCLIENT__
#include "spds/SyncItem.h"
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "contactItem.h"
const TInt KMaxDatabasePathAndNameLength = 60;
const TInt KArraySize = 4;
const TInt KFormattersSpace = 10;
//_LIT(KListItemFormatter,"\t%S %S\t\t");
_LIT(KListOItemFormatter,"\t%S\t\t");
_LIT(KListItemFormatter,"%S,");
USE_NAMESPACE
#pragma once
class SymbianContact
{
public:
SymbianContact();
~SymbianContact();
public:
void addNewContactL(/*HBufC &aContactName,HBufC &aFirstName,HBufC &aLastName,HBufC &aPhoneNumber*/contactItem &aItem);
void addContactToGrpL(TInt aContactItem,TInt aGroupItem);
void modifyContactL(TInt aIndex,contactItem &aItem);
void deleteContactL(TInt aValue);
void addNewGroupL(HBufC &aGroupName);
void updateGroupL();
void deleteGroupL(TInt aValue);
void ReadContactGroupsFromDbL();
void ReadContactsFromDbL();
void deleteAllContactL();
private:
CContactDatabase* iContactDb;
//CDesCArray* iContactArray;
CDesCArray* iContactGroupArray;
CArrayFixFlat* iContactDataArray;
TBuf iDbName;
TContactItemId iSelectedItemId;
private:
bool OpenDefaultDatabaseL();
TBool IfContactDbSelected();
};
#endif
阅读(1200) | 评论(0) | 转发(0) |