emailcontacts/remotecontactlookup/settingplugin/src/cfscrclsettingview.cpp
branchRCL_3
changeset 12 4ce476e64c59
parent 11 0396474f30f5
child 13 8592a65ad3fb
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
     1 /*
       
     2 * Copyright (c) 2008 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:  Remote Contact Lookup Extension setting view
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "emailtrace.h"
       
    21 #include "cfscrclsettingview.h"
       
    22 #include "cfscrclsettingcontrol.h"
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // CFscRclSettingView::CFscRclSettingView
       
    26 // C++ default constructor can NOT contain any code, that might leave.
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 CFscRclSettingView::CFscRclSettingView()
       
    30     {
       
    31     FUNC_LOG;
       
    32     // No implementation required
       
    33     }
       
    34 
       
    35 // ----------------------------------------------------------------------------
       
    36 // CFscRclSettingView::ConstructL
       
    37 // Actual constructor.
       
    38 // ----------------------------------------------------------------------------
       
    39 //
       
    40 void CFscRclSettingView::ConstructL()
       
    41     {
       
    42     FUNC_LOG;
       
    43     }
       
    44 
       
    45 // -----------------------------------------------------------------------------
       
    46 // CFscRclSettingView::NewLC
       
    47 // CFscRclSettingView two-phased constructor.
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 CFscRclSettingView* CFscRclSettingView::NewLC()
       
    51     {
       
    52     FUNC_LOG;
       
    53     CFscRclSettingView* self = new (ELeave)CFscRclSettingView();
       
    54     CleanupStack::PushL(self);
       
    55     self->ConstructL();
       
    56     return self;
       
    57     }
       
    58 
       
    59 // -----------------------------------------------------------------------------
       
    60 // CFscRclSettingView::NewL
       
    61 // CFscRclSettingView two-phased constructor.
       
    62 // -----------------------------------------------------------------------------
       
    63 //
       
    64 CFscRclSettingView* CFscRclSettingView::NewL()
       
    65     {
       
    66     FUNC_LOG;
       
    67     CFscRclSettingView* self = CFscRclSettingView::NewLC();
       
    68     CleanupStack::Pop(self);
       
    69     return self;
       
    70     }
       
    71 
       
    72 // -----------------------------------------------------------------------------
       
    73 // CFscRclSettingView::~CFscRclSettingView
       
    74 // CFscRclSettingView Destructor
       
    75 // -----------------------------------------------------------------------------
       
    76 //
       
    77 CFscRclSettingView::~CFscRclSettingView()
       
    78     {
       
    79     FUNC_LOG;
       
    80     // iSettingsControl is released by Phonebook extension manager
       
    81     }
       
    82 
       
    83 // -----------------------------------------------------------------------------
       
    84 //                  MPbk2SettingsViewExtension public methods
       
    85 // -----------------------------------------------------------------------------
       
    86 // CFscRclSettingView::CreatePbk2SettingsControlExtensionL
       
    87 // Phonebook2 Settings control extension object.
       
    88 // -----------------------------------------------------------------------------
       
    89 //
       
    90 MPbk2SettingsControlExtension*
       
    91 CFscRclSettingView::CreatePbk2SettingsControlExtensionL()
       
    92     {
       
    93 	FUNC_LOG;
       
    94     return (iSettingsControl = CFscRclSettingControl::NewL());
       
    95     }
       
    96 
       
    97 // -----------------------------------------------------------------------------
       
    98 // CFscRclSettingView::DynInitMenuPaneL()
       
    99 // Dynamic menu content
       
   100 // -----------------------------------------------------------------------------
       
   101 //
       
   102 void CFscRclSettingView::DynInitMenuPaneL(TInt /*aMenuId*/,CEikMenuPane* /*aMenuPane*/)
       
   103     {
       
   104     FUNC_LOG;
       
   105     // No implementation required
       
   106     }
       
   107 
       
   108 // -----------------------------------------------------------------------------
       
   109 // CFscRclSettingView::HandleCommandL
       
   110 // Settings view command handler
       
   111 // -----------------------------------------------------------------------------
       
   112 //
       
   113 TBool CFscRclSettingView::HandleCommandL(TInt /*aCommand*/)
       
   114     {
       
   115     FUNC_LOG;
       
   116     return EFalse;
       
   117     }
       
   118 
       
   119 // -----------------------------------------------------------------------------
       
   120 //                      MPbk2UiReleasable implementation
       
   121 // -----------------------------------------------------------------------------
       
   122 // CFscRclSettingView::DoRelease
       
   123 // Release this
       
   124 // -----------------------------------------------------------------------------
       
   125 //
       
   126 void CFscRclSettingView::DoRelease()
       
   127     {
       
   128     FUNC_LOG;
       
   129     delete this;
       
   130     }
       
   131