calendarui/settings/inc/calensettings.h
changeset 18 c198609911f9
child 23 fd30d51f876b
equal deleted inserted replaced
0:f979ecb2b13e 18:c198609911f9
       
     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 CALENSETTINGS_H
       
    19 #define CALENSETTINGS_H
       
    20 
       
    21 #include <QObject>
       
    22 
       
    23 class QPersistentModelIndex;
       
    24 class QModelIndex;
       
    25 class HbDataForm;
       
    26 class HbDataFormModel;
       
    27 class HbDataFormModelItem;
       
    28 class HbComboBox;
       
    29 class HbPushButton;
       
    30 class HbAbstractButton;
       
    31 class HbLineEdit;
       
    32 class XQSettingsManager;
       
    33 class XQSettingsKey;
       
    34 
       
    35 #ifdef  CALENSETTINGS_DLL
       
    36 #define CALENSETTINGS_EXPORT Q_DECL_EXPORT
       
    37 #else
       
    38 #define CALENSETTINGS_EXPORT Q_DECL_IMPORT
       
    39 #endif
       
    40 
       
    41 class CALENSETTINGS_EXPORT CalenSettings : public QObject
       
    42 {
       
    43 	Q_OBJECT
       
    44 
       
    45 public:
       
    46     CalenSettings(HbDataForm *form, QObject *parent = 0);
       
    47     ~CalenSettings();
       
    48 
       
    49     void createModel();
       
    50     void populateSettingList();
       
    51 
       
    52 public slots:
       
    53     void handleAlarmSnoozeTimeChange(int index);
       
    54     void handleWeekNumberChange();
       
    55 
       
    56 private:
       
    57 	HbDataForm *mSettingsForm;
       
    58 	HbDataFormModel *mSettingsModel;
       
    59 	HbDataFormModelItem *mAlarmSnoozeTimeItem;
       
    60 	HbDataFormModelItem* mShowWeekNumberItem;
       
    61 		
       
    62 	XQSettingsManager *mSettingsManager;
       
    63 	XQSettingsKey *mAlarmSnoozeCenrepKey;
       
    64 	XQSettingsKey *mWeekNumberCenrepKey;
       
    65 	uint mAlarmSnoozeTime;
       
    66 	uint mShowWeekNumber;
       
    67 	
       
    68 };
       
    69 
       
    70 #endif // CALENSETTINGS_H
       
    71 
       
    72 // End of file