|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include "CISVAPIBase.h" |
|
17 |
|
18 /** |
|
19 Default constructor. |
|
20 |
|
21 @param aController iController is set to point to this object |
|
22 @param aExampleType The type of the derived class that has extended the |
|
23 functionality of this class |
|
24 */ |
|
25 CISVAPIBase::CISVAPIBase(MExecController* aController, TTelISVExampleType aExampleType) |
|
26 : CActive(EPriorityStandard), |
|
27 iController(aController), |
|
28 iExampleType(aExampleType) |
|
29 { |
|
30 CActiveScheduler::Add(this); |
|
31 RetrieveConsole(); |
|
32 RetrieveTelephonyObject(); |
|
33 } |
|
34 |
|
35 /** |
|
36 Makes a request for notification on changes to specified Etel 3rd party data. |
|
37 */ |
|
38 void CISVAPIBase::RequestNotificationL() |
|
39 { |
|
40 DoRequestNotificationL(); |
|
41 } |
|
42 |
|
43 /** |
|
44 Virtual function for completing the notification request. Empty method. |
|
45 */ |
|
46 void CISVAPIBase::DoRequestNotificationL() |
|
47 { |
|
48 /* |
|
49 TODO Implement CISVAPIBase::DoRequestNotificationL() in any derived |
|
50 classes if required |
|
51 */ |
|
52 } |
|
53 |
|
54 /** |
|
55 Make an Etel 3rd Party request and wait for it to be completed. |
|
56 */ |
|
57 void CISVAPIBase::StartRequestL() |
|
58 { |
|
59 DoStartRequestL(); |
|
60 } |
|
61 |
|
62 /** |
|
63 Virtual function for completing the request to start. Empty method. |
|
64 */ |
|
65 void CISVAPIBase::DoStartRequestL() |
|
66 { |
|
67 /* |
|
68 TODO Implement CISVAPIBase::DoStartRequestL() in any derived classes if |
|
69 required |
|
70 */ |
|
71 } |
|
72 |
|
73 /** |
|
74 As StartRequestL() |
|
75 |
|
76 @param aCallId A call identifier to perform Etel Third Party operations on |
|
77 */ |
|
78 void CISVAPIBase::StartRequestL(CTelephony::TCallId aCallId) |
|
79 { |
|
80 DoStartRequestL(aCallId); |
|
81 } |
|
82 |
|
83 /** |
|
84 Virtual function for completing the request to start. Empty method. |
|
85 |
|
86 @param aCallId A call identifier to perform Etel Third Party operations on |
|
87 */ |
|
88 void CISVAPIBase::DoStartRequestL(CTelephony::TCallId /*aCallId*/) |
|
89 { |
|
90 /* |
|
91 TODO Implement CISVAPIBase::DoStartRequestL(CTelephony::TCallId aCallId) |
|
92 in any derived classes if required |
|
93 */ |
|
94 } |
|
95 |
|
96 /** |
|
97 As StartRequestL() |
|
98 |
|
99 @param aTones A descriptor to perform Etel third party operations with |
|
100 */ |
|
101 void CISVAPIBase::StartRequestL(const TDesC& aTones) |
|
102 { |
|
103 DoStartRequestL(aTones); |
|
104 } |
|
105 |
|
106 /** |
|
107 Virtual function for completing the request to start. Empty method. |
|
108 |
|
109 @param aNumber Number to be used |
|
110 */ |
|
111 void CISVAPIBase::DoStartRequestL(const TDesC& /*aNumber*/) |
|
112 { |
|
113 /* |
|
114 TODO Implement CISVAPIBase::DoStartRequestL(const TDesC& aNumber) in any |
|
115 derived classes if required |
|
116 */ |
|
117 } |
|
118 |
|
119 /** |
|
120 As StartRequestL() |
|
121 |
|
122 @param aCallId1 A call identifier to perform Etel Third Party operations on |
|
123 @param aCallId2 A call identifier to perform Etel Third Party operations on |
|
124 */ |
|
125 void CISVAPIBase::StartRequestL(CTelephony::TCallId aCallId1, |
|
126 CTelephony::TCallId aCallId2) |
|
127 { |
|
128 DoStartRequestL(aCallId1, aCallId2); |
|
129 } |
|
130 |
|
131 /** |
|
132 Virtual function for completing the request to start. Empty method. |
|
133 |
|
134 @param aCallId1 A call identifier to perform Etel Third Party operations on |
|
135 @param aCallId2 A call identifier to perform Etel Third Party operations on |
|
136 */ |
|
137 void CISVAPIBase::DoStartRequestL(CTelephony::TCallId /*aCallId1*/, |
|
138 CTelephony::TCallId /*aCallId2*/) |
|
139 { |
|
140 /* |
|
141 TODO Implement CISVAPIBase::DoStartRequestL(CTelephony::TCallId aCallId1, |
|
142 CTelephony::TCallId aCallId2) in any derived classes if required |
|
143 */ |
|
144 } |
|
145 |
|
146 /** |
|
147 Ends the execution of the application by stopping the active scheduler and |
|
148 cancelling any outstanding requests. |
|
149 */ |
|
150 void CISVAPIBase::AppTerminate() |
|
151 { |
|
152 iController->Terminate(); |
|
153 } |
|
154 |