logsui/AppSrc/CCtView.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002 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 *     Call Timers view
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef     __Logs_App_CCtView_H__
       
    21 #define     __Logs_App_CCtView_H__
       
    22 
       
    23 
       
    24 //  INCLUDES
       
    25 #include "CLogsBaseView.h" 
       
    26 #include "LogsAlsEnum.hrh"
       
    27 
       
    28 //  FORWARD DECLARATIONS
       
    29 class CCtControlContainer;
       
    30 
       
    31 //  CLASS DECLARATIONS
       
    32 
       
    33 /**
       
    34  *  Call Timers view.
       
    35  */
       
    36 class   CCtView :   public CLogsBaseView
       
    37     {
       
    38     private: 
       
    39         /**
       
    40          *  C++ Constructor
       
    41          */
       
    42         CCtView();
       
    43         /**
       
    44          *  Constructor
       
    45          */
       
    46         void ConstructL();
       
    47 
       
    48 
       
    49     public:  // interface
       
    50         /**
       
    51          *  Creates the new view
       
    52          *
       
    53          *  @return The new view object
       
    54          */
       
    55         static CCtView* NewL();
       
    56 
       
    57         /**
       
    58          *  Destructor
       
    59          */
       
    60         ~CCtView();
       
    61 
       
    62         /**
       
    63          *  Constructs and makes visible the Ok Option list
       
    64          */
       
    65         void OkOptionCtMenuL();
       
    66 
       
    67         /**
       
    68          * Selectec als line
       
    69          * @return als line
       
    70          */
       
    71         const TAlsEnum& AlsLine() const;
       
    72         
       
    73         /**
       
    74          * Set ALS line 
       
    75          */
       
    76         void SetAlsLine( TAlsEnum aTimerAls );
       
    77         
       
    78 
       
    79     public: // from MLogsModelObserver
       
    80         void StateChangedL( MLogsStateHolder* aHolder );
       
    81 
       
    82     public: // from MLogsKeyProcessor 
       
    83 
       
    84 		/**
       
    85          * Overrides the baseclass handler
       
    86          * 
       
    87          * @param aIndex	The index of the item tapped
       
    88          */
       
    89         void ProcessPointerEventL( TInt aIndex);
       
    90     
       
    91     public: // from MEikCommandObserver
       
    92         /**
       
    93          *  Handles view-specific commands.
       
    94          *
       
    95          *  @param  aCommand    Command to be handled
       
    96          */
       
    97         void HandleCommandL( TInt aCommand );
       
    98 
       
    99     public:  // from CAknView
       
   100         /**
       
   101          *  Framework calls to init menu items.
       
   102          *
       
   103          *  @param aResourceId   Resource read.
       
   104          *  @param aMenuPane     Menu pane.
       
   105          */ 
       
   106         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
   107         
       
   108     private:  // from CAknView
       
   109         /**
       
   110          *  Return the view's Id.
       
   111          *
       
   112          *  @return ECtViewId
       
   113          */
       
   114         TUid Id() const;
       
   115 
       
   116         /**
       
   117          *  Called by the framework when the view rectangle changes
       
   118          */
       
   119         void HandleClientRectChange();
       
   120 
       
   121         /**
       
   122          *  Called by the framework when the view is activated.
       
   123          *
       
   124          *  @param aPrevViewId  Previous view's id
       
   125          *  @param aCustonMessageId Custom Message id
       
   126          *  @param aCustomMessage   Custom message
       
   127          */
       
   128         void DoActivateL( const TVwsViewId& aPrevViewId,
       
   129                           TUid aCustomMessageId,
       
   130                           const TDesC8& aCustomMessage );
       
   131         /**
       
   132          *  Called by the framework when the view is deactivated.
       
   133          */
       
   134         void DoDeactivate();
       
   135 
       
   136     private:  // operations
       
   137 
       
   138         /**
       
   139          * Set als filter.
       
   140          * @return ETrue if als was changed, else return EFalse
       
   141          */
       
   142         TBool CmdSetAlsFilterL();
       
   143 
       
   144         /**
       
   145          * Add line to array
       
   146          * @param aItems array
       
   147          * @param resource text
       
   148          */
       
   149         void MakeOneLineL(  CDesCArrayFlat& aItems,
       
   150                             TInt aResourceText );
       
   151 
       
   152 
       
   153     private:  // data
       
   154         /// view's control container
       
   155         CCtControlContainer* iContainer;
       
   156 
       
   157         /// Own: Timers' ALS filter
       
   158         TAlsEnum iTimersAls;
       
   159 
       
   160     };
       
   161 
       
   162 #endif  // __Logs_App_CCtView_H__
       
   163 
       
   164 // End of File