inc/NPRStationListBoxView.h
changeset 0 0049171ecffb
equal deleted inserted replaced
-1:000000000000 0:0049171ecffb
       
     1 /*
       
     2  ==========================================================================================
       
     3  Name	: NPRStationListBoxView.h
       
     4  Author	: Symsource
       
     5  
       
     6  Copyright (c) 2009 Symbian Foundation Ltd
       
     7  This component and the accompanying materials are made available
       
     8  under the terms of the License "Eclipse Public License v1.0"
       
     9  which accompanies this distribution, and is available
       
    10  at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    11 
       
    12  Initial Contributors:
       
    13  - Symsource
       
    14  
       
    15  Contributors:
       
    16  - Symsource
       
    17  
       
    18  Description :  AknView for wrapping the container to show the NPR's station list
       
    19  ==========================================================================================
       
    20  */
       
    21 
       
    22 #ifndef __NPR_STATION_LIST_BOX_VIEW_H__
       
    23 #define __NPR_STATION_LIST_BOX_VIEW_H__
       
    24 
       
    25 #include <aknview.h>
       
    26 class CNPRStationListBox;
       
    27 
       
    28 /**
       
    29  * Avkon view class for NPRStationListBoxView. It is register with the view server
       
    30  * by the AppUi. It owns the container control.
       
    31  * @class	CNPRStationListBoxView NPRStationListBoxView.h
       
    32  */						
       
    33 			
       
    34 class CNPRStationListBoxView : public CAknView
       
    35 	{
       
    36 public:
       
    37 	static CNPRStationListBoxView* NewL();
       
    38 	static CNPRStationListBoxView* NewLC();        
       
    39 	virtual ~CNPRStationListBoxView();
       
    40 
       
    41 public:	
       
    42 	// from base class CAknView
       
    43 	TUid Id() const;
       
    44 	void HandleCommandL( TInt aCommand );
       
    45 	CNPRStationListBox* CreateContainerL();
       
    46 	
       
    47 protected:
       
    48 	// from base class CAknView
       
    49 	void DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage);
       
    50 	void DoDeactivate();
       
    51 	void HandleStatusPaneSizeChange();
       
    52 	
       
    53 private:
       
    54 	void SetupStatusPaneL();
       
    55 	void CleanupStatusPane();
       
    56 
       
    57 private:
       
    58 	// constructors
       
    59 	CNPRStationListBoxView();
       
    60 	void ConstructL();
       
    61 
       
    62 private:
       
    63 	CNPRStationListBox* iNPRStationListBox;
       
    64 	};
       
    65 
       
    66 #endif // __NPR_STATION_LIST_BOX_VIEW_H__