|
1 /* |
|
2 * Copyright (c) 2006 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: Setting item for SIP / XDM settings |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef PSUISIPXDMSETTINGITEM_H |
|
22 #define PSUISIPXDMSETTINGITEM_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <aknsettingitemlist.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 // CLASS DECLARATION |
|
30 class CPSUIGSPluginModel; |
|
31 |
|
32 /** |
|
33 * CPSUISipXdmSettingItem setting class |
|
34 * @since Series60_3.2 |
|
35 */ |
|
36 class CPSUISipXdmSettingItem : public CAknSettingItem |
|
37 { |
|
38 |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /* |
|
42 * C++ default constructor. |
|
43 */ |
|
44 CPSUISipXdmSettingItem( TInt aIdentifier, TInt& aId, CPSUIGSPluginModel* iPSModel ); |
|
45 |
|
46 /** |
|
47 * Destructor |
|
48 */ |
|
49 ~CPSUISipXdmSettingItem(); |
|
50 |
|
51 private: // New |
|
52 |
|
53 /** |
|
54 * Like in CAknSettingItem, but SIP specific. |
|
55 */ |
|
56 void EditSipItemL(); |
|
57 |
|
58 /** |
|
59 * Like in CAknSettingItem, but XDM specific. |
|
60 */ |
|
61 void EditXdmItemL(); |
|
62 |
|
63 /** |
|
64 * Launches the actual radio button setting dialog with data given. |
|
65 * |
|
66 * @param aIndex is currently selected setting |
|
67 * @param aArray contains the settings to choose from |
|
68 */ |
|
69 void LaunchSettingDlgL( TInt& aIndex, CDesCArray* aArray ); |
|
70 |
|
71 private: // Functions from base classes |
|
72 |
|
73 /** |
|
74 * From CAknSettingItem |
|
75 * See base class. |
|
76 */ |
|
77 virtual void StoreL(); |
|
78 |
|
79 /** |
|
80 * From CAknSettingItem |
|
81 * See base class. |
|
82 */ |
|
83 virtual void LoadL(); |
|
84 |
|
85 /** |
|
86 * From CAknSettingItem |
|
87 * See base class. |
|
88 */ |
|
89 virtual const TDesC& SettingTextL(); |
|
90 |
|
91 /** |
|
92 * From CAknSettingItem |
|
93 * See base class. |
|
94 */ |
|
95 virtual void EditItemL( TBool aCalledFromMenu ); |
|
96 |
|
97 protected: // Data |
|
98 |
|
99 // reference to external value |
|
100 TInt& iExtChosenSettingID; |
|
101 // internal value |
|
102 TInt iIntChosenSettingID; |
|
103 // pointer to PSUI model |
|
104 CPSUIGSPluginModel* iPSModel;// owned elsewhere |
|
105 // internal text having the listbox text |
|
106 HBufC* iPSUIInternalText;// owned |
|
107 }; |
|
108 |
|
109 #endif //PSUISIPXDMSETTINGITEM_H |
|
110 // End of File |