16 */ |
16 */ |
17 #ifndef CPPERSONALIZATIONENTRYITEMDATA_H |
17 #ifndef CPPERSONALIZATIONENTRYITEMDATA_H |
18 #define CPPERSONALIZATIONENTRYITEMDATA_H |
18 #define CPPERSONALIZATIONENTRYITEMDATA_H |
19 |
19 |
20 #include <cpsettingformentryitemdata.h> |
20 #include <cpsettingformentryitemdata.h> |
21 #include <xqappmgr.h> |
21 #include <xqsettingskey.h> |
22 |
22 |
23 class CpProfileModel; |
23 class CpProfileModel; |
24 class XQApplicationManager; |
24 class XQSettingsManager; |
25 class XQAiwRequest; |
|
26 |
|
27 |
25 |
28 class CpPersonalizationEntryItemData : public CpSettingFormEntryItemData |
26 class CpPersonalizationEntryItemData : public CpSettingFormEntryItemData |
29 { |
27 { |
30 Q_OBJECT |
28 Q_OBJECT |
31 public: |
29 public: |
32 explicit CpPersonalizationEntryItemData(CpItemDataHelper &itemDataHelper, |
30 typedef enum |
|
31 { |
|
32 TONE_Ring = 0, |
|
33 TONE_Message, |
|
34 TONE_Email, |
|
35 TONE_Reminder |
|
36 }Profile_Tone_Types; |
|
37 |
|
38 explicit CpPersonalizationEntryItemData(CpItemDataHelper &itemDataHelper, |
33 const QString &text = QString(), |
39 const QString &text = QString(), |
34 const QString &description = QString(), |
40 const QString &description = QString(), |
35 const HbIcon &icon = HbIcon(), |
41 const HbIcon &icon = HbIcon(), |
|
42 Profile_Tone_Types toneType = TONE_Ring, |
|
43 int profileId = -1, |
36 const HbDataFormModelItem *parent = 0); |
44 const HbDataFormModelItem *parent = 0); |
37 virtual ~CpPersonalizationEntryItemData(); |
45 virtual ~CpPersonalizationEntryItemData(); |
38 private slots: |
46 private slots: |
39 void onLaunchView(); |
47 void handleOk(const QString &strFname); |
40 void handleOk(const QVariant &result); |
48 void handleError( int errorCode, const QString& errorMessage ); |
41 void handleError(int errorCode, const QString& errorMessage); |
49 void settingValueChanged( const XQSettingsKey& key, const QVariant& value ); |
42 private: |
50 private: |
43 virtual CpBaseSettingView *createSettingView() const; |
51 virtual CpBaseSettingView *createSettingView() const; |
|
52 QString loadStringValue() const; |
|
53 void storeStringValue( const QString &strvalue ) const; |
44 private: |
54 private: |
45 XQApplicationManager mAppMgr; |
|
46 XQAiwRequest* mReq; |
|
47 CpProfileModel *mProfileModel; |
55 CpProfileModel *mProfileModel; |
|
56 int m_profileID; |
|
57 Profile_Tone_Types mToneType; |
|
58 XQSettingsManager *mSettingManager; |
48 }; |
59 }; |
49 |
60 |
50 #endif // CPPERSONALIZATIONENTRYITEMDATA_H |
61 #endif // CPPERSONALIZATIONENTRYITEMDATA_H |