|
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: project specification |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MUSWPITEM_H |
|
21 #define MUSWPITEM_H |
|
22 |
|
23 |
|
24 #include "mussettingskeys.h" |
|
25 #include "musunittesting.h" |
|
26 #include <e32base.h> |
|
27 |
|
28 /** |
|
29 * |
|
30 */ |
|
31 class CMusWpItem : public CBase |
|
32 { |
|
33 MUS_UNITTEST( UT_CMusWpItem ) |
|
34 MUS_UNITTEST( UT_CMusWpAdapter ) |
|
35 |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Two-phased constructor. |
|
40 */ |
|
41 static CMusWpItem* NewL(); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 virtual ~CMusWpItem(); |
|
47 |
|
48 |
|
49 public: // API |
|
50 |
|
51 /** |
|
52 * Gets PROVIDER-ID param |
|
53 */ |
|
54 const TDesC& ProviderId() const; |
|
55 |
|
56 /** |
|
57 * Sets PROVIDER-ID param |
|
58 */ |
|
59 void SetProviderIdL( const TDesC& aProviderId ); |
|
60 |
|
61 /** |
|
62 * Gets name |
|
63 */ |
|
64 const TDesC& Name() const; |
|
65 |
|
66 /** |
|
67 * Sets name |
|
68 */ |
|
69 void SetNameL( const TDesC& aName); |
|
70 |
|
71 /** |
|
72 * Gets TO-APPREF param |
|
73 */ |
|
74 const TDesC& ToAppRef() const; |
|
75 |
|
76 /** |
|
77 * Sets TO-APPREF param |
|
78 */ |
|
79 void SetToAppRefL( const TDesC& aToAppRef ); |
|
80 |
|
81 /** |
|
82 * Sets EDGEDTM param |
|
83 */ |
|
84 void SetEdgeDtmSupport( TBool aEdgeDtm ); |
|
85 |
|
86 /** |
|
87 * Sets INTERNETSIGNALING param |
|
88 */ |
|
89 void SetForceInternetSignaling( TBool aInternetSignaling ); |
|
90 |
|
91 /** |
|
92 * Sets QUERY param |
|
93 */ |
|
94 void SetCapabilityQuery( const TDesC& aValue ); |
|
95 |
|
96 /** |
|
97 * Sets CONDITION param |
|
98 */ |
|
99 void SetActivationCondition( const TDesC& aValue ); |
|
100 |
|
101 /** |
|
102 * Saves this set of settings. |
|
103 */ |
|
104 void SaveL(); |
|
105 |
|
106 |
|
107 private: // Constructors |
|
108 |
|
109 /** |
|
110 * C++ default constructor. |
|
111 */ |
|
112 CMusWpItem(); |
|
113 |
|
114 /** |
|
115 * 2nd phase constructor. |
|
116 */ |
|
117 void ConstructL(); |
|
118 |
|
119 |
|
120 private: // data |
|
121 |
|
122 // Identity of video sharing settings provider. Own. |
|
123 HBufC* iProviderId; |
|
124 |
|
125 /** |
|
126 * User displayable name for multimedia sharing, e.g. |
|
127 * "Multimedia Sharing settings". Own. |
|
128 */ |
|
129 HBufC* iName; |
|
130 |
|
131 /** |
|
132 * The APPREF of sip profile that is referenced from |
|
133 * multimeida sharing's TO-APPREF parameter. Own. |
|
134 */ |
|
135 HBufC* iToAppRef; |
|
136 |
|
137 |
|
138 private: // saved settings |
|
139 |
|
140 MusSettingsKeys::TEdgeDtmSupport iEdgeDtmSupport; |
|
141 MusSettingsKeys::TForceInternetSignaling iForceInternetSignaling; |
|
142 MusSettingsKeys::TCapabilityQuery iCapabilityQuery; |
|
143 MusSettingsKeys::TActivation iActivationCondition; |
|
144 |
|
145 }; |
|
146 |
|
147 |
|
148 #endif // MUSWPITEM_H |