piprofilerui/ui/avkon/inc/profiler_gui_settingsviewdlg.h
branchRCL_3
changeset 12 aefcba28a3e0
equal deleted inserted replaced
11:454d022d514b 12:aefcba28a3e0
       
     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 
       
    19 
       
    20 #ifndef PROFILER_GUI_SETTINGSVIEWDLG_H
       
    21 #define PROFILER_GUI_SETTINGSVIEWDLG_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <AknDialog.h>
       
    25 #include <eiklbo.h>
       
    26 #include <AknTabObserver.h> 
       
    27 #include <akntabgrp.h>
       
    28 #include <aknsettingitemlist.h> 
       
    29 #include <akncheckboxsettingpage.h> 
       
    30 
       
    31 #include "profiler_gui_model.h"
       
    32 
       
    33 
       
    34 //  FORWARD DECLARATIONS
       
    35 class CAknSettingItemArray;
       
    36 class CAknSettingStyleListBox;
       
    37 class CAknNavigationControlContainer;
       
    38 class CAknNavigationDecorator;
       
    39 class CAknTabGroup; 
       
    40 class TProfilerGuiSettings;
       
    41 
       
    42 
       
    43 //  CLASS DEFINITIONS
       
    44 
       
    45 class CProfilerGuiSettingsViewDlg : public CAknDialog, public MEikListBoxObserver, public MAknTabObserver
       
    46     {
       
    47 public:
       
    48     static CProfilerGuiSettingsViewDlg* NewL(TGeneralAttributes& aSettings);
       
    49     virtual ~CProfilerGuiSettingsViewDlg();
       
    50 
       
    51 public: // From MEikListBoxObserver
       
    52     void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType);
       
    53 
       
    54 public: // From MAknTabObserver
       
    55     void TabChangedL(TInt aIndex); 
       
    56 
       
    57 public: // From CAknDialog
       
    58     void ProcessCommandL(TInt aCommandId);
       
    59 
       
    60 protected: // From CEikDialog
       
    61     TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType);
       
    62     void PreLayoutDynInitL();
       
    63     TBool OkToExitL(TInt aButtonId);    
       
    64 
       
    65 private: // New methods
       
    66     void ShowSettingPageL(TBool aCalledFromMenu);
       
    67     void SetVisibilitiesOfSettingItemsL();
       
    68     void UpdateListBoxL();
       
    69     void AddSettingItemL(TInt aId, TInt aTitleResource, TInt aSettingPageResource, TInt aAssociatedResource, TInt aOrdinal);
       
    70 
       
    71 private: // Constructors
       
    72     CProfilerGuiSettingsViewDlg(TGeneralAttributes& aSettings);
       
    73     void ConstructL();        
       
    74 
       
    75 private: // Data
       
    76     CAknSettingItemArray*               iSettingItemArray;
       
    77     CAknSettingStyleListBox*            iListBox;
       
    78     CAknNavigationControlContainer*     iNaviContainer;
       
    79     TGeneralAttributes&                 iSettings;
       
    80     
       
    81     // temporary member variables
       
    82     TInt                                iTraceOutput;
       
    83     TBuf<64>                            iSaveDrive;
       
    84     TBuf<64>                            iFilePrefix;
       
    85     };
       
    86 
       
    87 
       
    88 #endif
       
    89 
       
    90 // End of File
       
    91