calendarui/settings/inc/calensettings.h
changeset 18 c198609911f9
child 23 fd30d51f876b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/calendarui/settings/inc/calensettings.h	Fri Apr 16 14:57:40 2010 +0300
@@ -0,0 +1,72 @@
+/*
+ * Copyright (c) 2009 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 CALENSETTINGS_H
+#define CALENSETTINGS_H
+
+#include <QObject>
+
+class QPersistentModelIndex;
+class QModelIndex;
+class HbDataForm;
+class HbDataFormModel;
+class HbDataFormModelItem;
+class HbComboBox;
+class HbPushButton;
+class HbAbstractButton;
+class HbLineEdit;
+class XQSettingsManager;
+class XQSettingsKey;
+
+#ifdef  CALENSETTINGS_DLL
+#define CALENSETTINGS_EXPORT Q_DECL_EXPORT
+#else
+#define CALENSETTINGS_EXPORT Q_DECL_IMPORT
+#endif
+
+class CALENSETTINGS_EXPORT CalenSettings : public QObject
+{
+	Q_OBJECT
+
+public:
+    CalenSettings(HbDataForm *form, QObject *parent = 0);
+    ~CalenSettings();
+
+    void createModel();
+    void populateSettingList();
+
+public slots:
+    void handleAlarmSnoozeTimeChange(int index);
+    void handleWeekNumberChange();
+
+private:
+	HbDataForm *mSettingsForm;
+	HbDataFormModel *mSettingsModel;
+	HbDataFormModelItem *mAlarmSnoozeTimeItem;
+	HbDataFormModelItem* mShowWeekNumberItem;
+		
+	XQSettingsManager *mSettingsManager;
+	XQSettingsKey *mAlarmSnoozeCenrepKey;
+	XQSettingsKey *mWeekNumberCenrepKey;
+	uint mAlarmSnoozeTime;
+	uint mShowWeekNumber;
+	
+};
+
+#endif // CALENSETTINGS_H
+
+// End of file