inc/NPRListBoxView.h
changeset 0 0049171ecffb
equal deleted inserted replaced
-1:000000000000 0:0049171ecffb
       
     1 /*
       
     2  ============================================================================
       
     3  Name	: NPRListBoxView.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 main options
       
    19  ============================================================================
       
    20  */
       
    21 
       
    22 #ifndef __NPR_LIST_BOX_VIEW_H__
       
    23 #define __NPR_LIST_BOX_VIEW_H__
       
    24 
       
    25 #include <aknview.h>
       
    26 
       
    27 class CNPRListBox;
       
    28 class CNPRAppEngine;
       
    29 
       
    30 /**
       
    31  * Avkon view class for NPRListBoxView. It is register with the view server
       
    32  * by the AppUi. It owns the container control.
       
    33  * @class	CNPRListBoxView NPRListBoxView.h
       
    34  */						
       
    35 			
       
    36 class CNPRListBoxView : public CAknView
       
    37 	{
       
    38 
       
    39 public:
       
    40 	static CNPRListBoxView* NewL();
       
    41 	static CNPRListBoxView* NewLC();      
       
    42 	virtual ~CNPRListBoxView();
       
    43 
       
    44 public:						
       
    45 	// from base class CAknView
       
    46 	TUid Id() const;
       
    47 	void HandleCommandL( TInt aCommand );
       
    48 	
       
    49 	CNPRListBox* CreateContainerL();
       
    50 protected:
       
    51 	// from base class CAknView
       
    52 	void DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage);
       
    53 	void DoDeactivate();
       
    54 	void HandleStatusPaneSizeChange();
       
    55 	
       
    56 private:
       
    57 	CNPRListBoxView();
       
    58 	void ConstructL();
       
    59 
       
    60 private:
       
    61 	void SetupStatusPaneL();
       
    62 	void CleanupStatusPane();
       
    63 private:
       
    64 	CNPRListBox*	iNPRListBox;
       
    65 	};
       
    66 
       
    67 #endif // __NPR_LIST_BOX_VIEW_H__