|
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: Call params |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include <e32base.h> |
|
20 #include <cccecallparameters.h> |
|
21 |
|
22 |
|
23 |
|
24 // ======== MEMBER FUNCTIONS ======== |
|
25 // --------------------------------------------------------------------------- |
|
26 // Constructor |
|
27 // --------------------------------------------------------------------------- |
|
28 // |
|
29 |
|
30 // --------------------------------------------------------------------------- |
|
31 // Creates the params object. |
|
32 // --------------------------------------------------------------------------- |
|
33 // |
|
34 EXPORT_C CCCECallParameters* CCCECallParameters::NewL() |
|
35 { |
|
36 CCCECallParameters* self = new(ELeave)CCCECallParameters(); |
|
37 CleanupStack::PushL( self ); |
|
38 self->ConstructL(); |
|
39 CleanupStack::Pop( self ); |
|
40 return self; |
|
41 } |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // CCCECallParameters::~CCCECallParameters |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 CCCECallParameters::~CCCECallParameters() |
|
48 { |
|
49 } |
|
50 |
|
51 // ----------------------------------------------------------------------------- |
|
52 // CCCECallParameters::CloneL |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 CCCPCallParameters* CCCECallParameters::CloneL() const |
|
56 { |
|
57 CCCECallParameters* cloned = CCCECallParameters::NewL(); |
|
58 // Base class data |
|
59 cloned->SetCallType(CallType()); |
|
60 cloned->SetServiceId(ServiceId()); |
|
61 |
|
62 // Self data |
|
63 cloned->SetBearer(iBearer); |
|
64 cloned->SetSubAddress(iSubAddress); |
|
65 cloned->SetLineType(iLineType); |
|
66 cloned->SetUUSId(iUUSId); |
|
67 cloned->SetOrigin(iOrigin); |
|
68 return cloned; |
|
69 } |
|
70 |
|
71 // ----------------------------------------------------------------------------- |
|
72 // CCCECallParameters::CCCECallParameters |
|
73 // ----------------------------------------------------------------------------- |
|
74 // |
|
75 CCCECallParameters::CCCECallParameters() |
|
76 { |
|
77 } |
|
78 |
|
79 // ----------------------------------------------------------------------------- |
|
80 // CCCECallParameters::ConstructL |
|
81 // ----------------------------------------------------------------------------- |
|
82 // |
|
83 void CCCECallParameters::ConstructL() |
|
84 { |
|
85 CCCPCallParameters::ConstructL(); |
|
86 } |
|
87 |
|
88 // ----------------------------------------------------------------------------- |
|
89 // Sets the line type of call. |
|
90 // ----------------------------------------------------------------------------- |
|
91 // |
|
92 void CCCECallParameters::SetLineType(CCCECallParameters::TCCELineType aLineType) |
|
93 { |
|
94 iLineType = aLineType; |
|
95 } |
|
96 |
|
97 // ----------------------------------------------------------------------------- |
|
98 // Gets the line type of the call. |
|
99 // ----------------------------------------------------------------------------- |
|
100 // |
|
101 CCCECallParameters::TCCELineType CCCECallParameters::LineType() const |
|
102 { |
|
103 return iLineType; |
|
104 } |
|
105 |
|
106 // ----------------------------------------------------------------------------- |
|
107 // Sets the service id identifying the service provider of the call. |
|
108 // ----------------------------------------------------------------------------- |
|
109 // |
|
110 void CCCECallParameters::SetUUSId(TBuf<KCCPUUSIdSize> aUUSId) |
|
111 { |
|
112 iUUSId = aUUSId; |
|
113 } |
|
114 |
|
115 // ----------------------------------------------------------------------------- |
|
116 // Gets the UUS id of the call. |
|
117 // ----------------------------------------------------------------------------- |
|
118 // |
|
119 TBuf<KCCPUUSIdSize> CCCECallParameters::UUSId() const |
|
120 { |
|
121 return iUUSId; |
|
122 } |
|
123 |
|
124 // ----------------------------------------------------------------------------- |
|
125 // Sets the bearer of the call. |
|
126 // ----------------------------------------------------------------------------- |
|
127 // |
|
128 void CCCECallParameters::SetBearer(TBuf8<KCCEBearerMaxSize> aBearer) |
|
129 { |
|
130 iBearer = aBearer; |
|
131 } |
|
132 |
|
133 // ----------------------------------------------------------------------------- |
|
134 // Gets the bearer of the call. |
|
135 // ----------------------------------------------------------------------------- |
|
136 // |
|
137 TBuf8<KCCEBearerMaxSize> CCCECallParameters::Bearer() const |
|
138 { |
|
139 return iBearer; |
|
140 } |
|
141 |
|
142 // ----------------------------------------------------------------------------- |
|
143 // Sets the sub address of the dialled phone number. |
|
144 // ----------------------------------------------------------------------------- |
|
145 // |
|
146 void CCCECallParameters::SetSubAddress(TBuf<KCCESubAddressMaxSize> aSubAddress) |
|
147 { |
|
148 iSubAddress = aSubAddress; |
|
149 } |
|
150 |
|
151 // ----------------------------------------------------------------------------- |
|
152 // Gets the sub address of the dialled phone number. |
|
153 // ----------------------------------------------------------------------------- |
|
154 // |
|
155 TBuf<KCCESubAddressMaxSize> CCCECallParameters::SubAddress() const |
|
156 { |
|
157 return iSubAddress; |
|
158 } |
|
159 |
|
160 // ----------------------------------------------------------------------------- |
|
161 // Sets the origin of the call. |
|
162 // ----------------------------------------------------------------------------- |
|
163 // |
|
164 void CCCECallParameters::SetOrigin(CCCECallParameters::TCCECallOrigin aCallOrigin) |
|
165 { |
|
166 iOrigin = aCallOrigin; |
|
167 } |
|
168 |
|
169 // ----------------------------------------------------------------------------- |
|
170 // Gets the origin of the call. |
|
171 // ----------------------------------------------------------------------------- |
|
172 // |
|
173 CCCECallParameters::TCCECallOrigin CCCECallParameters::Origin() const |
|
174 { |
|
175 return iOrigin; |
|
176 } |
|
177 |
|
178 |
|
179 |
|
180 // End of file |