|
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 #ifndef __CCALLSTATUS_H_ |
|
17 #define __CCALLSTATUS_H_ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <e32cons.h> |
|
21 #include <e32def.h> |
|
22 #include <etel3rdparty.h> |
|
23 |
|
24 #include "CISVAPIAsync.h" |
|
25 |
|
26 #include "CMainMenu.h" |
|
27 |
|
28 /** |
|
29 Retrieves data pertaining to the current status of the call specified by |
|
30 iCallId. Can be notified on change. |
|
31 */ |
|
32 class CCallStatus : public CISVAPIAsync |
|
33 { |
|
34 |
|
35 // Methods |
|
36 public: |
|
37 static CCallStatus* NewL(MExecAsync* aController, CTelephony::TCallId aCallId); |
|
38 ~CCallStatus(); |
|
39 |
|
40 void DoStartRequestL(); |
|
41 void DoRequestNotificationL(); |
|
42 |
|
43 private: |
|
44 CCallStatus(MExecAsync* aController, CTelephony::TCallId aCallId); |
|
45 void ConstructL(); |
|
46 |
|
47 void RunL(); |
|
48 void DoCancel(); |
|
49 |
|
50 // Data |
|
51 public: |
|
52 /** |
|
53 Stores retrieved call status of iCallId. |
|
54 */ |
|
55 CTelephony::TCallStatusV1 iCallStatusV1; |
|
56 /** |
|
57 The call whose status will be interrogated. |
|
58 */ |
|
59 CTelephony::TCallId iCallId; |
|
60 |
|
61 private: |
|
62 /** |
|
63 Packages iCallStatus. |
|
64 */ |
|
65 CTelephony::TCallStatusV1Pckg iCallStatusV1Pckg; |
|
66 |
|
67 }; |
|
68 |
|
69 #endif // __CCALLSTATUS_H_ |