|
1 /* |
|
2 * Copyright (c) 2002-2007 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: GetInkeyHandler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CGETINKEYHANDLER_H |
|
20 #define CGETINKEYHANDLER_H |
|
21 |
|
22 #include "CSatCommandHandler.h" |
|
23 |
|
24 #include <etelsat.h> |
|
25 |
|
26 class MSatUtils; |
|
27 |
|
28 /** |
|
29 * Command handler for GetInkey command. |
|
30 * |
|
31 * @lib GetInkeyCmd.lib |
|
32 * @since S60 v3.0 |
|
33 */ |
|
34 class CGetInkeyHandler : public CSatCommandHandler |
|
35 { |
|
36 |
|
37 public: |
|
38 |
|
39 static CGetInkeyHandler* NewL( MSatUtils* aUtils ); |
|
40 |
|
41 virtual ~CGetInkeyHandler(); |
|
42 |
|
43 // from base class MSatCommand |
|
44 |
|
45 /** |
|
46 * From MSatCommand |
|
47 * Response from the client. |
|
48 * |
|
49 */ |
|
50 void ClientResponse(); |
|
51 |
|
52 protected: |
|
53 |
|
54 // from base class CActive |
|
55 |
|
56 /** |
|
57 * From CActive. |
|
58 * Cancels the usat request. |
|
59 * |
|
60 */ |
|
61 void DoCancel(); |
|
62 |
|
63 // from base class CSatCommandHandler |
|
64 |
|
65 /** |
|
66 * From CSatCommandHandler. |
|
67 * Requests the command notification. |
|
68 * |
|
69 * @param aStatus Request status |
|
70 */ |
|
71 void IssueUSATRequest( TRequestStatus& aStatus ); |
|
72 |
|
73 /** |
|
74 * From CSatCommandHandler. |
|
75 * Precheck before executing the command. |
|
76 * |
|
77 * @return TBool indicating is this command allowed to execute. |
|
78 */ |
|
79 TBool CommandAllowed(); |
|
80 |
|
81 /** |
|
82 * From CSatCommandHandler. |
|
83 * Need for ui session. |
|
84 * |
|
85 * @return TBool indicating need of ui session. |
|
86 */ |
|
87 TBool NeedUiSession(); |
|
88 |
|
89 /** |
|
90 * From CSatCommandHandler. |
|
91 * Called when USAT API notifies that command. |
|
92 * |
|
93 */ |
|
94 void HandleCommand(); |
|
95 |
|
96 /** |
|
97 * From CSatCommandHandler. |
|
98 * Indicates the failure of launching ui client. |
|
99 * |
|
100 */ |
|
101 void UiLaunchFailed(); |
|
102 |
|
103 private: |
|
104 |
|
105 CGetInkeyHandler(); |
|
106 |
|
107 void ConstructL(); |
|
108 |
|
109 private: // data |
|
110 |
|
111 /** |
|
112 * SetUpCall command data. |
|
113 */ |
|
114 RSat::TGetInkeyV2 iGetInkeyData; |
|
115 |
|
116 /** |
|
117 * SetUpCall command package. |
|
118 */ |
|
119 RSat::TGetInkeyV2Pckg iGetInkeyPckg; |
|
120 |
|
121 /** |
|
122 * Response from client. |
|
123 */ |
|
124 RSat::TGetInkeyRspV2 iGetInkeyRsp; |
|
125 |
|
126 /** |
|
127 * Response package. |
|
128 */ |
|
129 RSat::TGetInkeyRspV2Pckg iGetInkeyRspPckg; |
|
130 |
|
131 /** |
|
132 * Flag to signal that command has icon data |
|
133 * To be removed when icons are allowed in this command |
|
134 */ |
|
135 TBool iIconCommand; |
|
136 |
|
137 }; |
|
138 |
|
139 #endif // CGETINKEYHANDLER_H |
|
140 |