pkiutilities/CertmanUi/INC/CertmanuiviewPersonal.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2003-2007 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 CCertManUIViewPersonal class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef  CERTMANUIVIEWPERSONAL_H
       
    20 #define  CERTMANUIVIEWPERSONAL_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <aknview.h>
       
    24 #include "Certmanuiviewid.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 class CCertManUIContainerPersonal;
       
    28 
       
    29 /**
       
    30 *  CCertManUIViewPersonal view class.
       
    31 *
       
    32 *  @lib certmanui.dll
       
    33 */
       
    34 NONSHARABLE_CLASS( CCertManUIViewPersonal ): public CAknView
       
    35     {
       
    36     public: // functions
       
    37 
       
    38         /**
       
    39         * Destructor
       
    40         */
       
    41         ~CCertManUIViewPersonal();
       
    42 
       
    43         /**
       
    44         * NewL
       
    45         */
       
    46         static class CCertManUIViewPersonal* NewL( const TRect& aRect, CCertManUIKeeper& aKeeper );
       
    47 
       
    48         /**
       
    49         * NewLC
       
    50         */
       
    51         static class CCertManUIViewPersonal* NewLC( const TRect& aRect, CCertManUIKeeper& aKeeper );
       
    52 
       
    53         /**
       
    54         * Returns Personal view id
       
    55         */
       
    56         TUid Id() const;
       
    57 
       
    58         /**
       
    59         * Handles ClientRectChange
       
    60         */
       
    61         void HandleClientRectChange();
       
    62 
       
    63         /**
       
    64         * Returns iContainerPersonal to be used in CertManUIContainerPersonal
       
    65         */
       
    66         CCoeControl* Container();
       
    67 
       
    68         /**
       
    69         * Handles Softkey and Options list commands
       
    70         */
       
    71         void HandleCommandL( TInt aCommand );
       
    72 
       
    73         /**
       
    74         * Updates the view when opening it
       
    75         */
       
    76         void DoActivateL( const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
       
    77               const TDesC8& aCustomMessage );
       
    78 
       
    79         /**
       
    80         * Updates the menu bar
       
    81         */
       
    82         void UpdateMenuBar();
       
    83 
       
    84         /**
       
    85         * Updates cba
       
    86         */
       
    87         void UpdateCba(TInt aCbaResourceId);
       
    88 
       
    89   public: // data
       
    90 
       
    91         /**
       
    92         * To get hold of CertManUIKeeper
       
    93         */
       
    94         CCertManUIKeeper&   iKeeper;
       
    95 
       
    96        /**
       
    97         * Stores top item in the listbox
       
    98         */
       
    99         TInt    iTopItem;
       
   100 
       
   101        /**
       
   102         * To store the position of the focus in the Personal view
       
   103         */
       
   104         TInt    iCurrentPosition;
       
   105 
       
   106     private: // functions
       
   107 
       
   108         /**
       
   109         * Constructor.
       
   110         */
       
   111         CCertManUIViewPersonal( CCertManUIKeeper& aKeeper );
       
   112 
       
   113         /**
       
   114         * EPOC default constructor.
       
   115         */
       
   116         void ConstructL();
       
   117 
       
   118         /**
       
   119         * Saves focus position when closing view
       
   120         */
       
   121         void DoDeactivate();
       
   122 
       
   123         /**
       
   124         * Updates Options list with correct items depending on
       
   125         * whether the listbox is empty or if it has any marked items
       
   126         */
       
   127         void DynInitMenuPaneL( TInt aResourceId,CEikMenuPane* aMenuPane );
       
   128 
       
   129 
       
   130     private: // Data
       
   131 
       
   132        /**
       
   133         * To get access to certificate list in Personal view
       
   134         */
       
   135         CCertManUIContainerPersonal*  iContainerPersonal;
       
   136 
       
   137     };
       
   138 
       
   139 #endif // CERTMANUIVIEWPERSONAL_H
       
   140 
       
   141 // End of File