blob: 7080b341f44bfb44171ef89ee8545814faf99aa0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//
#ifndef __CNTSYNCECOM_H__
#define __CNTSYNCECOM_H__
#include <cntsync.h>
/** The UID for the default phone book synchroniser ECom plugin interface.
@publishedPartner
*/
const TUid KUidEcomCntPhBkSyncInterface = {0x102035FD};
class CContactSynchroniser : public CBase, public MContactSynchroniser
/**
Abstract interface for a ECom contacts phonebook synchroniser plugin
It should be inherited by classes which implement the phonebook
synchroniser API in a platform secured environment. The ECom plug-in interface uid is
KUidEcomCntPhBkSyncInterface
@publishedPartner
*/
{
public:
// From MContactSynchroniser
virtual TInt ValidateContact(TValidateOperation aOp, TContactItemId aId) = 0;
virtual TInt ValidateWriteContact(CContactICCEntry& aContactItem) = 0;
virtual TInt DeleteContact(TContactItemId aId) = 0;
virtual void Release() = 0;
virtual void UpdatePostWriteL(const CContactICCEntry& aContactItem) = 0;
virtual TContactItemId ICCTemplateIdL(TUid aPhonebookUid) = 0;
virtual TContactItemId GroupIdL(TUid aPhonebookUid) = 0;
virtual void NotifySyncStateChange(TRequestStatus& aStatus, TUid aPhonebookUid) = 0;
virtual void CancelNotifyRequest(TUid aPhonebookUid) = 0;
virtual TBool IsSynchronisedL(TUid aPhonebookUid) = 0;
virtual TInt PhonebookList(RArray<TUid>& aPhonebookList) = 0;
public:
static CContactSynchroniser* NewL();
IMPORT_C virtual ~CContactSynchroniser();
private:
TUid iDtor_ID_Key;
};
#endif
|