20 |
20 |
21 #include <hbdataform.h> |
21 #include <hbdataform.h> |
22 |
22 |
23 class HbDataFormModel; |
23 class HbDataFormModel; |
24 class HbDataFormModelItem; |
24 class HbDataFormModelItem; |
|
25 class CpItemDataHelper; |
|
26 class CpProfileModel; |
|
27 class QFileIconProvider; |
25 |
28 |
26 class CpProfileSettingForm : public HbDataForm |
29 class CpProfileSettingForm : public HbDataForm |
27 { |
30 { |
28 Q_OBJECT |
31 Q_OBJECT |
29 public: |
32 public: |
30 CpProfileSettingForm(); |
33 CpProfileSettingForm(); |
31 virtual ~CpProfileSettingForm(); |
34 virtual ~CpProfileSettingForm(); |
|
35 |
|
36 private slots: |
|
37 |
|
38 //general tones |
|
39 void on_general_notificationTones_stateChanged(int state); |
|
40 void on_general_keysAndScreenToneSlider_ValueChanged( int value ); |
|
41 |
|
42 //general vibra |
|
43 void on_general_ringVibar_stateChanged( int state ); |
|
44 void on_general_messageVibra_stateChanged( int state ); |
|
45 void on_general_emailVibra_stateChanged( int state ); |
|
46 void on_general_reminderVibra_stateChanged( int state ); |
|
47 void on_general_notificationVibra_stateChanged( int state ); |
|
48 void on_general_screenVibra_ValueChanged( int value ); |
|
49 |
|
50 //meeting tones |
|
51 void on_meeting_notificationTones_stateChanged(int state); |
|
52 void on_meeting_keysAndScreenSlider_ValueChanged( int value ); |
|
53 |
|
54 //meeting vibar |
|
55 void on_meeting_ringVibar_stateChanged( int state ); |
|
56 void on_meeting_messageVibra_stateChanged( int state ); |
|
57 void on_meeting_emailVibra_stateChanged( int state ); |
|
58 void on_meeting_reminderVibra_stateChanged( int state ); |
|
59 void on_meeting_notificationVibra_stateChanged( int state ); |
|
60 void on_meeting_screenVibra_ValueChanged( int value ); |
32 private: |
61 private: |
33 void initModel(); |
62 void initModel(); |
34 void initVolumeGroup(HbDataFormModelItem *parent); |
63 void initGeneralTonesGroup(); |
35 void initVibraGroup(HbDataFormModelItem *parent); |
64 //void initGeneralVibraGroup(); |
|
65 void initMeetingTonesGroup(); |
|
66 //void initMeetingVibraGroup(); |
|
67 bool checkBoxStateToBool( int state ); |
36 // void initRingToneGroup(HbDataFormModelItem *parent); |
68 // void initRingToneGroup(HbDataFormModelItem *parent); |
37 // void initMessageToneGroup(HbDataFormModelItem *parent); |
69 // void initMessageToneGroup(HbDataFormModelItem *parent); |
38 // void initAlertToneGroup(HbDataFormModelItem *parent); |
70 // void initAlertToneGroup(HbDataFormModelItem *parent); |
39 // void initKeyAndScreenToneGroup(HbDataFormModelItem *parent); |
71 // void initKeyAndScreenToneGroup(HbDataFormModelItem *parent); |
40 private: |
72 private: |
41 HbDataFormModel *mModel; |
73 HbDataFormModel *mModel; |
|
74 CpItemDataHelper *mItemDataHelper; |
|
75 CpProfileModel *mProfileModel; |
|
76 QFileIconProvider *mFileIconProvider; |
|
77 |
|
78 HbDataFormModelItem *mGeneralPage; |
|
79 HbDataFormModelItem *mMeetingPage; |
|
80 |
|
81 HbDataFormModelItem *mCurrentPage; |
|
82 |
|
83 HbDataFormModelItem *mGeneralKeysAndScreenToneSlider; |
|
84 HbDataFormModelItem *mGeneralSreenVibra; |
|
85 HbDataFormModelItem *mMeetingKeysAndScreenToneSlider; |
|
86 HbDataFormModelItem *mMeetingSreenVibra; |
42 }; |
87 }; |
43 |
88 |
44 |
89 |
45 #endif //CPPROFILESETTINGFORM_H |
90 #endif //CPPROFILESETTINGFORM_H |