memana/analyzetoolclient/configurationappgui/inc/atconfigurationappguilistboxview.h
changeset 0 f0f2b8682603
equal deleted inserted replaced
-1:000000000000 0:f0f2b8682603
       
     1 /*
       
     2 * Copyright (c) 2009 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 *
       
    16 */
       
    17 
       
    18 #ifndef ATCONFIGURATIONAPPGUILISTBOXVIEW_H
       
    19 #define ATCONFIGURATIONAPPGUILISTBOXVIEW_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <aknview.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class CATConfigurationAppGuiListBox;
       
    26 
       
    27 /**
       
    28  * Avkon view class for ATConfigurationAppGuiListBoxView. It is register with the view server
       
    29  * by the AppUi. It owns the container control.
       
    30  * @class CATConfigurationAppGuiListBoxView ATConfigurationAppGuiListBoxView.h
       
    31  */
       
    32 class CATConfigurationAppGuiListBoxView : public CAknView
       
    33     {
       
    34 public:
       
    35     /**
       
    36     * C++ default constructor.
       
    37     */
       
    38     CATConfigurationAppGuiListBoxView();
       
    39     
       
    40     /**
       
    41     * Two-phased constructor that can leave.
       
    42     * @return A new instance of this class
       
    43     */
       
    44     static CATConfigurationAppGuiListBoxView* NewL();
       
    45     
       
    46     /**
       
    47     * Two-phased constructor that can leave and leaves a pointer
       
    48     * on the cleanup stack.
       
    49     * @return A new instance of this class
       
    50     */
       
    51     static CATConfigurationAppGuiListBoxView* NewLC();
       
    52     
       
    53     /**
       
    54     *  Symbian 2nd phase constructor.
       
    55     */
       
    56     void ConstructL();
       
    57     
       
    58     /**
       
    59     * Destructor.
       
    60     */
       
    61     virtual ~CATConfigurationAppGuiListBoxView();
       
    62                         
       
    63     /**
       
    64     * From CAknView.
       
    65     */
       
    66     TUid Id() const;
       
    67     
       
    68     /**
       
    69     * From CAknView.
       
    70     */
       
    71     void HandleCommandL( TInt aCommand );
       
    72     
       
    73     /**
       
    74     * Creates control for this view.
       
    75     * @return CATConfigurationAppGuiListBox* pointer to the control
       
    76     */
       
    77     CATConfigurationAppGuiListBox* CreateContainerL();
       
    78     
       
    79     /**
       
    80     * From CAknView.
       
    81     */
       
    82     void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
    83     
       
    84     /**
       
    85     * Launches view's menu.
       
    86     */
       
    87     //void LaunchMenuL();
       
    88  
       
    89     /**
       
    90     * Updates view.
       
    91     */
       
    92     void UpdateViewL();
       
    93 
       
    94     /**
       
    95     * Ends a process with a certain method.
       
    96     * @param aCommand command id
       
    97     */
       
    98     void EndProcessL( TInt aCommand );
       
    99     
       
   100 protected:
       
   101     
       
   102     /**
       
   103     * From CAknView.
       
   104     */
       
   105     void DoActivateL(
       
   106         const TVwsViewId& aPrevViewId,
       
   107         TUid aCustomMessageId,
       
   108         const TDesC8& aCustomMessage );
       
   109     
       
   110     /**
       
   111     * From CAknView.
       
   112     */
       
   113     void DoDeactivate();
       
   114     
       
   115     /**
       
   116     * Setups status pane according to the screen size.
       
   117     */
       
   118     void HandleStatusPaneSizeChange();
       
   119     
       
   120     /**
       
   121     * Handles About -menu item execution.
       
   122     * @param aCommand command id
       
   123     * @return TBool not used
       
   124     */
       
   125     TBool HandleVersionMenuItemSelectedL( TInt aCommand );
       
   126     
       
   127 private:
       
   128     
       
   129     /**
       
   130     * Setups status pane.
       
   131     */
       
   132     void SetupStatusPaneL();
       
   133     
       
   134     /**
       
   135     * Clears status pane and frees resources from it.
       
   136     */
       
   137     void CleanupStatusPane();
       
   138     
       
   139     // Pointer to the control class
       
   140     CATConfigurationAppGuiListBox* iATConfigurationAppGuiListBox;
       
   141     
       
   142     };
       
   143 
       
   144 #endif // ATCONFIGURATIONAPPGUILISTBOXVIEW_H