|
1 /* |
|
2 * Copyright (c) 2003-2005 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: Implementation of the PhCltExtension interface. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CPHCLTCOMHANDLIMPLEMENTATION_H |
|
21 #define CPHCLTCOMHANDLIMPLEMENTATION_H |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 #include "RPhCltCommandHandler.h" |
|
27 #include "RPhCltCommandHandlerNotify.h" |
|
28 #include "RPhCltServer.h" |
|
29 |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Implementation of the CPhCltCommandHandler interface. |
|
35 * |
|
36 * |
|
37 * @lib PhoneClient.lib |
|
38 * @since 3.2 |
|
39 */ |
|
40 NONSHARABLE_CLASS( CPhCltCommandHandlerImplementation ) |
|
41 : public CPhCltCommandHandler |
|
42 { |
|
43 public: // Constructors and destructor |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 */ |
|
48 static CPhCltCommandHandlerImplementation* NewL(); |
|
49 |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 virtual ~CPhCltCommandHandlerImplementation(); |
|
55 |
|
56 |
|
57 public: // Functions from base classes |
|
58 |
|
59 /** |
|
60 * @see CPhCltCommandHandler. |
|
61 */ |
|
62 void Atd( |
|
63 TRequestStatus& aStatus, |
|
64 const TPhCltTelephoneNumber& aTelephoneNumber ); |
|
65 |
|
66 |
|
67 /** |
|
68 * @see CPhCltCommandHandler. |
|
69 */ |
|
70 void Ata( |
|
71 TRequestStatus& aStatus ); |
|
72 |
|
73 |
|
74 /** |
|
75 * @see CPhCltCommandHandler. |
|
76 */ |
|
77 void Chld( |
|
78 TRequestStatus& aStatus, |
|
79 const TPhCltChldCommand aChldCommand, |
|
80 const TUint aCallNumber ); |
|
81 |
|
82 |
|
83 /** |
|
84 * @see CPhCltCommandHandler. |
|
85 */ |
|
86 void Chup( |
|
87 TRequestStatus& aStatus ); |
|
88 |
|
89 |
|
90 /** |
|
91 * @see CPhCltCommandHandler. |
|
92 */ |
|
93 void Vts( |
|
94 TRequestStatus& aStatus, |
|
95 const TPhCltDtmfTone aDtmfTone, |
|
96 const TPhCltDtmfAction aAction ); |
|
97 |
|
98 /** |
|
99 * @see CPhCltCommandHandler. |
|
100 */ |
|
101 void CancelAsyncRequest( |
|
102 const TPhCltComHandCommand aReqToCancel ); |
|
103 |
|
104 /** |
|
105 * @see CPhCltCommandHandler. |
|
106 */ |
|
107 void MuteMicrophone( TRequestStatus& aStatus, const TBool aMute ); |
|
108 |
|
109 /** |
|
110 * @see CPhCltCommandHandler. |
|
111 */ |
|
112 void MuteRingingTone( TRequestStatus& aStatus ); |
|
113 |
|
114 private: |
|
115 |
|
116 /** |
|
117 * C++ constructor. |
|
118 */ |
|
119 CPhCltCommandHandlerImplementation(); |
|
120 |
|
121 |
|
122 /** |
|
123 * By default Symbian 2nd phase constructor is private. |
|
124 */ |
|
125 void ConstructL(); |
|
126 |
|
127 |
|
128 private: // Data |
|
129 |
|
130 // The command handler to perform requests. |
|
131 RPhCltCommandHandler iCommandHandler; |
|
132 |
|
133 //RPhCltServer class instance creates phonesession |
|
134 RPhCltServer iServer; |
|
135 |
|
136 }; |
|
137 |
|
138 |
|
139 #endif // CPHCLTCOMHANDLIMPLEMENTATION_H |
|
140 |
|
141 |
|
142 // End of File |