pkiutilities/SecModUI/inc/SecModUIViewMain.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2005 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:   Declaration of the CSecModUIViewMain class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SECMODUIVIEWMAIN_H
       
    20 #define SECMODUIVIEWMAIN_H
       
    21 
       
    22 // INCLUDES
       
    23 #include "SecModUIViewBase.h"
       
    24 #include <aknview.h>
       
    25 
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 class CSecModUIContainerMain;
       
    32 class CSecModUIModel;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 *  CSecModUIViewMain view class.
       
    38 * 
       
    39 */
       
    40 class CSecModUIViewMain : public CSecModUIViewBase
       
    41     {
       
    42     public: // Constructors and destructor
       
    43 
       
    44         /**
       
    45         * Two-phased constructor.
       
    46         */
       
    47         static CSecModUIViewMain* NewLC(CSecModUIModel& aModel);
       
    48 
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         virtual ~CSecModUIViewMain();
       
    53 
       
    54     public: // Functions from base classes
       
    55     
       
    56         /**
       
    57         * From MEikMenuObserver delegate commands from the menu
       
    58         * @param aCommand a command emitted by the menu 
       
    59         * @return void
       
    60         */
       
    61         virtual void HandleCommandL(TInt aCommand);
       
    62         
       
    63         /**
       
    64         * From CAknView returns Uid of View
       
    65         * @return TUid uid of the view
       
    66         */
       
    67         TUid Id() const;
       
    68     
       
    69         void HandleListBoxEventL(
       
    70             CEikListBox* aListBox, 
       
    71             TListBoxEvent aEventType);
       
    72     
       
    73     private: // Functions from base classes
       
    74     
       
    75         
       
    76         /**
       
    77         * From CAknView activate the view
       
    78         * @param aPrevViewId 
       
    79         * @param aCustomMessageId 
       
    80         * @param aCustomMessage 
       
    81         * @return void
       
    82         */
       
    83         void DoActivateL(
       
    84             const TVwsViewId& aPrevViewId,
       
    85             TUid aCustomMessageId,
       
    86             const TDesC8& aCustomMessage);
       
    87         
       
    88         /**
       
    89         * From CSecModUIViewBase create container
       
    90         * @return void
       
    91         */    
       
    92         void CreateContainerL();
       
    93         
       
    94         /**
       
    95         * From CSecModUIViewBase set title pane
       
    96         * @return void
       
    97         */    
       
    98         void SetTitlePaneL();
       
    99         
       
   100         /**
       
   101         * Constructor
       
   102         */
       
   103         CSecModUIViewMain(CSecModUIModel& aModel);
       
   104 
       
   105         /**
       
   106         * EPOC default constructor.
       
   107         */
       
   108         void ConstructL();
       
   109         
       
   110         /**
       
   111         * From MEikMenuObserver
       
   112 		* Updates Options list with correct items depending on 
       
   113 		* whether the listbox is empty or if it has any marked items
       
   114         */
       
   115 		void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
       
   116 		
       
   117 		void UpdateCbaL();
       
   118 
       
   119         void SetCbaL( TInt aCbaResourceId );
       
   120         
       
   121         void HandleForegroundEventL(TBool aForeground);
       
   122         
       
   123     private: // Data
       
   124         
       
   125     };
       
   126 
       
   127 #endif // SECMODUIVIEWMAIN_H
       
   128 
       
   129 // End of File