phonebookui/Phonebook2/ServerApplication/inc/Pbk2ContactAssignerFactory.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 factory.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef PBK2CONTACTDATAASSIGNERFACTORY_H
       
    20 #define PBK2CONTACTDATAASSIGNERFACTORY_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 #include <Pbk2ServerAppIPC.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class MPbk2ContactAssigner;
       
    28 class MPbk2ContactAssignerObserver;
       
    29 class CVPbkContactManager;
       
    30 class CPbk2FieldPropertyArray;
       
    31 class MVPbkFieldType;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36  * Phonebook 2 assigner factory.
       
    37  */
       
    38 class Pbk2ContactAssignerFactory
       
    39     {
       
    40     public: // Factory interface
       
    41 
       
    42         /**
       
    43          * Creates and returns a contact data assigner.
       
    44          *
       
    45          * @param aObserver         Observer.
       
    46          * @param aMimeType         MIME type of the data to assign.
       
    47          * @param aFieldType        Field type of the data to assign.
       
    48          * @param aContactManager   Virtual Phonebook contact manager.
       
    49          * @param aFieldProperties  Phonebook field properties.
       
    50          * @return  Contact data assigner.
       
    51          */
       
    52         static MPbk2ContactAssigner* CreateContactDataAssignerL(
       
    53                 MPbk2ContactAssignerObserver& aObserver,
       
    54                 TInt aMimeType,
       
    55                 const MVPbkFieldType* aFieldType,
       
    56                 CVPbkContactManager& aContactManager,
       
    57                 CPbk2FieldPropertyArray& aFieldProperties );
       
    58 
       
    59         /**
       
    60          * Creates and returns a contact attribute assigner.
       
    61          *
       
    62          * @param aObserver                 Observer.
       
    63          * @param aContactManager           Virtual Phonebook
       
    64          *                                  contact manager.
       
    65          * @param aAttributeAssignData      Contact attribute assign data.
       
    66          * @param aAttributeRemoval         ETrue if the attribute is to
       
    67          *                                  removed, EFalse if the attribute
       
    68          *                                  is to be added.
       
    69          * @return  Contact attribute assigner.
       
    70          */
       
    71         static MPbk2ContactAssigner* CreateContactAttributeAssignerL(
       
    72                 MPbk2ContactAssignerObserver& aObserver,
       
    73                 CVPbkContactManager& aContactManager,
       
    74                 TPbk2AttributeAssignData aAttributeAssignData,
       
    75                 TBool aAttributeRemoval );
       
    76     };
       
    77 
       
    78 #endif // PBK2CONTACTDATAASSIGNERFACTORY_H
       
    79 
       
    80 // End of File