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 |
//
|
|
15 |
|
|
16 |
#ifndef __CSUPPLEMENTARYSERVICESDISPATCHER_H_
|
|
17 |
#define __CSUPPLEMENTARYSERVICESDISPATCHER_H_
|
|
18 |
|
|
19 |
// INCLUDES
|
|
20 |
#include <e32std.h>
|
|
21 |
#include <e32base.h>
|
|
22 |
#include <e32def.h>
|
|
23 |
#include <etelmm.h>
|
|
24 |
#include <mmlist.h>
|
|
25 |
#include <ctsy/rmmcustomapi.h>
|
|
26 |
|
|
27 |
#include <ctsy/ltsy/mltsydispatchfactory.h>
|
|
28 |
|
|
29 |
|
|
30 |
#include "requestqueueoneshot.h"
|
|
31 |
#include <ctsy/ltsy/ltsylogger.h>
|
|
32 |
#include "mdispatchercallback.h"
|
|
33 |
|
|
34 |
// FORWARD DECLARATIONS
|
|
35 |
class CMmDataPackage;
|
|
36 |
class MmMessageManagerCallback;
|
|
37 |
class TDispatcherHolder;
|
|
38 |
|
|
39 |
class MLtsyDispatchSupplementaryServicesSendNetworkServiceRequestNoFdnCheck;
|
|
40 |
class MLtsyDispatchSupplementaryServicesGetCallWaitingStatus;
|
|
41 |
class MLtsyDispatchSupplementaryServicesSendNetworkServiceRequest;
|
|
42 |
class MLtsyDispatchSupplementaryServicesGetCallBarringStatus;
|
|
43 |
class MLtsyDispatchSupplementaryServicesSetCallBarringStatus;
|
|
44 |
class MLtsyDispatchSupplementaryServicesSetCallForwardingStatus;
|
|
45 |
class MLtsyDispatchSupplementaryServicesSetCallWaitingStatus;
|
|
46 |
class MLtsyDispatchSupplementaryServicesSetSsPassword;
|
|
47 |
class MLtsyDispatchSupplementaryServicesGetCallForwardingStatus;
|
|
48 |
class MLtsyDispatchSupplementaryServicesSendUssdMessage;
|
|
49 |
class MLtsyDispatchSupplementaryServicesSendUssdMessageNoFdnCheck;
|
|
50 |
class MLtsyDispatchSupplementaryServicesSendUssdRelease;
|
|
51 |
class MLtsyDispatchSupplementaryServicesClearBlacklist;
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
// CLASS DECLARATION
|
|
56 |
|
|
57 |
/**
|
|
58 |
* This class is responsible for packing and unpacking data belonging
|
|
59 |
* to SupplementaryServices related requests to the Licensee LTSY.
|
|
60 |
*/
|
|
61 |
class CSupplementaryServicesDispatcher : public CBase, public MDispatcherCallback
|
|
62 |
{
|
|
63 |
public:
|
|
64 |
|
|
65 |
virtual ~CSupplementaryServicesDispatcher();
|
|
66 |
|
|
67 |
static CSupplementaryServicesDispatcher* NewL(
|
|
68 |
MLtsyDispatchFactoryV1& aLtsyFactory,
|
|
69 |
MmMessageManagerCallback& aMessageManagerCallback,
|
|
70 |
CRequestQueueOneShot& aRequestAsyncOneShot);
|
|
71 |
|
|
72 |
static CSupplementaryServicesDispatcher* NewLC(
|
|
73 |
MLtsyDispatchFactoryV1& aLtsyFactory,
|
|
74 |
MmMessageManagerCallback& aMessageManagerCallback,
|
|
75 |
CRequestQueueOneShot& aRequestAsyncOneShot);
|
|
76 |
|
|
77 |
// Dispatcher functions for dispatching requests DOWN to the Licensee LTSY
|
|
78 |
|
|
79 |
TInt DispatchSendNetworkServiceRequestNoFdnCheckL(const CMmDataPackage* aDataPackage);
|
|
80 |
TInt DispatchGetCallWaitingStatusL();
|
|
81 |
TInt DispatchSendNetworkServiceRequestL(const CMmDataPackage* aDataPackage);
|
|
82 |
TInt DispatchGetCallBarringStatusL(const CMmDataPackage* aDataPackage);
|
|
83 |
TInt DispatchSetCallBarringStatusL(const CMmDataPackage* aDataPackage);
|
|
84 |
TInt DispatchSetCallForwardingStatusL(const CMmDataPackage* aDataPackage);
|
|
85 |
TInt DispatchSetCallWaitingStatusL(const CMmDataPackage* aDataPackage);
|
|
86 |
TInt DispatchSetSsPasswordL(const CMmDataPackage* aDataPackage);
|
|
87 |
TInt DispatchGetCallForwardingStatusL(const CMmDataPackage* aDataPackage);
|
|
88 |
TInt DispatchSendUssdMessageL(const CMmDataPackage* aDataPackage);
|
|
89 |
TInt DispatchSendUssdMessageNoFdnCheckL(const CMmDataPackage* aDataPackage);
|
|
90 |
TInt DispatchSendUssdReleaseL();
|
|
91 |
TInt DispatchClearBlacklistL();
|
|
92 |
|
|
93 |
|
|
94 |
// Complete functions for receiving completions UP from the Licensee LTSY
|
|
95 |
// via the CCtsyDispatcherCallback object.
|
|
96 |
|
|
97 |
void CallbackNotifyCallBarringStatusChange(TInt aError, RMobilePhone::TMobilePhoneCBCondition aCondition);
|
|
98 |
void CallbackReceiveUssdMessage(TInt aError, const TDesC8& aMessage, TUint8 aDcs,
|
|
99 |
RMobileUssdMessaging::TMobileUssdMessageType aType,
|
|
100 |
RMobileUssdMessaging::TMobileUssdDataFormat aFormat);
|
|
101 |
void CallbackNotifyCallWaitingStatusChange(TInt aError, RMobilePhone::TMobileService aServiceGroup, RMobilePhone::TMobilePhoneCWStatus aStatus);
|
|
102 |
void CallbackNotifyCallForwardingStatusChange(TInt aError, RMobilePhone::TMobilePhoneCFCondition aCallForwardingCondition);
|
|
103 |
void CallbackNotifyCallForwardingActive(TInt aError, RMobilePhone::TMobileService aServiceGroup, RMobilePhone::TMobilePhoneCFActive aActiveType);
|
|
104 |
void CallbackSendNetworkServiceRequestNoFdnCheck(TInt aError);
|
|
105 |
void CallbackGetCallWaitingStatus(TInt aError, const CMobilePhoneCWList& aCallWaitingList);
|
|
106 |
void CallbackSendNetworkServiceRequest(TInt aError);
|
|
107 |
void CallbackGetCallBarringStatus(TInt aError, const CMobilePhoneCBList& aCallBarringList);
|
|
108 |
void CallbackSetCallBarringStatus(TInt aError);
|
|
109 |
void CallbackSetCallForwardingStatus(TInt aError);
|
|
110 |
void CallbackSetCallWaitingStatus(TInt aError);
|
|
111 |
void CallbackSetSsPassword(TInt aError);
|
|
112 |
void CallbackGetCallForwardingStatus(TInt aError, const CMobilePhoneCFList& aCallForwardingList);
|
|
113 |
void CallbackSendUssdMessage(TInt aError);
|
|
114 |
void CallbackSendUssdMessageNoFdnCheck(TInt aError);
|
|
115 |
void CallbackSendUssdRelease(TInt aError, TUint8 aOpCode, const TDesC& aAdditionalInfo);
|
|
116 |
void CallbackClearBlacklist(TInt aError);
|
|
117 |
void CallbackGetDiagnosticOctets(TInt aError, TInt aCallId, TUint8 aOctet);
|
|
118 |
void CallbackNotifyAdditionalInfo(TInt aError, TUint8 aOperationCode, const TDesC8& aAdditionalInfo);
|
|
119 |
void CallbackNotifyRequestComplete(TInt aError, TInt aStatus);
|
|
120 |
void CallbackNotifyNetworkEventForwardMode(TInt aError, RMmCustomAPI::TSsType aType, RMmCustomAPI::TSsMode aMode, RMmCustomAPI::TSsForwMode aForwardMode);
|
|
121 |
void CallbackNotifyNetworkEventCallWaiting(TInt aError, RMmCustomAPI::TSsMode aMode, TBool aCallIsWaiting);
|
|
122 |
void CallbackNotifyNetworkEventHoldMode(TInt aError, RMmCustomAPI::TSsType aType, RMmCustomAPI::TSsMode aMode, RMmCustomAPI::TSsHoldMode aHoldMode);
|
|
123 |
void CallbackNotifyNetworkEventConfrence(TInt aError, RMmCustomAPI::TSsType aType, RMmCustomAPI::TSsMode aMode, TBool aConferenceIndicator);
|
|
124 |
void CallbackNotifyNetworkEventCug(TInt aError, RMmCustomAPI::TSsType aType, RMmCustomAPI::TSsMode aMode, TUint16 aCugIndex);
|
|
125 |
void CallbackNotifyNetworkEventClirSuppression(TInt aError, RMmCustomAPI::TSsMode aMode, TBool aClirSuppressionRejected);
|
|
126 |
void CallbackNotifyNetworkEventEctCallState(TInt aError, RMmCustomAPI::TSsType aType, RMmCustomAPI::TSsMode aMode, RMmCustomAPI::TSsEctState aEctCallState, RMmCustomAPI::TSsChoice aEctChoice, const TDesC& aRemotePartyNumber);
|
|
127 |
void CallbackNotifyNetworkEvent(TInt aError, RMmCustomAPI::TSsType aType, RMmCustomAPI::TSsMode aMode);
|
|
128 |
void CallbackNotifySendNetworkServiceRequest(TInt aError, RMobilePhone::TMobilePhoneNotifySendSSOperation aOperationCode, const TDesC& aAdditionalInfo);
|
|
129 |
|
|
130 |
|
|
131 |
// From MDispatcherCallback
|
|
132 |
void CallbackSync(CRequestQueueOneShot::TIpcDataPackage& aIpcDataPackage);
|
|
133 |
|
|
134 |
// Other public functions
|
|
135 |
void SetDispatcherHolder(TDispatcherHolder& aDispatcherHolder);
|
|
136 |
|
|
137 |
private:
|
|
138 |
|
|
139 |
CSupplementaryServicesDispatcher(MLtsyDispatchFactoryV1& aLtsyFactory,
|
|
140 |
MmMessageManagerCallback& aMessageManagerCallback,
|
|
141 |
CRequestQueueOneShot& aRequestAsyncOneShot);
|
|
142 |
|
|
143 |
void ConstructL();
|
|
144 |
|
|
145 |
private: // Not owned
|
|
146 |
|
|
147 |
MLtsyDispatchFactoryV1& iLtsyFactoryV1;
|
|
148 |
MmMessageManagerCallback& iMessageManagerCallback;
|
|
149 |
CRequestQueueOneShot& iRequestAsyncOneShot;
|
|
150 |
TDispatcherHolder* iDispatcherHolder;
|
|
151 |
|
|
152 |
// Interfaces in the Licensee LTSY, not owned by this object
|
|
153 |
|
|
154 |
MLtsyDispatchSupplementaryServicesSendNetworkServiceRequestNoFdnCheck* iLtsyDispatchSupplementaryServicesSendNetworkServiceRequestNoFdnCheck;
|
|
155 |
MLtsyDispatchSupplementaryServicesGetCallWaitingStatus* iLtsyDispatchSupplementaryServicesGetCallWaitingStatus;
|
|
156 |
MLtsyDispatchSupplementaryServicesSendNetworkServiceRequest* iLtsyDispatchSupplementaryServicesSendNetworkServiceRequest;
|
|
157 |
MLtsyDispatchSupplementaryServicesGetCallBarringStatus* iLtsyDispatchSupplementaryServicesGetCallBarringStatus;
|
|
158 |
MLtsyDispatchSupplementaryServicesSetCallBarringStatus* iLtsyDispatchSupplementaryServicesSetCallBarringStatus;
|
|
159 |
MLtsyDispatchSupplementaryServicesSetCallForwardingStatus* iLtsyDispatchSupplementaryServicesSetCallForwardingStatus;
|
|
160 |
MLtsyDispatchSupplementaryServicesSetCallWaitingStatus* iLtsyDispatchSupplementaryServicesSetCallWaitingStatus;
|
|
161 |
MLtsyDispatchSupplementaryServicesSetSsPassword* iLtsyDispatchSupplementaryServicesSetSsPassword;
|
|
162 |
MLtsyDispatchSupplementaryServicesGetCallForwardingStatus* iLtsyDispatchSupplementaryServicesGetCallForwardingStatus;
|
|
163 |
MLtsyDispatchSupplementaryServicesSendUssdMessage* iLtsyDispatchSupplementaryServicesSendUssdMessage;
|
|
164 |
MLtsyDispatchSupplementaryServicesSendUssdMessageNoFdnCheck* iLtsyDispatchSupplementaryServicesSendUssdMessageNoFdnCheck;
|
|
165 |
MLtsyDispatchSupplementaryServicesSendUssdRelease* iLtsyDispatchSupplementaryServicesSendUssdRelease;
|
|
166 |
MLtsyDispatchSupplementaryServicesClearBlacklist* iLtsyDispatchSupplementaryServicesClearBlacklist;
|
|
167 |
|
|
168 |
|
|
169 |
}; // class CSupplementaryServicesDispatcher
|
|
170 |
|
|
171 |
#endif // __CSUPPLEMENTARYSERVICESDISPATCHER_H_
|
|
172 |
|