diff -r 000000000000 -r e686773b3f54 phonebookengines/VirtualPhonebook/inc/CVPbkLocalVariationManager.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonebookengines/VirtualPhonebook/inc/CVPbkLocalVariationManager.h Tue Feb 02 10:12:17 2010 +0200 @@ -0,0 +1,71 @@ +/* +* Copyright (c) 2005-2007 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: Virtual Phonebook Local variation manager. +* +*/ + + +#ifndef CVPBKLOCALVARIATIONMANAGER_H +#define CVPBKLOCALVARIATIONMANAGER_H + +// INCLUDE FILES +#include +#include + +// FORWARD DECLARATIONS +class CRepository; + + +// CLASS DECLARATION + +/** + * Virtual Phonebook Local variation manager. + */ +class CVPbkLocalVariationManager : + public CBase + { + public: + /** + * Creates a new instance of this class. + */ + IMPORT_C static CVPbkLocalVariationManager* NewL(); + + /** + * Destructor. + */ + ~CVPbkLocalVariationManager(); + + /** + * Used to check is the feature defined by aFeature on or off. + * @param aFeature the feature to check + * @return ETrue if the feature is on, EFalse otherwise + */ + IMPORT_C TBool LocallyVariatedFeatureEnabled(TVPbkLocalVariantFlags aFeature); + + private: // implementation + CVPbkLocalVariationManager(); + void ConstructL(); + TInt DoGetLocalVariationFlags(); + + private: // data + // Own: Central repository + CRepository* iRepository; + /// Own: local variation flags + TInt iLocalVariationFlags; + + }; + +#endif // CVPBKLOCALVARIATIONMANAGER_H + +// End of File