diff -r 000000000000 -r e686773b3f54 phonebookui/Phonebook2/MapExtension/src/cpmapuiextensionplugin.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonebookui/Phonebook2/MapExtension/src/cpmapuiextensionplugin.cpp Tue Feb 02 10:12:17 2010 +0200 @@ -0,0 +1,214 @@ +/* +* 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: Map extension plugin. +* +*/ + +#include "cpmapuiextensionplugin.h" + +// Phonebook 2 +#include "cpmapcmd.h" +#include "pbk2mapcommands.hrh" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "cpmapcmd.h" + +// System includes +#include +#include +#include +#include + +// -------------------------------------------------------------------------- +// CPmapUIExtensionPlugin::CPmapUIExtensionPlugin +// -------------------------------------------------------------------------- +// +CPmapUIExtensionPlugin::CPmapUIExtensionPlugin() + { + } + +// -------------------------------------------------------------------------- +// CPmapUIExtensionPlugin::~CPmapUIExtensionPlugin +// -------------------------------------------------------------------------- +// +CPmapUIExtensionPlugin::~CPmapUIExtensionPlugin() + { + } + +// -------------------------------------------------------------------------- +// CPmapUIExtensionPlugin::NewL +// -------------------------------------------------------------------------- +// +CPmapUIExtensionPlugin* CPmapUIExtensionPlugin::NewL() + { + CPmapUIExtensionPlugin* self = new ( ELeave ) CPmapUIExtensionPlugin(); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// -------------------------------------------------------------------------- +// CPmapUIExtensionPlugin::ConstructL +// -------------------------------------------------------------------------- +// +void CPmapUIExtensionPlugin::ConstructL() + { + } + +// -------------------------------------------------------------------------- +// CPmapUIExtensionPlugin::CreateExtensionViewL +// -------------------------------------------------------------------------- +// +MPbk2UIExtensionView* CPmapUIExtensionPlugin::CreateExtensionViewL + ( TUid /*aViewId*/, CPbk2UIExtensionView& /*aView*/ ) + { + return NULL; + } + +// -------------------------------------------------------------------------- +// CPmapUIExtensionPlugin::DynInitMenuPaneL +// -------------------------------------------------------------------------- +// +void CPmapUIExtensionPlugin::DynInitMenuPaneL( TInt /*aResourceId*/, + CEikMenuPane* /*aMenuPane*/, MPbk2ContactUiControl& /*aControl*/ ) + { + + } + +// -------------------------------------------------------------------------- +// CPmapUIExtensionPlugin::UpdateStorePropertiesL +// -------------------------------------------------------------------------- +// +void CPmapUIExtensionPlugin::UpdateStorePropertiesL + ( CPbk2StorePropertyArray& /*aPropertyArray*/ ) + { + // Do nothing + } + +// -------------------------------------------------------------------------- +// CPmapUIExtensionPlugin::CreatePbk2ContactEditorExtensionL +// -------------------------------------------------------------------------- +// +MPbk2ContactEditorExtension* + CPmapUIExtensionPlugin::CreatePbk2ContactEditorExtensionL + ( CVPbkContactManager& aContactManager, + MVPbkStoreContact& aContact, + MPbk2ContactEditorControl& aEditorControl ) + { + return CPmapContactEditorExtension::NewL + ( aContactManager, aContact, aEditorControl ); + } + +// -------------------------------------------------------------------------- +// CPmapUIExtensionPlugin::CreatePbk2UiControlExtensionL +// -------------------------------------------------------------------------- +// +MPbk2ContactUiControlExtension* + CPmapUIExtensionPlugin::CreatePbk2UiControlExtensionL + ( CVPbkContactManager& /*aContactManager*/ ) + { + return NULL; + } + +// -------------------------------------------------------------------------- +// CPmapUIExtensionPlugin::CreatePbk2SettingsViewExtensionL +// -------------------------------------------------------------------------- +// +MPbk2SettingsViewExtension* + CPmapUIExtensionPlugin::CreatePbk2SettingsViewExtensionL + ( CVPbkContactManager& /*aContactManager*/ ) + { + return NULL; + } + +// -------------------------------------------------------------------------- +// CPmapUIExtensionPlugin::CreatePbk2AppUiExtensionL +// -------------------------------------------------------------------------- +// +MPbk2AppUiExtension* CPmapUIExtensionPlugin::CreatePbk2AppUiExtensionL + ( CVPbkContactManager& /*aContactManager*/ ) + { + return NULL; + } + +// -------------------------------------------------------------------------- +// CPmapUIExtensionPlugin::CreatePbk2CommandForIdL +// -------------------------------------------------------------------------- +// +MPbk2Command* CPmapUIExtensionPlugin::CreatePbk2CommandForIdL + ( TInt aCommandId, MPbk2ContactUiControl& aUiControl ) const + { + switch(aCommandId) + { + case EPbk2ExtensionAssignFromMapSelect: + case EPbk2ExtensionAssignFromMap: + case EPbk2ExtensionShowOnMap: + return CPmapCmd::NewL( aUiControl, aCommandId ); + default: + break; + } + return NULL; + } + +// -------------------------------------------------------------------------- +// CPmapUIExtensionPlugin::CreatePbk2AiwInterestForIdL +// -------------------------------------------------------------------------- +// +MPbk2AiwInterestItem* CPmapUIExtensionPlugin::CreatePbk2AiwInterestForIdL( + TInt /*aInterestId*/, + CAiwServiceHandler& /*aServiceHandler*/ ) const + { + return NULL; + } + +// -------------------------------------------------------------------------- +// CPmapUIExtensionPlugin::GetHelpContextL +// -------------------------------------------------------------------------- +// +TBool CPmapUIExtensionPlugin::GetHelpContextL + ( TCoeHelpContext& /*aContext*/, const CPbk2AppViewBase& /*aView*/, + MPbk2ContactUiControl& /*aUiControl*/ ) + { + return EFalse; + } + +// -------------------------------------------------------------------------- +// CPmapUIExtensionPlugin::ApplyDynamicViewGraphChangesL +// -------------------------------------------------------------------------- +// +void CPmapUIExtensionPlugin::ApplyDynamicViewGraphChangesL + ( CPbk2ViewGraph& /*aViewGraph*/ ) + { + // Do nothing + } + +// -------------------------------------------------------------------------- +// CPmapUIExtensionPlugin::ApplyDynamicPluginInformationDataL +// -------------------------------------------------------------------------- +// +void CPmapUIExtensionPlugin::ApplyDynamicPluginInformationDataL + ( CPbk2UIExtensionInformation& /*aUiExtensionInformation*/ ) + { + // Do nothing + } + +// End of File