vpnui/vpnmanagementui/inc/vpnmanagementuilogview.h
branchRCL_3
changeset 24 e06095241a65
parent 0 33413c0669b9
equal deleted inserted replaced
23:473321461bba 24:e06095241a65
       
     1 /*
       
     2 * Copyright (c) 2003 - 2006 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 CVpnManagementUiLogView class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __VPNMANAGEMENTUILOGVIEW_H__
       
    20 #define __VPNMANAGEMENTUILOGVIEW_H__
       
    21 
       
    22 // INCLUDES
       
    23 #include <aknview.h>
       
    24 #include "vpnmanagementuiviewid.h"
       
    25 
       
    26 class CVpnManagementUiLogContainer;
       
    27 class CVpnUiLoader;
       
    28 /**
       
    29 *  CVpnManagementUiLogView view class.
       
    30 * 
       
    31 *  @lib vpnmanagementui.dll
       
    32 */
       
    33 class CVpnManagementUiLogView : public CAknView
       
    34     {
       
    35     public: 
       
    36 
       
    37         /**
       
    38         * Destructor.
       
    39         */
       
    40         ~CVpnManagementUiLogView();
       
    41 
       
    42         /**
       
    43         * NewL
       
    44         */
       
    45         static class CVpnManagementUiLogView* NewL(const TRect& aRect, CVpnUiLoader& aLoader);
       
    46 
       
    47         /**
       
    48         * NewLC
       
    49         */
       
    50         static class CVpnManagementUiLogView* NewLC(const TRect& aRect, CVpnUiLoader& aLoader);
       
    51 
       
    52         /**
       
    53         * Returns Log view id
       
    54         */
       
    55         TUid Id() const;
       
    56 
       
    57         /**
       
    58         * Handles ClientRectChange
       
    59         */
       
    60         void HandleClientRectChange();
       
    61 
       
    62         /**
       
    63         * Returns iLogContainer 
       
    64         */
       
    65         CCoeControl* Container();
       
    66 
       
    67         /**
       
    68         * Handles Softkey and Options list commands
       
    69         */
       
    70         void HandleCommandL(TInt aCommand);
       
    71 
       
    72         /**
       
    73         * Sets appropriate MSK for view
       
    74         */
       
    75 		void SetMiddleSoftKeyL(TBool aDrawNow);
       
    76 
       
    77         
       
    78     public: // data
       
    79 
       
    80         /**
       
    81         * To get hold of VpnUiLoader
       
    82         */
       
    83         CVpnUiLoader& iLoader;
       
    84 
       
    85         /**
       
    86         * To get access to log list in log view
       
    87         */
       
    88         CVpnManagementUiLogContainer*	iLogContainer;
       
    89 
       
    90         /**
       
    91         * To store the position of the focus in the Log view
       
    92         */
       
    93         TInt iCurrentPosition;
       
    94 
       
    95     private: // functions
       
    96 
       
    97         /**
       
    98         * Constructor.
       
    99         */
       
   100         CVpnManagementUiLogView(CVpnUiLoader& aLoader);
       
   101 
       
   102         /**
       
   103         * Symbian OS default constructor.
       
   104         */
       
   105         void ConstructL();
       
   106 
       
   107         /**
       
   108         * From AknView, 
       
   109         * Updates the view when opening it
       
   110         */
       
   111         void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
       
   112             const TDesC8& aCustomMessage);
       
   113 
       
   114         /**
       
   115         * From AknView,
       
   116         * Saves focus position when closing view
       
   117         */
       
   118         void DoDeactivate();
       
   119 
       
   120         /**
       
   121         * Updates Options list with correct items depending on 
       
   122         * whether the listbox is empty or if it has any marked items
       
   123         */
       
   124         void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
       
   125         
       
   126         /**
       
   127         * Sets MSK  
       
   128         */
       
   129 		void SetMiddleSoftKeyLabelL(TInt aResourceId, TInt aCommandId);
       
   130         
       
   131     private: // Data
       
   132 
       
   133         /**
       
   134         * Stores top item in the listbox
       
   135         */
       
   136         TInt iTopItem;
       
   137     };
       
   138 
       
   139 
       
   140 #endif // __VPNMANAGEMENTUILOGVIEW_H__