ccservices/cmsservices/cmsengine/Server/inc/cmscontactinterface.h
changeset 0 e686773b3f54
child 14 81f8547efd4f
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *       
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __CMSCONTACTINTERFACE__
       
    21 #define __CMSCONTACTINTERFACE__
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include "cmsnotificationhandlerapi.h"
       
    26 
       
    27 class MVPbkContactLink;
       
    28 class MVPbkStoreContact;
       
    29 
       
    30 class MCmsContactInterface
       
    31     {
       
    32     public:
       
    33     
       
    34       /*  enum TPhonebookEvent
       
    35     {
       
    36     EContactModified = 0,
       
    37     EContactDeleted        
       
    38     };*/
       
    39         
       
    40         virtual TBool OfferContactEventL( TCmsPhonebookEvent aEventType,
       
    41                                           const MVPbkContactLink* aContactLink ) = 0;
       
    42 
       
    43         virtual void ContactReadyL( TInt error, MVPbkStoreContact* aContact ) = 0;
       
    44 
       
    45         virtual const MVPbkStoreContact& Contact() const = 0;
       
    46         
       
    47         virtual TBool HandleField( HBufC* aFieldData ) = 0;
       
    48 
       
    49         virtual TBool HandleField( HBufC8* aFieldData ) = 0;
       
    50 
       
    51         virtual TBool HandleEnabledFields( HBufC* aFieldData ) = 0;
       
    52         
       
    53         virtual void HandleError( TInt aError ) = 0;
       
    54         
       
    55     };
       
    56 
       
    57 #endif  //__CMSCONTACTINTERFACE__
       
    58 
       
    59 
       
    60 // End of File