|
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 TPhoneCmdParamBoolean class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 |
|
21 #include "tphonecmdparamboolean.h" |
|
22 |
|
23 // ================= MEMBER FUNCTIONS ======================= |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // TPhoneCmdParamBoolean::TPhoneCmdParamBoolean |
|
27 // C++ default constructor can NOT contain any code, that |
|
28 // might leave. |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 EXPORT_C TPhoneCmdParamBoolean::TPhoneCmdParamBoolean() : |
|
32 TPhoneCommandParam(), |
|
33 iBoolean( EFalse ) |
|
34 { |
|
35 iParamId = EPhoneParamIdBoolean; |
|
36 } |
|
37 |
|
38 // --------------------------------------------------------- |
|
39 // TPhoneCmdParamBoolean::SetBoolean |
|
40 // Sets the Boolean value |
|
41 // (other items were commented in a header). |
|
42 // --------------------------------------------------------- |
|
43 // |
|
44 EXPORT_C void TPhoneCmdParamBoolean::SetBoolean( TBool aBoolean ) |
|
45 { |
|
46 iBoolean = aBoolean; |
|
47 } |
|
48 |
|
49 // --------------------------------------------------------- |
|
50 // TPhoneCmdParamBoolean::Boolean |
|
51 // Returns the Boolean value |
|
52 // (other items were commented in a header). |
|
53 // --------------------------------------------------------- |
|
54 // |
|
55 EXPORT_C TBool TPhoneCmdParamBoolean::Boolean() const |
|
56 { |
|
57 return iBoolean; |
|
58 } |
|
59 |
|
60 // End of File |