1 /* |
|
2 * Copyright (c) 2008 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 TPhoneCmdParamSelector class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "tphonecmdparamselector.h" |
|
21 |
|
22 |
|
23 // ================= MEMBER FUNCTIONS ======================= |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // TPhoneCmdParamSelector::TPhoneCmdParamSelector |
|
27 // C++ default constructor can NOT contain any code, that |
|
28 // might leave. |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 EXPORT_C TPhoneCmdParamSelector::TPhoneCmdParamSelector() : |
|
32 TPhoneCommandParam(), |
|
33 iServiceId( NULL ), |
|
34 iCallType( EPhoneCallTypeNotFound ), |
|
35 iEnabled( EFalse ) |
|
36 { |
|
37 iParamId = (TPhoneCommandParam::TPhoneParamId) |
|
38 TPhoneCommandParamVoip::EPhoneParamIdSelector; |
|
39 } |
|
40 |
|
41 // --------------------------------------------------------- |
|
42 // TPhoneCmdParamSelector::SetPhoneNumber |
|
43 // Sets the service id. |
|
44 // (other items were commented in a header). |
|
45 // --------------------------------------------------------- |
|
46 // |
|
47 EXPORT_C void TPhoneCmdParamSelector::SetServiceId( const TUint aServiceId ) |
|
48 { |
|
49 iServiceId = aServiceId; |
|
50 } |
|
51 |
|
52 // --------------------------------------------------------- |
|
53 // TPhoneCmdParamSelector::ServiceId |
|
54 // Returns the service id. |
|
55 // (other items were commented in a header). |
|
56 // --------------------------------------------------------- |
|
57 // |
|
58 EXPORT_C TUint TPhoneCmdParamSelector::ServiceId() |
|
59 { |
|
60 return iServiceId; |
|
61 } |
|
62 |
|
63 // --------------------------------------------------------- |
|
64 // TPhoneCmdParamSelector::SetCallType |
|
65 // Sets the call type. |
|
66 // (other items were commented in a header). |
|
67 // --------------------------------------------------------- |
|
68 // |
|
69 EXPORT_C void TPhoneCmdParamSelector::SetCallType( TPhoneSsCallType aCallType ) |
|
70 { |
|
71 iCallType = aCallType; |
|
72 } |
|
73 |
|
74 // --------------------------------------------------------- |
|
75 // TPhoneCmdParamSelector::NumberType |
|
76 // Returns the call type. |
|
77 // (other items were commented in a header). |
|
78 // --------------------------------------------------------- |
|
79 // |
|
80 EXPORT_C TPhoneSsCallType TPhoneCmdParamSelector::CallType() |
|
81 { |
|
82 return iCallType; |
|
83 } |
|
84 |
|
85 // --------------------------------------------------------- |
|
86 // TPhoneCmdParamSelector::SetLocation |
|
87 // Sets the registration status. |
|
88 // (other items were commented in a header). |
|
89 // --------------------------------------------------------- |
|
90 // |
|
91 EXPORT_C void TPhoneCmdParamSelector::SetRegStatus( TBool aEnabled ) |
|
92 { |
|
93 iEnabled = aEnabled; |
|
94 } |
|
95 |
|
96 // --------------------------------------------------------- |
|
97 // TPhoneCmdParamSelector::RegStatus |
|
98 // Returns the registration status. |
|
99 // (other items were commented in a header). |
|
100 // --------------------------------------------------------- |
|
101 // |
|
102 EXPORT_C TBool TPhoneCmdParamSelector::RegStatus() |
|
103 { |
|
104 return iEnabled; |
|
105 } |
|
106 |
|
107 // End of File |
|