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