phonebookengines/contactsmodel/inc/cntsync.h
changeset 37 fd64c38c277d
parent 24 0ba2181d7c28
child 40 b46a585f6909
equal deleted inserted replaced
31:2a11b5b00470 37:fd64c38c277d
     1 /*
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 * All rights reserved.
     3 // This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 *
     8 // Initial Contributors:
     9 * Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    10 //
    11 *
    11 // Contributors:
    12 * Contributors:
    12 //
    13 *
    13 // Description:
    14 * Description: 
    14 //
    15 *
       
    16 */
       
    17 
       
    18 
    15 
    19 #ifndef __CNTSYNC_H__
    16 #ifndef __CNTSYNC_H__
    20 #define __CNTSYNC_H__
    17 #define __CNTSYNC_H__
    21 
       
    22 
    18 
    23 #include <e32base.h>
    19 #include <e32base.h>
    24 #include <cntdef.h>
    20 #include <cntdef.h>
    25 
    21 
    26 class CContactICCEntry;
    22 class CContactICCEntry;
    30 
    26 
    31 It should be inherited by classes which implement the phonebook 
    27 It should be inherited by classes which implement the phonebook 
    32 synchroniser API. The plug-in should have a second UID of 
    28 synchroniser API. The plug-in should have a second UID of 
    33 0x101F4A6E (KUidContactSynchroniserDll).
    29 0x101F4A6E (KUidContactSynchroniserDll).
    34 
    30 
    35 @internalAll
    31 @publishedAll
    36 */
    32 */
    37 	{
    33 	{
    38 public:
    34 public:
    39 	/**
    35 	/**
    40 	@internalAll
    36 	@publishedAll
       
    37 	@released
    41 	*/
    38 	*/
    42 	enum TValidateOperation
    39 	enum TValidateOperation
    43 		{
    40 		{
    44 		ERead,		/** Check a cached ICC contact can be read */
    41 		ERead,		/** Check a cached ICC contact can be read */
    45 		ESearch,	/** Check a cached ICC contact can be searched */
    42 		ESearch,	/** Check a cached ICC contact can be searched */
    97 	virtual TInt PhonebookList(RArray<TUid>& aPhonebookList) = 0;
    94 	virtual TInt PhonebookList(RArray<TUid>& aPhonebookList) = 0;
    98 
    95 
    99 private:
    96 private:
   100 	IMPORT_C virtual void MContactSynchroniser_Reserved_1();
    97 	IMPORT_C virtual void MContactSynchroniser_Reserved_1();
   101 	};
    98 	};
   102 	
    99 
       
   100 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
   103 
   101 
   104 /** The UID for the default phone book synchroniser ECom plugin interface.
   102 /** The UID for the default phone book synchroniser ECom plugin interface.
   105 @internalComponent
   103 @publishedPartner
   106 */
   104 */
   107 const TUid KUidEcomCntPhBkSyncInterface = {0x102035FD};
   105 const TUid KUidEcomCntPhBkSyncInterface = {0x102035FD};
   108 	
   106 	
   109 class CContactSynchroniser : public CBase, public MContactSynchroniser
   107 class CContactSynchroniser : public CBase, public MContactSynchroniser
   110 /** 
   108 /** 
   111 Abstract interface for a ECom contacts phonebook synchroniser plugin
   109 Abstract interface for a ECom contacts phonebook synchroniser plugin
   112 
   110 
   113 It should be inherited by classes which implement the phonebook 
   111 It should be inherited by classes which implement the phonebook 
   114 synchroniser API in a platform secured environment. The ECom plug-in interface uid is 
   112 synchroniser API in a platform secured environment. The ECom plug-in interface uid is 
   115 KUidEcomCntPhBkSyncInterface
   113 KUidEcomCntPhBkSyncInterface
   116 @internalAll
   114 @publishedPartner
   117 */
   115 */
   118 	{
   116 	{
   119 public:
   117 public:
   120 	// From MContactSynchroniser
   118 	// From MContactSynchroniser
   121 	virtual TInt ValidateContact(TValidateOperation aOp, TContactItemId aId) = 0;
   119 	virtual TInt ValidateContact(TValidateOperation aOp, TContactItemId aId) = 0;
   135 private:
   133 private:
   136 	TUid iDtor_ID_Key;
   134 	TUid iDtor_ID_Key;
   137 	};
   135 	};
   138 
   136 
   139 #endif
   137 #endif
       
   138 	
       
   139 #endif