perfmon/ui/hb/app/inc/settingsview.h
branchRCL_3
changeset 19 b3cee849fa46
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/perfmon/ui/hb/app/inc/settingsview.h	Tue Aug 31 15:15:20 2010 +0300
@@ -0,0 +1,78 @@
+/*
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: 
+*
+*/
+
+#ifndef SETTINGSVIEW_H
+#define SETTINGSVIEW_H
+
+#include <hbview.h>
+
+class HbDataForm;
+class HbDataFormModel;
+class HbDataFormModelItem;
+
+class EngineWrapper;
+class PerfMonSettings;
+class PerfMonSources;
+
+class SettingsView : public HbView
+{
+    Q_OBJECT
+
+signals:
+    void finished(bool ok);
+
+public:
+    SettingsView(EngineWrapper &engine);
+
+private slots:
+    void dataItemDisplayed(const QModelIndex &index);
+    void logModeChanged(int index);
+    void accept();
+    void reject();
+
+private:
+    void createModel(HbDataFormModel &model);
+    void load(const PerfMonSettings& settings);
+    void save(PerfMonSettings& settings);
+    void createLogFilePathItem();
+    void removeLogFilePathItem();
+    
+private:
+    EngineWrapper &mEngine;
+    HbDataForm *mSettingsForm;
+    HbDataFormModel *mModel;
+
+    HbDataFormModelItem* mHeartBeatItem;
+    HbDataFormModelItem* mMaxSamplesItem;
+    HbDataFormModelItem* mPriorityItem;
+    HbDataFormModelItem* mCpuSamplingItem;
+    HbDataFormModelItem* mKeepBacklightItem;
+    HbDataFormModelItem* mPopupVisibilityItem;
+    HbDataFormModelItem* mPopupLocationItem;
+    HbDataFormModelItem* mPopupSourcesItem;
+    HbDataFormModelItem* mVerticalBarPeriodItem;
+    HbDataFormModelItem* mGraphSourcesItem;
+
+    HbDataFormModelItem* mLogPage;
+    HbDataFormModelItem* mLogModeItem;
+    HbDataFormModelItem* mLogFilePathItem;
+    HbDataFormModelItem* mLogSourcesItem;
+    
+    QString mLogFilePath;
+};
+
+#endif // SETTINGSVIEW_H