|
33
|
1 |
/*
|
|
|
2 |
* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
|
|
|
3 |
* All rights reserved.
|
|
|
4 |
* This component and the accompanying materials are made available
|
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
|
6 |
* which accompanies this distribution, and is available
|
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
|
8 |
*
|
|
|
9 |
* Initial Contributors:
|
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
|
11 |
*
|
|
|
12 |
* Contributors:
|
|
|
13 |
*
|
|
|
14 |
* Description: Handles CallControl request that need SAT perform
|
|
|
15 |
*
|
|
|
16 |
*/
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
#ifndef CCALLCONTROLREQUESTHANDLER_H
|
|
|
20 |
#define CCALLCONTROLREQUESTHANDLER_H
|
|
|
21 |
|
|
|
22 |
#include <e32base.h>
|
|
|
23 |
#include "msatmultimodeapi.h"
|
|
|
24 |
|
|
|
25 |
class CCallControlHandler;
|
|
|
26 |
|
|
|
27 |
/**
|
|
|
28 |
* This is the handler for the ETel MM api Request.
|
|
|
29 |
* This active objects is registered with ETelMM Api to send request and
|
|
|
30 |
* receive notifications about some Request Complete.
|
|
|
31 |
*
|
|
|
32 |
* @lib CallControlCmd
|
|
|
33 |
* @since S60 v5.0.1
|
|
|
34 |
*/
|
|
|
35 |
|
|
|
36 |
class CCallControlRequestHandler : public CActive
|
|
|
37 |
{
|
|
|
38 |
|
|
|
39 |
public:
|
|
|
40 |
|
|
|
41 |
/**
|
|
|
42 |
* Two-phased constructor.
|
|
|
43 |
* @param aPhone A reference to the MSatMultiModeApi.
|
|
|
44 |
* @param aDispatcher Pointer to Ss handler
|
|
|
45 |
* @return a pointer to the newly created object.
|
|
|
46 |
*/
|
|
|
47 |
static CCallControlRequestHandler* NewL( MSatMultiModeApi& aPhone,
|
|
|
48 |
CCallControlHandler* aDispatcher );
|
|
|
49 |
|
|
|
50 |
/**
|
|
|
51 |
* Destructor.
|
|
|
52 |
*/
|
|
|
53 |
virtual ~CCallControlRequestHandler();
|
|
|
54 |
|
|
|
55 |
/**
|
|
|
56 |
* Access RMobileCall::DialNoFdnCheck by MSatMultiModeApi
|
|
|
57 |
* for the paramter information please see the etelmm.h
|
|
|
58 |
*/
|
|
|
59 |
void DialNumber( const TDesC8& aCallParams, const TDesC& aTelNumber );
|
|
|
60 |
|
|
|
61 |
/**
|
|
|
62 |
* Starts send the SS Request (No FDN check).
|
|
|
63 |
* for the paramter information please see the etelmm.h
|
|
|
64 |
*/
|
|
|
65 |
void SendSs( const TDesC& aServiceString );
|
|
|
66 |
|
|
|
67 |
/**
|
|
|
68 |
* Starts send the USSD Request (No FDN check).
|
|
|
69 |
* for the paramter information please see the etelmm.h
|
|
|
70 |
*/
|
|
|
71 |
void SendUssd( const TDesC8& aMsgData, const TDesC8& aMsgAttributes );
|
|
|
72 |
|
|
|
73 |
/**
|
|
|
74 |
* Cancel the asynchronous operations that required to the ETel MM api
|
|
|
75 |
* for the paramter information please see the etelmm.h
|
|
|
76 |
*/
|
|
|
77 |
void CancelOperation( TInt aOperationType );
|
|
|
78 |
|
|
|
79 |
protected:
|
|
|
80 |
|
|
|
81 |
/**
|
|
|
82 |
* From CActive, handles the request completion.
|
|
|
83 |
*/
|
|
|
84 |
void RunL();
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
/**
|
|
|
88 |
* From CActive, handle the request cancel
|
|
|
89 |
*/
|
|
|
90 |
void DoCancel();
|
|
|
91 |
|
|
|
92 |
private:
|
|
|
93 |
|
|
|
94 |
/**
|
|
|
95 |
* C++ default constructor.
|
|
|
96 |
* @param aPriority An active object priority value.
|
|
|
97 |
* @param aPhone A reference to MSatMultiModeApi.
|
|
|
98 |
*/
|
|
|
99 |
CCallControlRequestHandler( MSatMultiModeApi& aPhone,
|
|
|
100 |
CCallControlHandler* aDispatcher );
|
|
|
101 |
|
|
|
102 |
/**
|
|
|
103 |
* Two phase contruction.
|
|
|
104 |
*/
|
|
|
105 |
void ConstructL();
|
|
|
106 |
|
|
|
107 |
private: // Data
|
|
|
108 |
|
|
|
109 |
/**
|
|
|
110 |
* Reference to the MSatMultiModeApi
|
|
|
111 |
*/
|
|
|
112 |
MSatMultiModeApi& iPhone;
|
|
|
113 |
|
|
|
114 |
/**
|
|
|
115 |
* Result of the operations
|
|
|
116 |
*/
|
|
|
117 |
TInt iCcStatus;
|
|
|
118 |
|
|
|
119 |
/**
|
|
|
120 |
* Pointer to SendSs command handler
|
|
|
121 |
*/
|
|
|
122 |
CCallControlHandler* iDispatcher;
|
|
|
123 |
};
|
|
|
124 |
|
|
|
125 |
#endif // CCALLCONTROLREQUESTHANDLER_H
|