phonebookui/Phonebook2/ServerApplication/inc/MPbk2ContactAssigner.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2005-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:  Phonebook 2 contact assigner interface.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MPBK2CONTACTASSIGNER_H
       
    20 #define MPBK2CONTACTASSIGNER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 #include <Pbk2ServerAppIPC.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class MVPbkFieldType;
       
    28 class MVPbkStoreContact;
       
    29 class MVPbkStoreContactField;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34  * Phonebook 2 contact assigner interface.
       
    35  */
       
    36 class MPbk2ContactAssigner
       
    37     {
       
    38     public: // Interface
       
    39 
       
    40         /**
       
    41          * Destructor.
       
    42          */
       
    43         virtual ~MPbk2ContactAssigner()
       
    44             {}
       
    45 
       
    46         /**
       
    47          * Assigns given data to given contact.
       
    48          *
       
    49          * @param aStoreContact     The contact to assign data to.
       
    50          * @param aContactField     The contact field to assign data to.
       
    51          *                          If NULL, a new field is created.
       
    52          * @param aFieldType        Contact field type.
       
    53          * @param aDataBuffer       The data to assign.
       
    54          */
       
    55         virtual void AssignDataL(
       
    56                 MVPbkStoreContact& aStoreContact,
       
    57                 MVPbkStoreContactField* aContactField,
       
    58                 const MVPbkFieldType* aFieldType,
       
    59                 const HBufC* aDataBuffer ) = 0;
       
    60 
       
    61         /**
       
    62          * Assigns given attribute to given contact.
       
    63          *
       
    64          * @param aStoreContact         The contact to assign attribute to.
       
    65          * @param aContactField         The contact field to assign
       
    66          *                              attribute to.
       
    67          * @param aAttributeAssignData  The attribute data.
       
    68          */
       
    69         virtual void AssignAttributeL(
       
    70                 MVPbkStoreContact& aStoreContact,
       
    71                 MVPbkStoreContactField* aContactField,
       
    72                 TPbk2AttributeAssignData aAttributeAssignData ) = 0;
       
    73     };
       
    74 
       
    75 #endif // MPBK2CONTACTASSIGNER_H
       
    76 
       
    77 // End of File