|
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 __CCALLFORWARDINGSTATUS_H__ |
|
18 #define __CCALLFORWARDINGSTATUS_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 the status of the network call forwarding supplementary service. |
|
31 */ |
|
32 class CCallForwardingStatus : public CISVAPIAsync |
|
33 { |
|
34 |
|
35 // Methods |
|
36 public: |
|
37 static CCallForwardingStatus* NewL(MExecAsync* aController); |
|
38 ~CCallForwardingStatus(); |
|
39 |
|
40 void DoStartRequestL(); |
|
41 |
|
42 private: |
|
43 CCallForwardingStatus(MExecAsync* aController); |
|
44 void ConstructL(); |
|
45 |
|
46 void RunL(); |
|
47 void DoCancel(); |
|
48 |
|
49 // Data |
|
50 public: |
|
51 /** |
|
52 Stores current call forwarding status when call status is checked for |
|
53 CTelephony::ECallForwardingNoReply. |
|
54 */ |
|
55 CTelephony::TCallForwardingSupplServicesV1 iCallForwardingStatus1V1; |
|
56 /** |
|
57 Stores current call forwarding status when call status is checked for |
|
58 CTelephony::ECallForwardingUnconditional. |
|
59 */ |
|
60 CTelephony::TCallForwardingSupplServicesV1 iCallForwardingStatus2V1; |
|
61 |
|
62 private: |
|
63 /** |
|
64 Package descriptor for iCallForwardingStatus1V1. |
|
65 */ |
|
66 CTelephony::TCallForwardingSupplServicesV1Pckg iCallForwardingStatus1V1Pckg; |
|
67 /** |
|
68 Package descriptor for iCallForwardingStatus2V1. |
|
69 */ |
|
70 CTelephony::TCallForwardingSupplServicesV1Pckg iCallForwardingStatus2V1Pckg; |
|
71 /** |
|
72 When set to EFalse, DoStartRequestL() will check if the call forwarding |
|
73 status is CTelephony::ECallForwardingUnconditional |
|
74 When set to ETrue, DoStartRequestL() will check if the call forwarding |
|
75 status is CTelephony::ECallForwardingNoReply |
|
76 */ |
|
77 TBool iSecondCondition; |
|
78 |
|
79 }; |
|
80 |
|
81 #endif // __CCALLFORWARDINGSTATUS_H__ |