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: SetUpEventList command handler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CSETUPEVENTLISTHANDLER_H |
|
21 #define CSETUPEVENTLISTHANDLER_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 SetUpEventList command. |
|
34 * |
|
35 * @lib SetUpEventListCmd.lib |
|
36 * @since Series 60 3.0 |
|
37 */ |
|
38 class CSetUpEventListHandler : public CSatCommandHandler |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 * @param aUtils SAT Utils interface |
|
45 */ |
|
46 static CSetUpEventListHandler* NewL( MSatUtils* aUtils ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CSetUpEventListHandler(); |
|
52 |
|
53 public: // Functions from base classes |
|
54 |
|
55 /** |
|
56 * From MSatEventObserver. Notification of Refresh actions. |
|
57 * @param aEvent Identifies the event. |
|
58 */ |
|
59 void Event( TInt aEvent ); |
|
60 |
|
61 protected: // Functions from base classes |
|
62 |
|
63 /** |
|
64 * From CActive Cancels the usat request. |
|
65 */ |
|
66 void DoCancel(); |
|
67 |
|
68 /** |
|
69 * From CSatCommandHandler Requests the command notification. |
|
70 * @param aStatus Request status |
|
71 */ |
|
72 void IssueUSATRequest( TRequestStatus& aStatus ); |
|
73 |
|
74 /** |
|
75 * From CSatCommandHandler Precheck before executing the command. |
|
76 * @return TBool indicating command is currently allowed. |
|
77 */ |
|
78 TBool CommandAllowed(); |
|
79 |
|
80 /** |
|
81 * From CSatCommandHandler Need for ui session. |
|
82 * @return TBool indicating need of ui session. |
|
83 */ |
|
84 TBool NeedUiSession(); |
|
85 |
|
86 /** |
|
87 * From CSatCommandHandler Called when USAT API notifies that command. |
|
88 */ |
|
89 void HandleCommand(); |
|
90 |
|
91 /** |
|
92 * From CSatCommandHandler Never called since this command doesn't need UI |
|
93 */ |
|
94 void UiLaunchFailed(); |
|
95 |
|
96 private: |
|
97 |
|
98 /** |
|
99 * C++ default constructor. |
|
100 */ |
|
101 CSetUpEventListHandler(); |
|
102 |
|
103 /** |
|
104 * By default Symbian 2nd phase constructor is private. |
|
105 */ |
|
106 void ConstructL(); |
|
107 |
|
108 private: // Data |
|
109 |
|
110 // SetUpEventList command data. |
|
111 RSat::TSetUpEventListV1 iSetUpEventListData; |
|
112 |
|
113 // SetUpEventList command package. |
|
114 RSat::TSetUpEventListV1Pckg iSetUpEventListPckg; |
|
115 |
|
116 // Response from client |
|
117 RSat::TSetUpEventListRspV1 iSetUpEventListRsp; |
|
118 |
|
119 // Response package. |
|
120 RSat::TSetUpEventListRspV1Pckg iSetUpEventListRspPckg; |
|
121 |
|
122 }; |
|
123 |
|
124 #endif // CSETUPEVENTLISTHANDLER_H |
|
125 |
|
126 // End of File |
|