|
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: ProvideLocalInfo command handler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPROVIDELOCALINFOHANDLER_H |
|
20 #define CPROVIDELOCALINFOHANDLER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <etelsat.h> |
|
24 #include "CSatCommandHandler.h" |
|
25 |
|
26 // FORWARD DECLARATION |
|
27 class MSatUtils; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * Command handler for ProvideLocalInfo command. |
|
33 * |
|
34 * @lib ProvideLocalInfo.lib |
|
35 * @since Series 60 3.0 |
|
36 */ |
|
37 class CProvideLocalInfoHandler : public CSatCommandHandler |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 * @param aUtils Utils inteface. |
|
44 */ |
|
45 static CProvideLocalInfoHandler* NewL( MSatUtils* aUtils ); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 virtual ~CProvideLocalInfoHandler(); |
|
51 |
|
52 public: // Functions from base classes |
|
53 |
|
54 /** |
|
55 * From MSatCommand. |
|
56 */ |
|
57 void ClientResponse(); |
|
58 |
|
59 protected: // Functions from base classes |
|
60 |
|
61 /** |
|
62 * From CActive Cancels the usat request. |
|
63 */ |
|
64 void DoCancel(); |
|
65 |
|
66 /** |
|
67 * From CSatCommandHandler Requests the command notification. |
|
68 * @param aStatus Request status to active object notification |
|
69 */ |
|
70 void IssueUSATRequest( TRequestStatus& aStatus ); |
|
71 |
|
72 /** |
|
73 * From CSatCommandHandler Precheck before executing the command. |
|
74 * @return Boolean indicating is this command allowed to execute. |
|
75 */ |
|
76 TBool CommandAllowed(); |
|
77 |
|
78 /** |
|
79 * From CSatCommandHandler Need for ui session. |
|
80 * @return Boolean indicating does this command need UI session. |
|
81 */ |
|
82 TBool NeedUiSession(); |
|
83 |
|
84 /** |
|
85 * From CSatCommandHandler Called when USAT API. |
|
86 * notifies that command. |
|
87 */ |
|
88 void HandleCommand(); |
|
89 |
|
90 /** |
|
91 * From CSatCommandHandler Indicates the failure |
|
92 * of launching ui client. |
|
93 */ |
|
94 void UiLaunchFailed(); |
|
95 |
|
96 private: |
|
97 |
|
98 /** |
|
99 * C++ default constructor. |
|
100 */ |
|
101 CProvideLocalInfoHandler(); |
|
102 |
|
103 protected: // Data |
|
104 |
|
105 // The data structure for the command data |
|
106 RSat::TLocalInfoV3 iLocalInfoData; |
|
107 |
|
108 // The data package for IPC |
|
109 RSat::TLocalInfoV3Pckg iLocalInfoPckg; |
|
110 |
|
111 // Response from client |
|
112 RSat::TLocalInfoRspV3 iLocalInfoRsp; |
|
113 |
|
114 // Response package. |
|
115 RSat::TLocalInfoRspV3Pckg iLocalInfoRspPckg; |
|
116 |
|
117 }; |
|
118 |
|
119 #endif // CPROVIDELOCALINFOHANDLER_H |
|
120 |
|
121 // End of File |