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