diff -r 5b6f26637ad3 -r f4a778e096c2 phonebookui/Phonebook2/CommandsExtension/inc/CPbk2CmdExtensionPlugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonebookui/Phonebook2/CommandsExtension/inc/CPbk2CmdExtensionPlugin.h Wed Sep 01 12:29:52 2010 +0100 @@ -0,0 +1,97 @@ +/* +* 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: Phonebook 2 commands extension plug-in. +* +*/ + + +#ifndef CPBK2CMDEXTENSIONPLUGIN_H +#define CPBK2CMDEXTENSIONPLUGIN_H + +// INCLUDES +#include +#include + +// FORWARD DECLARATIONS +class CPbk2CommandFactory; + +// CLASS DECLARATION + +/** + * Phonebook 2 commands extension plug-in. + * Creates instances of the extension classes. + */ +class CPbk2CmdExtensionPlugin : public CPbk2UIExtensionPlugin + { + public: // Construction and destruction + + /** + * Creates a new instance of this class. + * + * @return A new instance of this class. + */ + static CPbk2CmdExtensionPlugin* NewL(); + + /** + * Destructor. + */ + ~CPbk2CmdExtensionPlugin(); + + private: // From CPbk2UIExtensionPlugin + MPbk2UIExtensionView* CreateExtensionViewL( + TUid aViewId, + CPbk2UIExtensionView& aView ); + void DynInitMenuPaneL( + TInt aResourceId, + CEikMenuPane* aMenuPane, + MPbk2ContactUiControl& aControl ); + void UpdateStorePropertiesL( + CPbk2StorePropertyArray& aPropertyArray ); + MPbk2ContactEditorExtension* CreatePbk2ContactEditorExtensionL( + CVPbkContactManager& aContactManager, + MVPbkStoreContact& aContact, + MPbk2ContactEditorControl& aEditorControl ); + MPbk2ContactUiControlExtension* CreatePbk2UiControlExtensionL( + CVPbkContactManager& aContactManager ); + MPbk2SettingsViewExtension* CreatePbk2SettingsViewExtensionL( + CVPbkContactManager& aContactManager ); + MPbk2AppUiExtension* CreatePbk2AppUiExtensionL( + CVPbkContactManager& aContactManager ); + MPbk2Command* CreatePbk2CommandForIdL( + TInt aCommandId, + MPbk2ContactUiControl& aUiControl ) const; + MPbk2AiwInterestItem* CreatePbk2AiwInterestForIdL( + TInt aInterestId, + CAiwServiceHandler& aServiceHandler ) const; + TBool GetHelpContextL( + TCoeHelpContext& aContext, + const CPbk2AppViewBase& aView, + MPbk2ContactUiControl& aUiControl ); + void ApplyDynamicViewGraphChangesL( + CPbk2ViewGraph& aViewGraph ); + void ApplyDynamicPluginInformationDataL( + CPbk2UIExtensionInformation& aUiExtensionInformation ); + + private: // Implementation + CPbk2CmdExtensionPlugin(); + void ConstructL(); + + private: // Data + /// Own: Command factory + CPbk2CommandFactory* iCommandFactory; + }; + +#endif // CPBK2CMDEXTENSIONPLUGIN_H + +// End of File