18 #ifndef CPPROFILESETTINGFORM_H |
18 #ifndef CPPROFILESETTINGFORM_H |
19 #define CPPROFILESETTINGFORM_H |
19 #define CPPROFILESETTINGFORM_H |
20 |
20 |
21 #include <hbdataform.h> |
21 #include <hbdataform.h> |
22 #include <QHash> |
22 #include <QHash> |
|
23 #include "cpprofilemodel.h" |
23 |
24 |
24 class HbDataFormModel; |
25 class HbDataFormModel; |
25 class HbDataFormModelItem; |
26 class HbDataFormModelItem; |
26 class CpItemDataHelper; |
27 class CpItemDataHelper; |
27 class CpProfileModel; |
28 class CpProfileModel; |
45 ProfileItemTouchScreenVibra |
46 ProfileItemTouchScreenVibra |
46 }; |
47 }; |
47 |
48 |
48 CpProfileSettingForm(); |
49 CpProfileSettingForm(); |
49 virtual ~CpProfileSettingForm(); |
50 virtual ~CpProfileSettingForm(); |
50 |
51 QString currentPageProfileName(); |
|
52 void setCurrentPageProfileName(const QString &name); |
|
53 void updateModifiedProfileName(const QString &name); |
51 private slots: |
54 private slots: |
52 |
55 |
53 //general tones |
56 //general tones |
54 void on_general_notificationTones_stateChanged(int state); |
57 void on_general_notificationTones_stateChanged(int state); |
55 void on_general_keysAndScreenToneSlider_ValueChanged( int value ); |
58 void on_general_keysAndScreenToneSlider_ValueChanged( int value ); |
56 |
|
57 //general vibra |
59 //general vibra |
58 void on_general_ringVibar_stateChanged( int state ); |
|
59 void on_general_messageVibra_stateChanged( int state ); |
|
60 void on_general_emailVibra_stateChanged( int state ); |
|
61 void on_general_reminderVibra_stateChanged( int state ); |
|
62 void on_general_notificationVibra_stateChanged( int state ); |
|
63 void on_general_screenVibra_ValueChanged( int value ); |
60 void on_general_screenVibra_ValueChanged( int value ); |
64 |
61 |
65 //meeting tones |
62 //meeting tones |
66 void on_meeting_notificationTones_stateChanged(int state); |
63 void on_meeting_notificationTones_stateChanged(int state); |
67 void on_meeting_keysAndScreenToneSlider_ValueChanged( int value ); |
64 void on_meeting_keysAndScreenToneSlider_ValueChanged( int value ); |
68 |
65 |
69 //meeting vibar |
66 //meeting vibar |
70 void on_meeting_ringVibar_stateChanged( int state ); |
|
71 void on_meeting_messageVibra_stateChanged( int state ); |
|
72 void on_meeting_emailVibra_stateChanged( int state ); |
|
73 void on_meeting_reminderVibra_stateChanged( int state ); |
|
74 void on_meeting_notificationVibra_stateChanged( int state ); |
|
75 void on_meeting_screenVibra_ValueChanged( int value ); |
67 void on_meeting_screenVibra_ValueChanged( int value ); |
76 |
68 |
77 void settingValueChanged(const XQSettingsKey &key, const QVariant &value); |
69 void settingValueChanged(const XQSettingsKey &key, const QVariant &value); |
|
70 |
|
71 void onDataFormActivated(const QModelIndex &index); |
78 private: |
72 private: |
79 void initModel(); |
73 void initModel(); |
80 void initGeneralTonesGroup(); |
74 void initGeneralTonesGroup(); |
81 //void initGeneralVibraGroup(); |
75 //void initGeneralVibraGroup(); |
82 void initMeetingTonesGroup(); |
76 void initMeetingTonesGroup(); |
83 //void initMeetingVibraGroup(); |
77 //void initMeetingVibraGroup(); |
84 bool checkBoxStateToBool( int state ); |
78 bool checkBoxStateToBool( int state ); |
|
79 |
85 // void initRingToneGroup(HbDataFormModelItem *parent); |
80 // void initRingToneGroup(HbDataFormModelItem *parent); |
86 // void initMessageToneGroup(HbDataFormModelItem *parent); |
81 // void initMessageToneGroup(HbDataFormModelItem *parent); |
87 // void initAlertToneGroup(HbDataFormModelItem *parent); |
82 // void initAlertToneGroup(HbDataFormModelItem *parent); |
88 // void initKeyAndScreenToneGroup(HbDataFormModelItem *parent); |
83 // void initKeyAndScreenToneGroup(HbDataFormModelItem *parent); |
89 |
84 |
96 CpProfileModel *mProfileModel; |
91 CpProfileModel *mProfileModel; |
97 QFileIconProvider *mFileIconProvider; |
92 QFileIconProvider *mFileIconProvider; |
98 |
93 |
99 HbDataFormModelItem *mGeneralPage; |
94 HbDataFormModelItem *mGeneralPage; |
100 HbDataFormModelItem *mMeetingPage; |
95 HbDataFormModelItem *mMeetingPage; |
101 |
|
102 HbDataFormModelItem *mCurrentPage; |
96 HbDataFormModelItem *mCurrentPage; |
103 |
|
104 // HbDataFormModelItem *mGeneralKeysAndScreenToneSlider; |
97 // HbDataFormModelItem *mGeneralKeysAndScreenToneSlider; |
105 // HbDataFormModelItem *mGeneralSreenVibra; |
98 // HbDataFormModelItem *mGeneralSreenVibra; |
106 // HbDataFormModelItem *mMeetingKeysAndScreenToneSlider; |
99 // HbDataFormModelItem *mMeetingKeysAndScreenToneSlider; |
107 // HbDataFormModelItem *mMeetingSreenVibra; |
100 // HbDataFormModelItem *mMeetingSreenVibra; |
108 |
101 |