gssettingsuis/Gs/GSFramework/src/GSPlaceholderView.cpp
branchRCL_3
changeset 24 8ee96d21d9bf
parent 23 8bda91a87a00
child 25 7e0eff37aedb
equal deleted inserted replaced
23:8bda91a87a00 24:8ee96d21d9bf
     1 /*
       
     2 * Copyright (c) 2006 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: 
       
    15 *        GS plugin wrapper.
       
    16 *
       
    17 */
       
    18 
       
    19 #include "GSPlaceholderView.h"
       
    20 
       
    21 // System includes
       
    22 #include <coeaui.h>
       
    23 
       
    24 // User includes
       
    25 #include <gsfwviewuids.h>
       
    26 
       
    27 // Constants
       
    28 const TUid KGSInternalPlaceholderViewUid = { 0x0DEADBED };
       
    29 
       
    30 
       
    31 // ================= MEMBER FUNCTIONS =======================
       
    32 
       
    33 // ----------------------------------------------------------------------------
       
    34 // CGSPlaceholderView::CGSPlaceholderView
       
    35 //
       
    36 // 
       
    37 // ----------------------------------------------------------------------------
       
    38 //
       
    39 CGSPlaceholderView::CGSPlaceholderView( CCoeAppUi& aAppUi )
       
    40 :   iAppUi( aAppUi )
       
    41     {
       
    42     }
       
    43 
       
    44 
       
    45 // ----------------------------------------------------------------------------
       
    46 // CGSPlaceholderView::~CGSPlaceholderView
       
    47 //
       
    48 // 
       
    49 // ----------------------------------------------------------------------------
       
    50 //
       
    51 CGSPlaceholderView::~CGSPlaceholderView()
       
    52     {
       
    53     iAppUi.DeregisterView( *this );
       
    54     }
       
    55 
       
    56 
       
    57 // ----------------------------------------------------------------------------
       
    58 // CGSPlaceholderView::ConstructL
       
    59 //
       
    60 // 
       
    61 // ----------------------------------------------------------------------------
       
    62 //
       
    63 void CGSPlaceholderView::ConstructL()
       
    64     {
       
    65     iAppUi.RegisterViewL( *this );
       
    66     }
       
    67 
       
    68 
       
    69 // ----------------------------------------------------------------------------
       
    70 // CGSPlaceholderView::NewL
       
    71 //
       
    72 // 
       
    73 // ----------------------------------------------------------------------------
       
    74 //
       
    75 CGSPlaceholderView* CGSPlaceholderView::NewL( CCoeAppUi& aAppUi )
       
    76     {
       
    77     CGSPlaceholderView* self = new(ELeave) CGSPlaceholderView( aAppUi );
       
    78     CleanupStack::PushL( self );
       
    79     self->ConstructL();
       
    80     CleanupStack::Pop( self );
       
    81     return self;
       
    82     }
       
    83 
       
    84 
       
    85 // ----------------------------------------------------------------------------
       
    86 // CGSPlaceholderView::ActivateL
       
    87 //
       
    88 // 
       
    89 // ----------------------------------------------------------------------------
       
    90 //
       
    91 void CGSPlaceholderView::ActivateL()
       
    92     {
       
    93     iAppUi.ActivateViewL( ViewId() );
       
    94     }
       
    95 
       
    96 
       
    97 // ----------------------------------------------------------------------------
       
    98 // CGSPlaceholderView::PreviouslyActiveViewId
       
    99 //
       
   100 // 
       
   101 // ----------------------------------------------------------------------------
       
   102 //
       
   103 const TVwsViewId& CGSPlaceholderView::PreviouslyActiveViewId() const
       
   104     {
       
   105     return iPreviouslyActiveViewId;
       
   106     }
       
   107 
       
   108 
       
   109 // ---------------------------------------------------------------------------
       
   110 // CGSPlaceholderView::SetPreviouslyActiveViewId
       
   111 // 
       
   112 //
       
   113 // ---------------------------------------------------------------------------
       
   114 //
       
   115 void CGSPlaceholderView::SetPreviouslyActiveViewId( const TVwsViewId& aViewId )
       
   116     {
       
   117     iPreviouslyActiveViewId = aViewId;
       
   118     }
       
   119 
       
   120 
       
   121 // ----------------------------------------------------------------------------
       
   122 // CGSPlaceholderView::ViewId
       
   123 //
       
   124 // 
       
   125 // ----------------------------------------------------------------------------
       
   126 //
       
   127 TVwsViewId CGSPlaceholderView::ViewId() const
       
   128     {
       
   129     const TVwsViewId ret( KUidGS, KGSInternalPlaceholderViewUid );
       
   130     return ret;
       
   131     }
       
   132 
       
   133 
       
   134 // ----------------------------------------------------------------------------
       
   135 // CGSPlaceholderView::ViewActivatedL
       
   136 //
       
   137 // 
       
   138 // ----------------------------------------------------------------------------
       
   139 //
       
   140 void CGSPlaceholderView::ViewActivatedL( const TVwsViewId& /*aPrevViewId*/, TUid /*aCustomMessageId*/, const TDesC8& /*aCustomMessage*/ )
       
   141     {
       
   142     // NB: aPrevViewId will be the id of the plugin we are trying to load...
       
   143     }
       
   144 
       
   145 
       
   146 // ----------------------------------------------------------------------------
       
   147 // CGSPlaceholderView::ViewDeactivated
       
   148 //
       
   149 // 
       
   150 // ----------------------------------------------------------------------------
       
   151 //
       
   152 void CGSPlaceholderView::ViewDeactivated()
       
   153     {
       
   154     }
       
   155 
       
   156 //  End of File