1 // Copyright (c) 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 // CLtsySupplementaryServicesHandler |
|
15 |
|
16 #ifndef __CLTSYDISPATCHSUPPLEMENTARYSERVICESHANDLER_H_ |
|
17 #define __CLTSYDISPATCHSUPPLEMENTARYSERVICESHANDLER_H_ |
|
18 |
|
19 // INCLUDES |
|
20 #include <e32std.h> |
|
21 #include <e32base.h> |
|
22 |
|
23 #include <ctsy/ltsy/mltsydispatchinterface.h> |
|
24 #include <ctsy/ltsy/mltsydispatchsupplementaryservicesinterface.h> |
|
25 #include "misdispatchinterfacesupported.h" |
|
26 #include "ltsymacros.h" |
|
27 |
|
28 |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CCtsyDispatcherCallback; |
|
32 |
|
33 // Can be removed in real LTSY implementation |
|
34 MTEST_FORWARD_DECLARE_MOCKLTSYENGINE |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 /** |
|
39 * Implements interfaces from the CTSY Dispatcher. The CTSY Dispatcher uses these |
|
40 * interfaces to make requests to the Licensee LTSY. |
|
41 */ |
|
42 class CLtsySupplementaryServicesHandler : public CBase, |
|
43 public MIsDispatchInterfaceSupported, |
|
44 public MLtsyDispatchSupplementaryServicesSendNetworkServiceRequestNoFdnCheck, |
|
45 public MLtsyDispatchSupplementaryServicesGetCallWaitingStatus, |
|
46 public MLtsyDispatchSupplementaryServicesSendNetworkServiceRequest, |
|
47 public MLtsyDispatchSupplementaryServicesGetCallBarringStatus, |
|
48 public MLtsyDispatchSupplementaryServicesSetCallBarringStatus, |
|
49 public MLtsyDispatchSupplementaryServicesSetCallForwardingStatus, |
|
50 public MLtsyDispatchSupplementaryServicesSetCallWaitingStatus, |
|
51 public MLtsyDispatchSupplementaryServicesSetSsPassword, |
|
52 public MLtsyDispatchSupplementaryServicesGetCallForwardingStatus, |
|
53 public MLtsyDispatchSupplementaryServicesSendUssdMessage, |
|
54 public MLtsyDispatchSupplementaryServicesSendUssdMessageNoFdnCheck, |
|
55 public MLtsyDispatchSupplementaryServicesSendUssdRelease, |
|
56 public MLtsyDispatchSupplementaryServicesClearBlacklist |
|
57 |
|
58 { |
|
59 public: |
|
60 |
|
61 virtual ~CLtsySupplementaryServicesHandler(); |
|
62 static CLtsySupplementaryServicesHandler* NewL(CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
63 static CLtsySupplementaryServicesHandler* NewLC(CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
64 |
|
65 // From MIsDispatchInterfaceSupported |
|
66 virtual TBool IsInterfaceSupported(TLtsyDispatchInterfaceApiId aDispatchApiId); |
|
67 void IsCallbackIndicatorSupported(TLtsyDispatchIndIdGroup aIdGroup, TUint32& aIndIdBitMask); |
|
68 |
|
69 |
|
70 |
|
71 // From MLtsyDispatchSupplementaryServicesSendNetworkServiceRequestNoFdnCheck |
|
72 virtual TInt HandleSendNetworkServiceRequestNoFdnCheckReqL(const TDesC& aRequest); |
|
73 |
|
74 // From MLtsyDispatchSupplementaryServicesGetCallWaitingStatus |
|
75 virtual TInt HandleGetCallWaitingStatusReqL(); |
|
76 |
|
77 // From MLtsyDispatchSupplementaryServicesSendNetworkServiceRequest |
|
78 virtual TInt HandleSendNetworkServiceRequestReqL(const TDesC& aRequest); |
|
79 |
|
80 // From MLtsyDispatchSupplementaryServicesGetCallBarringStatus |
|
81 virtual TInt HandleGetCallBarringStatusReqL(RMobilePhone::TMobilePhoneCBCondition aCondition); |
|
82 |
|
83 // From MLtsyDispatchSupplementaryServicesSetCallBarringStatus |
|
84 virtual TInt HandleSetCallBarringStatusReqL(RMobilePhone::TMobilePhoneCBCondition aCondition, |
|
85 RMobilePhone::TMobilePhoneServiceAction aAction, |
|
86 RMobilePhone::TMobileService aGroup, |
|
87 const TDesC& aPassword); |
|
88 |
|
89 // From MLtsyDispatchSupplementaryServicesSetCallForwardingStatus |
|
90 virtual TInt HandleSetCallForwardingStatusReqL(RMobilePhone::TMobilePhoneCFCondition aCondition, |
|
91 RMobilePhone::TMobileService aServiceGroup, |
|
92 RMobilePhone::TMobilePhoneServiceAction aAction, |
|
93 const TDesC& aNumber, |
|
94 TInt aTimeout); |
|
95 |
|
96 // From MLtsyDispatchSupplementaryServicesSetCallWaitingStatus |
|
97 virtual TInt HandleSetCallWaitingStatusReqL(RMobilePhone::TMobileService aService, |
|
98 RMobilePhone::TMobilePhoneServiceAction aAction); |
|
99 |
|
100 // From MLtsyDispatchSupplementaryServicesSetSsPassword |
|
101 virtual TInt HandleSetSsPasswordReqL(const TDesC& aOldPassword, |
|
102 const TDesC& aNewPassword, |
|
103 MLtsyDispatchSupplementaryServicesSetSsPassword::TServiceType aService); |
|
104 |
|
105 // From MLtsyDispatchSupplementaryServicesGetCallForwardingStatus |
|
106 virtual TInt HandleGetCallForwardingStatusReqL(RMobilePhone::TMobilePhoneCFCondition aCondition, RMobilePhone::TMobileService aService); |
|
107 |
|
108 // From MLtsyDispatchSupplementaryServicesSendUssdMessage |
|
109 virtual TInt HandleSendUssdMessageReqL(const TDesC8& aData, TUint8 aDcs, |
|
110 RMobileUssdMessaging::TMobileUssdDataFormat aFormat, RMobileUssdMessaging::TMobileUssdMessageType aType); |
|
111 |
|
112 // From MLtsyDispatchSupplementaryServicesSendUssdMessagenoFdnCheck |
|
113 virtual TInt HandleSendUssdMessageNoFdnCheckReqL(const TDesC8& aData, TUint8 aDcs, |
|
114 RMobileUssdMessaging::TMobileUssdDataFormat aFormat, RMobileUssdMessaging::TMobileUssdMessageType aType); |
|
115 |
|
116 // From MLtsyDispatchSupplementaryServicesSendUssdRelease |
|
117 virtual TInt HandleSendUssdReleaseReqL(); |
|
118 |
|
119 // From MLtsyDispatchSupplementaryServicesClearBlacklist |
|
120 virtual TInt HandleClearBlacklistReqL(); |
|
121 |
|
122 |
|
123 private: |
|
124 |
|
125 CLtsySupplementaryServicesHandler(CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
126 void ConstructL(); |
|
127 |
|
128 private: |
|
129 |
|
130 // Not owned |
|
131 |
|
132 /** |
|
133 * Callback object in the CTSY Dispatcher. |
|
134 * |
|
135 * Used to complete a request back to the CTSY Dispatcher. |
|
136 */ |
|
137 CCtsyDispatcherCallback& iCtsyDispatcherCallback; |
|
138 |
|
139 public: |
|
140 |
|
141 |
|
142 }; // class CLtsySupplementaryServicesHandler |
|
143 |
|
144 #endif // __CLTSYDISPATCHSUPPLEMENTARYSERVICESHANDLER_H_ |
|
145 |
|