|
1 /* |
|
2 * Copyright (c) 2002-2006 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: SelectItem command handler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CSELECTITEMHANDLER_H |
|
21 #define CSELECTITEMHANDLER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <etelsat.h> |
|
25 #include "CSatCommandHandler.h" |
|
26 |
|
27 // FORWARD DECLARATION |
|
28 class MSatUtils; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Command handler for SelectItem command. |
|
34 * |
|
35 * @lib SelectItemCmd.lib |
|
36 * @since Series 60 3.0 |
|
37 */ |
|
38 class CSelectItemHandler : public CSatCommandHandler |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 * @param aUtils Utils inteface. |
|
45 */ |
|
46 static CSelectItemHandler* NewL( MSatUtils* aUtils ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CSelectItemHandler(); |
|
52 |
|
53 public: // Functions from base classes |
|
54 |
|
55 /** |
|
56 * From MSatCommand. |
|
57 */ |
|
58 void ClientResponse(); |
|
59 |
|
60 protected: // Functions from base classes |
|
61 |
|
62 /** |
|
63 * From CActive Cancels the usat request. |
|
64 */ |
|
65 void DoCancel(); |
|
66 |
|
67 /** |
|
68 * From CSatCommandHandler Requests the command notification. |
|
69 * @param aStatus Request status to active object notification |
|
70 */ |
|
71 void IssueUSATRequest( TRequestStatus& aStatus ); |
|
72 |
|
73 /** |
|
74 * From CSatCommandHandler Precheck before executing the command. |
|
75 * @return Boolean indicating is this command allowed to execute. |
|
76 */ |
|
77 TBool CommandAllowed(); |
|
78 |
|
79 /** |
|
80 * From CSatCommandHandler Need for ui session. |
|
81 * @return Boolean indicating does this command need UI session. |
|
82 */ |
|
83 TBool NeedUiSession(); |
|
84 |
|
85 /** |
|
86 * From CSatCommandHandler Called when USAT API. |
|
87 * notifies that command. |
|
88 */ |
|
89 void HandleCommand(); |
|
90 |
|
91 /** |
|
92 * From CSatCommandHandler Indicates the failure |
|
93 * of launching ui client. |
|
94 */ |
|
95 void UiLaunchFailed(); |
|
96 |
|
97 private: |
|
98 |
|
99 /** |
|
100 * C++ default constructor. |
|
101 */ |
|
102 CSelectItemHandler(); |
|
103 |
|
104 /** |
|
105 * By default Symbian 2nd phase constructor is private. |
|
106 */ |
|
107 void ConstructL(); |
|
108 |
|
109 protected: // Data |
|
110 |
|
111 // SetUpCall command data. |
|
112 RSat::TSelectItemV2 iSelectItemData; |
|
113 |
|
114 // SetUpCall command package. |
|
115 RSat::TSelectItemV2Pckg iSelectItemPckg; |
|
116 |
|
117 // Response from client |
|
118 RSat::TSelectItemRspV1 iSelectItemRsp; |
|
119 |
|
120 // Response package. |
|
121 RSat::TSelectItemRspV1Pckg iSelectItemRspPckg; |
|
122 |
|
123 // Flag to signal that command has icon data |
|
124 // To be removed when icons are allowed in this command |
|
125 TBool iIconCommand; |
|
126 |
|
127 }; |
|
128 |
|
129 #endif // CSELECTITEMHANDLER_H |
|
130 |
|
131 // End of File |