commonuisupport/uikon/test/tviews/tvw/tvwappui.H
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent - Internal Symbian test code 
       
    19 */
       
    20 
       
    21 #ifndef __TVWAPPUI_H__
       
    22 #define __TVWAPPUI_H__
       
    23 
       
    24 #include <eikappui.h>
       
    25 
       
    26 #include "tvwview.H"
       
    27 
       
    28 
       
    29 //
       
    30 // CTestVwAppUi.
       
    31 //
       
    32 
       
    33 class CTestVwAppUi : public CEikAppUi
       
    34 	{
       
    35 public:
       
    36 	 CTestVwAppUi();
       
    37 	 ~CTestVwAppUi();
       
    38 	 void ConstructL();
       
    39 public:
       
    40 	 void ActivateViewL(const TVwsViewId& aViewId,TUid aCustomMessageId,const TDesC16& aCustomMessage);
       
    41 	 void AddViewL(CTestVwAppView* aView);
       
    42 	 void DeleteView(const TVwsViewId& aViewId);
       
    43 	 CTestVwAppView* View(const TVwsViewId& aViewId) const;
       
    44 	 CTestVwAppView* ActiveView() const;
       
    45 private: // From CEikAppUi.
       
    46 	 void HandleModelChangeL();
       
    47 private:
       
    48 	TInt AppViewIndex(const TVwsViewId& aViewId) const;
       
    49 	TInt AppViewIndex(CTestVwAppView* aView) const;
       
    50 private:
       
    51 	CArrayPtrFlat<CTestVwAppView> iAppViewArray;
       
    52 	};
       
    53 
       
    54 #endif