phonebookui/Phonebook2/MapExtension/src/cpmapuiextensionplugin.cpp
changeset 0 e686773b3f54
child 26 0d28c1c5b6dd
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2005-2007 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:  Map extension plugin.
       
    15 *
       
    16 */
       
    17 
       
    18 #include "cpmapuiextensionplugin.h"
       
    19 
       
    20 // Phonebook 2
       
    21 #include "cpmapcmd.h"
       
    22 #include "pbk2mapcommands.hrh"
       
    23 #include <CPbk2AppUiBase.h>
       
    24 #include <Pbk2Commands.hrh>
       
    25 #include <MPbk2CommandHandler.h>
       
    26 #include <MPbk2ApplicationServices.h>
       
    27 #include <Pbk2MapUIRes.rsg>
       
    28 #include <Pbk2Commands.rsg>
       
    29 #include <Pbk2UIControls.hrh>
       
    30 #include <Pbk2UIControls.rsg>
       
    31 #include <cpmapcontacteditorextension.h>
       
    32 #include "cpmapcmd.h"
       
    33 
       
    34 // System includes
       
    35 #include <coemain.h>
       
    36 #include <eikmenub.h>
       
    37 #include <AiwCommon.hrh>
       
    38 #include <AiwServiceHandler.h>
       
    39 
       
    40 // --------------------------------------------------------------------------
       
    41 // CPmapUIExtensionPlugin::CPmapUIExtensionPlugin
       
    42 // --------------------------------------------------------------------------
       
    43 //
       
    44 CPmapUIExtensionPlugin::CPmapUIExtensionPlugin()
       
    45     {
       
    46     }
       
    47 
       
    48 // --------------------------------------------------------------------------
       
    49 // CPmapUIExtensionPlugin::~CPmapUIExtensionPlugin
       
    50 // --------------------------------------------------------------------------
       
    51 //
       
    52 CPmapUIExtensionPlugin::~CPmapUIExtensionPlugin()
       
    53     {
       
    54     }
       
    55 
       
    56 // --------------------------------------------------------------------------
       
    57 // CPmapUIExtensionPlugin::NewL
       
    58 // --------------------------------------------------------------------------
       
    59 //
       
    60 CPmapUIExtensionPlugin* CPmapUIExtensionPlugin::NewL()
       
    61     {
       
    62     CPmapUIExtensionPlugin* self = new ( ELeave ) CPmapUIExtensionPlugin();
       
    63     CleanupStack::PushL( self );
       
    64     self->ConstructL();
       
    65     CleanupStack::Pop( self );
       
    66     return self;
       
    67     }
       
    68 
       
    69 // --------------------------------------------------------------------------
       
    70 // CPmapUIExtensionPlugin::ConstructL
       
    71 // --------------------------------------------------------------------------
       
    72 //
       
    73 void CPmapUIExtensionPlugin::ConstructL()
       
    74     {
       
    75     }
       
    76 
       
    77 // --------------------------------------------------------------------------
       
    78 // CPmapUIExtensionPlugin::CreateExtensionViewL
       
    79 // --------------------------------------------------------------------------
       
    80 //
       
    81 MPbk2UIExtensionView* CPmapUIExtensionPlugin::CreateExtensionViewL
       
    82         ( TUid /*aViewId*/, CPbk2UIExtensionView& /*aView*/ )
       
    83     {
       
    84     return NULL;
       
    85     }
       
    86 
       
    87 // --------------------------------------------------------------------------
       
    88 // CPmapUIExtensionPlugin::DynInitMenuPaneL
       
    89 // --------------------------------------------------------------------------
       
    90 //
       
    91 void CPmapUIExtensionPlugin::DynInitMenuPaneL( TInt /*aResourceId*/,
       
    92         CEikMenuPane* /*aMenuPane*/, MPbk2ContactUiControl& /*aControl*/ )
       
    93     {        
       
    94    
       
    95     }
       
    96 
       
    97 // --------------------------------------------------------------------------
       
    98 // CPmapUIExtensionPlugin::UpdateStorePropertiesL
       
    99 // --------------------------------------------------------------------------
       
   100 //
       
   101 void CPmapUIExtensionPlugin::UpdateStorePropertiesL
       
   102         ( CPbk2StorePropertyArray& /*aPropertyArray*/ )
       
   103     {
       
   104     // Do nothing
       
   105     }
       
   106 
       
   107 // --------------------------------------------------------------------------
       
   108 // CPmapUIExtensionPlugin::CreatePbk2ContactEditorExtensionL
       
   109 // --------------------------------------------------------------------------
       
   110 //
       
   111 MPbk2ContactEditorExtension*
       
   112     CPmapUIExtensionPlugin::CreatePbk2ContactEditorExtensionL
       
   113         ( CVPbkContactManager& aContactManager,
       
   114           MVPbkStoreContact& aContact,
       
   115           MPbk2ContactEditorControl& aEditorControl )
       
   116     {
       
   117     return CPmapContactEditorExtension::NewL
       
   118         ( aContactManager, aContact, aEditorControl );
       
   119     }
       
   120 
       
   121 // --------------------------------------------------------------------------
       
   122 // CPmapUIExtensionPlugin::CreatePbk2UiControlExtensionL
       
   123 // --------------------------------------------------------------------------
       
   124 //
       
   125 MPbk2ContactUiControlExtension*
       
   126     CPmapUIExtensionPlugin::CreatePbk2UiControlExtensionL
       
   127         ( CVPbkContactManager& /*aContactManager*/ )
       
   128     {
       
   129     return NULL;
       
   130     }
       
   131 
       
   132 // --------------------------------------------------------------------------
       
   133 // CPmapUIExtensionPlugin::CreatePbk2SettingsViewExtensionL
       
   134 // --------------------------------------------------------------------------
       
   135 //
       
   136 MPbk2SettingsViewExtension*
       
   137         CPmapUIExtensionPlugin::CreatePbk2SettingsViewExtensionL
       
   138         ( CVPbkContactManager& /*aContactManager*/ )
       
   139     {
       
   140     return NULL;
       
   141     }
       
   142 
       
   143 // --------------------------------------------------------------------------
       
   144 // CPmapUIExtensionPlugin::CreatePbk2AppUiExtensionL
       
   145 // --------------------------------------------------------------------------
       
   146 //
       
   147 MPbk2AppUiExtension* CPmapUIExtensionPlugin::CreatePbk2AppUiExtensionL
       
   148         ( CVPbkContactManager& /*aContactManager*/ )
       
   149     {
       
   150     return NULL;
       
   151     }
       
   152 
       
   153 // --------------------------------------------------------------------------
       
   154 // CPmapUIExtensionPlugin::CreatePbk2CommandForIdL
       
   155 // --------------------------------------------------------------------------
       
   156 //
       
   157 MPbk2Command* CPmapUIExtensionPlugin::CreatePbk2CommandForIdL
       
   158         ( TInt aCommandId, MPbk2ContactUiControl& aUiControl ) const
       
   159     {
       
   160     switch(aCommandId)
       
   161     	{
       
   162     	case EPbk2ExtensionAssignFromMapSelect:
       
   163     	case EPbk2ExtensionAssignFromMap:
       
   164     	case EPbk2ExtensionShowOnMap:
       
   165     		return CPmapCmd::NewL( aUiControl, aCommandId );
       
   166     	default:
       
   167     		break;
       
   168     	}
       
   169     return NULL;
       
   170     }
       
   171     
       
   172 // --------------------------------------------------------------------------
       
   173 // CPmapUIExtensionPlugin::CreatePbk2AiwInterestForIdL
       
   174 // --------------------------------------------------------------------------
       
   175 //
       
   176 MPbk2AiwInterestItem* CPmapUIExtensionPlugin::CreatePbk2AiwInterestForIdL(
       
   177         TInt /*aInterestId*/,
       
   178         CAiwServiceHandler& /*aServiceHandler*/ ) const
       
   179     {
       
   180     return NULL;
       
   181     }
       
   182 
       
   183 // --------------------------------------------------------------------------
       
   184 // CPmapUIExtensionPlugin::GetHelpContextL
       
   185 // --------------------------------------------------------------------------
       
   186 //
       
   187 TBool CPmapUIExtensionPlugin::GetHelpContextL
       
   188         ( TCoeHelpContext& /*aContext*/, const CPbk2AppViewBase& /*aView*/,
       
   189           MPbk2ContactUiControl& /*aUiControl*/ )
       
   190     {
       
   191     return EFalse;
       
   192     }
       
   193 
       
   194 // --------------------------------------------------------------------------
       
   195 // CPmapUIExtensionPlugin::ApplyDynamicViewGraphChangesL
       
   196 // --------------------------------------------------------------------------
       
   197 //
       
   198 void CPmapUIExtensionPlugin::ApplyDynamicViewGraphChangesL
       
   199         ( CPbk2ViewGraph& /*aViewGraph*/ )
       
   200     {
       
   201     // Do nothing
       
   202     }
       
   203 
       
   204 // --------------------------------------------------------------------------
       
   205 // CPmapUIExtensionPlugin::ApplyDynamicPluginInformationDataL
       
   206 // --------------------------------------------------------------------------
       
   207 //
       
   208 void CPmapUIExtensionPlugin::ApplyDynamicPluginInformationDataL
       
   209         ( CPbk2UIExtensionInformation& /*aUiExtensionInformation*/ )
       
   210     {
       
   211     // Do nothing
       
   212     }
       
   213 
       
   214 // End of File