perfmon/ui/hb/app/inc/settingsview.h
branchRCL_3
changeset 21 b3cee849fa46
equal deleted inserted replaced
20:48060abbbeaf 21:b3cee849fa46
       
     1 /*
       
     2 * Copyright (c) 2010 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 SETTINGSVIEW_H
       
    19 #define SETTINGSVIEW_H
       
    20 
       
    21 #include <hbview.h>
       
    22 
       
    23 class HbDataForm;
       
    24 class HbDataFormModel;
       
    25 class HbDataFormModelItem;
       
    26 
       
    27 class EngineWrapper;
       
    28 class PerfMonSettings;
       
    29 class PerfMonSources;
       
    30 
       
    31 class SettingsView : public HbView
       
    32 {
       
    33     Q_OBJECT
       
    34 
       
    35 signals:
       
    36     void finished(bool ok);
       
    37 
       
    38 public:
       
    39     SettingsView(EngineWrapper &engine);
       
    40 
       
    41 private slots:
       
    42     void dataItemDisplayed(const QModelIndex &index);
       
    43     void logModeChanged(int index);
       
    44     void accept();
       
    45     void reject();
       
    46 
       
    47 private:
       
    48     void createModel(HbDataFormModel &model);
       
    49     void load(const PerfMonSettings& settings);
       
    50     void save(PerfMonSettings& settings);
       
    51     void createLogFilePathItem();
       
    52     void removeLogFilePathItem();
       
    53     
       
    54 private:
       
    55     EngineWrapper &mEngine;
       
    56     HbDataForm *mSettingsForm;
       
    57     HbDataFormModel *mModel;
       
    58 
       
    59     HbDataFormModelItem* mHeartBeatItem;
       
    60     HbDataFormModelItem* mMaxSamplesItem;
       
    61     HbDataFormModelItem* mPriorityItem;
       
    62     HbDataFormModelItem* mCpuSamplingItem;
       
    63     HbDataFormModelItem* mKeepBacklightItem;
       
    64     HbDataFormModelItem* mPopupVisibilityItem;
       
    65     HbDataFormModelItem* mPopupLocationItem;
       
    66     HbDataFormModelItem* mPopupSourcesItem;
       
    67     HbDataFormModelItem* mVerticalBarPeriodItem;
       
    68     HbDataFormModelItem* mGraphSourcesItem;
       
    69 
       
    70     HbDataFormModelItem* mLogPage;
       
    71     HbDataFormModelItem* mLogModeItem;
       
    72     HbDataFormModelItem* mLogFilePathItem;
       
    73     HbDataFormModelItem* mLogSourcesItem;
       
    74     
       
    75     QString mLogFilePath;
       
    76 };
       
    77 
       
    78 #endif // SETTINGSVIEW_H