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 #ifndef CPPERSONALIZATIONENTRYITEMDATA_H |
|
18 #define CPPERSONALIZATIONENTRYITEMDATA_H |
|
19 |
|
20 #include <cpsettingformentryitemdata.h> |
|
21 #include <xqsettingskey.h> |
|
22 |
|
23 class CpProfileModel; |
|
24 class XQSettingsManager; |
|
25 |
|
26 class CpPersonalizationEntryItemData : public CpSettingFormEntryItemData |
|
27 { |
|
28 Q_OBJECT |
|
29 public: |
|
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, |
|
39 const QString &text = QString(), |
|
40 const QString &description = QString(), |
|
41 const QString &icon = QString(), |
|
42 Profile_Tone_Types toneType = TONE_Ring, |
|
43 int profileId = -1, |
|
44 const HbDataFormModelItem *parent = 0); |
|
45 virtual ~CpPersonalizationEntryItemData(); |
|
46 private slots: |
|
47 void handleOk(const QString &strFname); |
|
48 void handleError( int errorCode, const QString& errorMessage ); |
|
49 void settingValueChanged( const XQSettingsKey& key, const QVariant& value ); |
|
50 private: |
|
51 virtual CpBaseSettingView *createSettingView() const; |
|
52 QString loadStringValue() const; |
|
53 void storeStringValue( const QString &strvalue ) const; |
|
54 private: |
|
55 CpProfileModel *mProfileModel; |
|
56 int m_profileID; |
|
57 Profile_Tone_Types mToneType; |
|
58 XQSettingsManager *mSettingManager; |
|
59 }; |
|
60 |
|
61 #endif // CPPERSONALIZATIONENTRYITEMDATA_H |
|