diff -r 000000000000 -r e686773b3f54 phonebookui/Phonebook/PbkEngine_FM/inc/Cfmpbkengineextension.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonebookui/Phonebook/PbkEngine_FM/inc/Cfmpbkengineextension.h Tue Feb 02 10:12:17 2010 +0200 @@ -0,0 +1,78 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Extension for Phonebook engine. +* +*/ + + +#ifndef __CFMPBKENGINEEXTENSION_H +#define __CFMPBKENGINEEXTENSION_H + + +// INCLUDES +#include +#include +#include + +// FORWARD DECLARATIONS +class CPbkConstants; +class CPbkFieldsInfo; + +// CLASS DECLARATION + +/** + * Extension for Phonebook engine. + */ +class CFmPbkEngineExtension : public CPbkEngineExtensionInterface + { + public: // Constructor and destructor + /** + * Creates a new instance of CFmPbkEngineExtension. + * @param[in] aParam ECom construction parameter of type + * CPbkEngineExtensionInterface::TEngExtParams*. + */ + static CFmPbkEngineExtension* NewL(TAny* aParam); + + /** + * Destructor. + */ + ~CFmPbkEngineExtension(); + + public: // From CPbkEngineExtensionInterface + TBool GetAdditionalFieldTypesResourceL(TFieldTypeResource& aResource); + TBool ModifyFieldTypesL(CPbkFieldsInfo& aFieldsInfo); + TInt AdditionalFieldTypesResourceCount() const; + + private: // Implementation + CFmPbkEngineExtension(); + void ConstructL( + const CPbkEngineExtensionInterface::TEngExtParams& aParam); + void GetFieldTypeL(TFieldTypeResource& aResource, + TInt aPbkResId, + TInt aCntResId); + + private: // Data + /// Own: will be set if there has not been set RFs with SetFs + RFs iFs; + /// Own: Local variation manager + CPbkConstants* iConstants; + /// Current index of the separate resources + TInt iCurrentResourceIndex; + /// Own: Field type resource file + RResourceFile iResourceFile; + }; + +#endif // __CFMPBKENGINEEXTENSION_H + +// End of file