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