logsui/AppSrc/CLogsSubAppListView.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 *     Logs application "Sub application list" view class implementation
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef     __Logs_App_CLogsSubAppListView_H__
       
    21 #define     __Logs_App_CLogsSubAppListView_H__
       
    22 
       
    23 //  INCLUDES
       
    24 
       
    25 #include "CLogsBaseView.h"   // App view super class
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 // MACROS
       
    30 
       
    31 // DATA TYPES
       
    32 
       
    33 // FUNCTION PROTOTYPES
       
    34 
       
    35 // FORWARD DECLARATIONS
       
    36 
       
    37 class CLogsSubAppListControlContainer;
       
    38 
       
    39 // CLASS DECLARATION
       
    40 
       
    41 /**
       
    42  * Logs application "Sub application list" view class implementation.
       
    43  * From this view user can navigate to any sub application.
       
    44  */
       
    45 
       
    46 class   CLogsSubAppListView :   public CLogsBaseView
       
    47     {
       
    48     public:  // interface
       
    49         /**
       
    50          * Standard creation function. Creates and returns a new object of 
       
    51          * this class.
       
    52          * @return The new view object.
       
    53          */
       
    54         static CLogsSubAppListView* NewL();
       
    55 
       
    56         /**
       
    57          * Destructor.
       
    58          */
       
    59         ~CLogsSubAppListView();
       
    60 
       
    61     private:
       
    62 
       
    63         /**
       
    64          * Default constructor
       
    65          */
       
    66         CLogsSubAppListView();
       
    67 
       
    68         /**
       
    69          * Constructor, second phase. 
       
    70          */
       
    71         void ConstructL();
       
    72 
       
    73         /**
       
    74          *  For clearing all the recent lists via query
       
    75          */
       
    76         void CmdClearRecentListsL();
       
    77     
       
    78 
       
    79     private:  // from CAknView
       
    80         /**
       
    81          * Returns the ID of the view.
       
    82          * @return view id
       
    83          */
       
    84         TUid Id() const;
       
    85         /**
       
    86          *  Handles the view rectangle changes.
       
    87          */
       
    88         void HandleClientRectChange();
       
    89         /**
       
    90          * Called by the framework when this view is activated.
       
    91          *
       
    92          * @param aPrevViewId      This is ID for previous view.
       
    93          * @param aCustomMessageId ID of the custom message. Not used.
       
    94          * @param aCustomMessage   custom message. Not used.
       
    95          */
       
    96         void DoActivateL(const TVwsViewId& aPrevViewId,
       
    97                          TUid aCustomMessageId,
       
    98                          const TDesC8& aCustomMessage);
       
    99         /**
       
   100          * Called by the framework when this view is deactivated.
       
   101          */
       
   102         void DoDeactivate();
       
   103 
       
   104     public: // from MEikCommandObserver
       
   105         /**
       
   106          * Handles the view specific commands.
       
   107          *
       
   108          * @param aCommandId This is an id for command.
       
   109          *                   Most of the commands are forwarded to LogAppUI.
       
   110          */
       
   111         void HandleCommandL(TInt aCommand);
       
   112    
       
   113     public: // MLogsObserver
       
   114         void StateChangedL( MLogsStateHolder* aHolder );
       
   115     
       
   116     private:  // data
       
   117 
       
   118         /// Own: This view's control container
       
   119         CLogsSubAppListControlContainer* iContainer;
       
   120 
       
   121         /// Own: highlighted position
       
   122         TInt iSelectedLine;
       
   123     };
       
   124 
       
   125 
       
   126 #endif  // __Logs_App_CLogsSubAppListView_H__
       
   127 
       
   128 
       
   129 // End of File