classicui_pub/labels_api/tsrc/src/testsdklabelsview.cpp
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2002 - 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:  Test labels_api
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19  * Include files
       
    20  */
       
    21 #include <aknviewappui.h>
       
    22 
       
    23 #include "testsdklabelsview.h"
       
    24 #include "testsdklabelscontainer.h"
       
    25 
       
    26 
       
    27 // ======== MEMBER FUNCTIONS ========
       
    28 
       
    29 // ---------------------------------------------------------------------------
       
    30 // Symbian 2nd static Constructor
       
    31 // ---------------------------------------------------------------------------
       
    32 //
       
    33 CTestSDKLabelsView* CTestSDKLabelsView::NewL()
       
    34     {
       
    35     CTestSDKLabelsView* self = new( ELeave ) CTestSDKLabelsView();
       
    36     CleanupStack::PushL( self );
       
    37     self->ConstructL();
       
    38     CleanupStack::Pop( self );
       
    39     return self;
       
    40     }
       
    41 
       
    42 // ---------------------------------------------------------------------------
       
    43 // C++ default Constructor
       
    44 // ---------------------------------------------------------------------------
       
    45 //
       
    46 CTestSDKLabelsView::CTestSDKLabelsView()
       
    47     {
       
    48     }
       
    49 
       
    50 // ---------------------------------------------------------------------------
       
    51 // Symbian 2nd Constructor
       
    52 // ---------------------------------------------------------------------------
       
    53 //
       
    54 void CTestSDKLabelsView::ConstructL()
       
    55     { 
       
    56 
       
    57     iContainer = new( ELeave ) CTestSDKLabelsContainer();
       
    58     iContainer->SetMopParent( this );
       
    59     iContainer->ConstructL( ClientRect() );
       
    60     AppUi()->AddToStackL( *this, iContainer );
       
    61     iContainer->MakeVisible( ETrue );
       
    62     }
       
    63 
       
    64 // ---------------------------------------------------------------------------
       
    65 // Destructor
       
    66 // ---------------------------------------------------------------------------
       
    67 //
       
    68 CTestSDKLabelsView::~CTestSDKLabelsView()
       
    69     {
       
    70     if ( iContainer )
       
    71         {
       
    72         AppUi()->RemoveFromStack( iContainer );
       
    73         }
       
    74     delete iContainer;
       
    75     }
       
    76 
       
    77 // ---------------------------------------------------------------------------
       
    78 // Ctestsdkgridsview::Id
       
    79 // ---------------------------------------------------------------------------
       
    80 //
       
    81 TUid CTestSDKLabelsView::Id() const
       
    82     {
       
    83     return KBCTestGridsViewId;
       
    84     }
       
    85 
       
    86 // ---------------------------------------------------------------------------
       
    87 // Ctestsdkgridsview::DoActivateL
       
    88 // ---------------------------------------------------------------------------
       
    89 //
       
    90 void CTestSDKLabelsView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& )
       
    91     {
       
    92     }
       
    93 
       
    94 // ---------------------------------------------------------------------------
       
    95 // Ctestsdkgridsview::DoDeactivate
       
    96 // ---------------------------------------------------------------------------
       
    97 //
       
    98 void CTestSDKLabelsView::DoDeactivate()
       
    99     {
       
   100     }
       
   101 
       
   102 // ---------------------------------------------------------------------------
       
   103 // Ctestsdkgridsview::HandleCommandL
       
   104 // ---------------------------------------------------------------------------
       
   105 //
       
   106 void CTestSDKLabelsView::HandleCommandL( TInt aCommand )
       
   107     {
       
   108     switch ( aCommand )
       
   109         {
       
   110         default:
       
   111             break;
       
   112         }
       
   113     }
       
   114 
       
   115 /*
       
   116  * End file
       
   117  */