pkiutilities/SecModUI/inc/SecModUIViewAccess.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 CSecModUIViewAccess class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SECMODUIVIEWACCESS_H
       
    20 #define SECMODUIVIEWACCESS_H
       
    21 
       
    22 // INCLUDES
       
    23 #include "SecModUIViewBase.h"
       
    24 
       
    25 enum
       
    26     {
       
    27     EIndexCodeLabel = 0,
       
    28     EIndexCodeRequest,
       
    29     EIndexCodeStatus 
       
    30     };
       
    31                 
       
    32 // FORWARD DECLARATIONS
       
    33 class CSecModUIContainerAccess;
       
    34 class CSecModUIModel;
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 /**
       
    39 *  CSecModUIViewAccess view class.
       
    40 * 
       
    41 */
       
    42 class CSecModUIViewAccess : public CSecModUIViewBase
       
    43     {
       
    44     public: // Constructors and destructor
       
    45 
       
    46         /**
       
    47         * Two-phased constructor.
       
    48         */
       
    49         static CSecModUIViewAccess* NewLC(CSecModUIModel& aModel);
       
    50 
       
    51         /**
       
    52         * Destructor.
       
    53         */
       
    54         virtual ~CSecModUIViewAccess();
       
    55 
       
    56      public: // Functions from base classes
       
    57      
       
    58         /**
       
    59         * From MEikMenuObserver delegate commands from the menu
       
    60         * @param aCommand a command emitted by the menu 
       
    61         * @return void
       
    62         */
       
    63         virtual void HandleCommandL(TInt aCommand);
       
    64         
       
    65         /**
       
    66         * From CAknView returns Uid of View
       
    67         * @return TUid uid of the view
       
    68         */
       
    69         TUid Id() const;
       
    70         
       
    71         void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType);
       
    72         
       
    73         void UpdateCbaL();
       
    74         
       
    75         void SetCbaL( TInt aCbaResourceId );
       
    76         
       
    77         virtual void HandleForegroundEventL(TBool aForeground);
       
    78         
       
    79    protected: // Functions from base classes
       
    80    
       
    81         /**
       
    82         * From CAknView activate the view
       
    83         * @param aPrevViewId 
       
    84         * @param aCustomMessageId 
       
    85         * @param aCustomMessage 
       
    86         * @return void
       
    87         */
       
    88         virtual void DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId,
       
    89             const TDesC8& aCustomMessage);
       
    90             
       
    91         /**
       
    92         * From CAknView deactivate the view (free resources)
       
    93         * @return void
       
    94         */
       
    95         virtual void DoDeactivate();  
       
    96            
       
    97     private: // Functions from base classes
       
    98     
       
    99         
       
   100         void CreateContainerL();
       
   101         
       
   102         void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
       
   103         
       
   104         void AddNaviPaneLabelL();
       
   105         
       
   106     private: // New functions
       
   107     
       
   108         void HandleChangeL();
       
   109         
       
   110         void UpdateListBoxItemL(TInt aIndex);
       
   111         
       
   112         void HandleEnterKeyL(TInt aIndex);
       
   113         
       
   114         /**
       
   115         * Constructor
       
   116         */
       
   117         CSecModUIViewAccess(CSecModUIModel& aModel);
       
   118 
       
   119         /**
       
   120         * EPOC default constructor.
       
   121         */
       
   122         void ConstructL();
       
   123 
       
   124     private: // Data   
       
   125        
       
   126     };
       
   127 
       
   128 #endif // SECMODUIVIEWACCESS_H
       
   129 
       
   130 // End of File