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