phonebookui/Phonebook/PbkEngine_FM/inc/Cfmpbkengineextension.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Extension for Phonebook engine.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __CFMPBKENGINEEXTENSION_H
       
    20 #define __CFMPBKENGINEEXTENSION_H
       
    21 
       
    22 
       
    23 // INCLUDES
       
    24 #include <f32file.h>
       
    25 #include <barsc.h>
       
    26 #include <CPbkEngineExtensionInterface.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CPbkConstants;
       
    30 class CPbkFieldsInfo;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35  * Extension for Phonebook engine.
       
    36  */
       
    37 class CFmPbkEngineExtension : public CPbkEngineExtensionInterface
       
    38     {
       
    39     public: // Constructor and destructor
       
    40         /**
       
    41          * Creates a new instance of CFmPbkEngineExtension.
       
    42          * @param[in] aParam ECom construction parameter of type
       
    43          *   CPbkEngineExtensionInterface::TEngExtParams*.
       
    44          */
       
    45         static CFmPbkEngineExtension* NewL(TAny* aParam);
       
    46 
       
    47         /**
       
    48          * Destructor.
       
    49          */
       
    50         ~CFmPbkEngineExtension();
       
    51 
       
    52     public: // From CPbkEngineExtensionInterface
       
    53         TBool GetAdditionalFieldTypesResourceL(TFieldTypeResource& aResource);
       
    54         TBool ModifyFieldTypesL(CPbkFieldsInfo& aFieldsInfo);
       
    55         TInt AdditionalFieldTypesResourceCount() const;
       
    56 
       
    57     private: // Implementation
       
    58         CFmPbkEngineExtension();
       
    59         void ConstructL(
       
    60             const CPbkEngineExtensionInterface::TEngExtParams& aParam);
       
    61         void GetFieldTypeL(TFieldTypeResource& aResource, 
       
    62                            TInt aPbkResId, 
       
    63                            TInt aCntResId);
       
    64 
       
    65     private: // Data
       
    66         /// Own: will be set if there has not been set RFs with SetFs
       
    67         RFs iFs;
       
    68         /// Own: Local variation manager
       
    69         CPbkConstants* iConstants;
       
    70         /// Current index of the separate resources
       
    71         TInt iCurrentResourceIndex;
       
    72         /// Own: Field type resource file
       
    73         RResourceFile iResourceFile;
       
    74     };
       
    75 
       
    76 #endif  // __CFMPBKENGINEEXTENSION_H
       
    77 
       
    78 // End of file