|
1 /* |
|
2 * Copyright (c) 2005 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: Implementation of TPhoneCmdParamRingTone class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "tphonecmdparamringtone.h" |
|
21 |
|
22 // ================= MEMBER FUNCTIONS ======================= |
|
23 |
|
24 // ----------------------------------------------------------------------------- |
|
25 // TPhoneCmdParamRingTone::TPhoneCmdParamRingTone |
|
26 // C++ default constructor can NOT contain any code, that |
|
27 // might leave. |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 EXPORT_C TPhoneCmdParamRingTone::TPhoneCmdParamRingTone() : |
|
31 TPhoneCommandParam(), |
|
32 iRingTone( KNullDesC ), |
|
33 iTextToSay( KNullDesC ), |
|
34 iType( EPhoneRingToneProfile ), |
|
35 iVolume( 0 ), |
|
36 iRingingType( 0 ), |
|
37 iIsCallerText( EFalse ), |
|
38 iIsCallerImage( EFalse ) |
|
39 { |
|
40 iParamId = EPhoneParamIdRingTone; |
|
41 } |
|
42 |
|
43 // --------------------------------------------------------- |
|
44 // TPhoneCmdParamRingTone::SetType |
|
45 // Sets the ring tone type |
|
46 // (other items were commented in a header). |
|
47 // --------------------------------------------------------- |
|
48 // |
|
49 EXPORT_C void TPhoneCmdParamRingTone::SetType( |
|
50 TPhoneRingToneType aType ) |
|
51 { |
|
52 iType = aType; |
|
53 } |
|
54 |
|
55 // --------------------------------------------------------- |
|
56 // TPhoneCmdParamRingTone::SetVolume |
|
57 // Sets the ring tone volume |
|
58 // (other items were commented in a header). |
|
59 // --------------------------------------------------------- |
|
60 // |
|
61 EXPORT_C void TPhoneCmdParamRingTone::SetVolume( TInt aVolume ) |
|
62 { |
|
63 iVolume = aVolume; |
|
64 } |
|
65 |
|
66 // --------------------------------------------------------- |
|
67 // TPhoneCmdParamRingTone::SetRingingType |
|
68 // Sets the ring tone ringing type |
|
69 // (other items were commented in a header). |
|
70 // --------------------------------------------------------- |
|
71 // |
|
72 EXPORT_C void TPhoneCmdParamRingTone::SetRingingType( TInt aRingingType ) |
|
73 { |
|
74 iRingingType = aRingingType; |
|
75 } |
|
76 |
|
77 // --------------------------------------------------------- |
|
78 // TPhoneCmdParamRingTone::SetRingTone |
|
79 // Sets the ring tone |
|
80 // (other items were commented in a header). |
|
81 // --------------------------------------------------------- |
|
82 // |
|
83 EXPORT_C void TPhoneCmdParamRingTone::SetRingTone( const TDesC& aRingTone ) |
|
84 { |
|
85 iRingTone.Set( aRingTone ); |
|
86 } |
|
87 |
|
88 // --------------------------------------------------------- |
|
89 // TPhoneCmdParamRingTone::SetTextToSay |
|
90 // Sets the text to say |
|
91 // (other items were commented in a header). |
|
92 // --------------------------------------------------------- |
|
93 // |
|
94 EXPORT_C void TPhoneCmdParamRingTone::SetTextToSay( const TDesC& aTextToSay ) |
|
95 { |
|
96 iTextToSay.Set( aTextToSay ); |
|
97 } |
|
98 |
|
99 // --------------------------------------------------------- |
|
100 // TPhoneCmdParamRingTone::Type |
|
101 // Returns the ring tone type |
|
102 // (other items were commented in a header). |
|
103 // --------------------------------------------------------- |
|
104 // |
|
105 EXPORT_C TPhoneRingToneType TPhoneCmdParamRingTone::Type() const |
|
106 { |
|
107 return iType; |
|
108 } |
|
109 |
|
110 // --------------------------------------------------------- |
|
111 // TPhoneCmdParamRingTone::Volume |
|
112 // Returns the ring tone volume |
|
113 // (other items were commented in a header). |
|
114 // --------------------------------------------------------- |
|
115 // |
|
116 EXPORT_C TInt TPhoneCmdParamRingTone::Volume() const |
|
117 { |
|
118 return iVolume; |
|
119 } |
|
120 |
|
121 // --------------------------------------------------------- |
|
122 // TPhoneCmdParamRingTone::RingingType |
|
123 // Returns the ring tone ringing type |
|
124 // (other items were commented in a header). |
|
125 // --------------------------------------------------------- |
|
126 // |
|
127 EXPORT_C TInt TPhoneCmdParamRingTone::RingingType() const |
|
128 { |
|
129 return iRingingType; |
|
130 } |
|
131 |
|
132 // --------------------------------------------------------- |
|
133 // TPhoneCmdParamRingTone::RingTone |
|
134 // Returns the ring tone |
|
135 // (other items were commented in a header). |
|
136 // --------------------------------------------------------- |
|
137 // |
|
138 EXPORT_C const TDesC& TPhoneCmdParamRingTone::RingTone() const |
|
139 { |
|
140 return iRingTone; |
|
141 } |
|
142 |
|
143 // --------------------------------------------------------- |
|
144 // TPhoneCmdParamRingTone::TextToSay |
|
145 // Returns the text to say |
|
146 // (other items were commented in a header). |
|
147 // --------------------------------------------------------- |
|
148 // |
|
149 EXPORT_C const TDesC& TPhoneCmdParamRingTone::TextToSay() const |
|
150 { |
|
151 return iTextToSay; |
|
152 } |
|
153 |
|
154 // --------------------------------------------------------- |
|
155 // TPhoneCmdParamRingTone::SetCallerTextStatus |
|
156 // |
|
157 // (other items were commented in a header). |
|
158 // --------------------------------------------------------- |
|
159 // |
|
160 EXPORT_C void TPhoneCmdParamRingTone::SetCallerTextStatus( TBool aStatus ) |
|
161 { |
|
162 iIsCallerText = aStatus; |
|
163 } |
|
164 // --------------------------------------------------------- |
|
165 // TPhoneCmdParamRingTone::IsCallerText |
|
166 // |
|
167 // (other items were commented in a header). |
|
168 // --------------------------------------------------------- |
|
169 // |
|
170 EXPORT_C TBool TPhoneCmdParamRingTone::IsCallerText() |
|
171 { |
|
172 return iIsCallerText; |
|
173 } |
|
174 |
|
175 // --------------------------------------------------------- |
|
176 // TPhoneCmdParamRingTone::SetCallerImageStatus |
|
177 // |
|
178 // (other items were commented in a header). |
|
179 // --------------------------------------------------------- |
|
180 // |
|
181 EXPORT_C void TPhoneCmdParamRingTone::SetCallerImageStatus( TBool aStatus ) |
|
182 { |
|
183 iIsCallerImage = aStatus; |
|
184 } |
|
185 |
|
186 // --------------------------------------------------------- |
|
187 // TPhoneCmdParamRingTone::IsCallerImage |
|
188 // |
|
189 // (other items were commented in a header). |
|
190 // --------------------------------------------------------- |
|
191 // |
|
192 EXPORT_C TBool TPhoneCmdParamRingTone::IsCallerImage() |
|
193 { |
|
194 return iIsCallerImage; |
|
195 } |
|
196 |
|
197 |
|
198 // End of File |