dbgagents/trkagent/app/s60/TrkSettingsView.h
changeset 0 c6b0df440bee
equal deleted inserted replaced
-1:000000000000 0:c6b0df440bee
       
     1 /*
       
     2 * Copyright (c) 2009 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 *
       
    16 */
       
    17 
       
    18 #ifndef TRKSETTINGSVIEW_H
       
    19 #define TRKSETTINGSVIEW_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <aknview.h>
       
    23    
       
    24 
       
    25 // CONSTANTS
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CTrkSettingsContainer;
       
    29 class CTrkSettingsData;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 class CTrkSettingsView : public CAknView
       
    34 {
       
    35     public: // Constructors and destructor
       
    36         /**
       
    37         * Symbian two-phased constructor.
       
    38         */
       
    39         static CTrkSettingsView* NewL(CTrkSettingsData* aSettingsData);
       
    40 
       
    41         /**
       
    42         * Destructor.
       
    43         */
       
    44         virtual ~CTrkSettingsView();
       
    45 
       
    46         /** 
       
    47         * Handle screen size change.
       
    48         * @since 2.8
       
    49         */
       
    50         void HandleSizeChange();
       
    51 
       
    52     private: // Functions from base classes
       
    53         
       
    54         /**
       
    55         * From CAknView returns Uid of View
       
    56         * @return TUid uid of the view
       
    57         */
       
    58         TUid Id() const;
       
    59 
       
    60         /**
       
    61         * From CAknView, handle commands
       
    62         * @param aCommand command to be handled
       
    63         */
       
    64         void HandleCommandL( TInt aCommand );
       
    65 
       
    66         /**
       
    67         * From CAknView Activate this view
       
    68         * @param aPrevViewId 
       
    69         * @param aCustomMessageId 
       
    70         * @param aCustomMessage 
       
    71         */
       
    72         void DoActivateL( const TVwsViewId& aPrevViewId,
       
    73                           TUid aCustomMessageId,
       
    74                           const TDesC8& aCustomMessage );
       
    75 
       
    76         /**
       
    77         * From CAknView Deactivate this view
       
    78         */
       
    79         void DoDeactivate();
       
    80 
       
    81    
       
    82         /**
       
    83         * From MEikMenuObserver Dynamically customize menu items
       
    84         * @param aResourceId Menu pane resource ID
       
    85         * @param aMenuPane Menu pane pointer
       
    86         */
       
    87         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
    88         
       
    89         void HandleStatusPaneSizeChange();
       
    90 
       
    91     private:
       
    92         /**
       
    93         * C++ constructor.
       
    94         */
       
    95         CTrkSettingsView(CTrkSettingsData* aSettingsData);
       
    96 
       
    97         /**
       
    98         * Symbian 2nd phase constructor.
       
    99         */
       
   100         void ConstructL();
       
   101 
       
   102     private: // Data
       
   103         CTrkSettingsContainer* iContainer;
       
   104         CTrkSettingsData* iSettingsData;
       
   105         TBool iViewActivated;
       
   106 };
       
   107 
       
   108 #endif //TRKSETTINGSVIEW_H
       
   109 
       
   110 // End of File