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: MO Short Message Control command handler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CMOSMCONTROLHANDLER_H |
|
21 #define CMOSMCONTROLHANDLER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <etelsat.h> |
|
25 #include "CSatCommandHandler.h" |
|
26 #include "SatSTypes.h" |
|
27 |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class MSatUtils; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * Command handler for MO Short message control command |
|
36 * |
|
37 * @lib MoSmControlCmd.lib |
|
38 * @since Series 60 3.0 |
|
39 */ |
|
40 class CMoSmControlHandler : public CSatCommandHandler |
|
41 { |
|
42 public: // Constructors and destructor |
|
43 |
|
44 /** |
|
45 * Two-phased constructor. |
|
46 * @param aUtils Utils inteface |
|
47 */ |
|
48 static CMoSmControlHandler* NewL( MSatUtils* aUtils ); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CMoSmControlHandler(); |
|
54 |
|
55 public: // Functions from base classes |
|
56 |
|
57 /** |
|
58 * From MSatCommand. |
|
59 */ |
|
60 void ClientResponse(); |
|
61 |
|
62 protected: // Functions from base classes |
|
63 |
|
64 /** |
|
65 * From CActive Cancels the usat request. |
|
66 */ |
|
67 void DoCancel(); |
|
68 |
|
69 /** |
|
70 * From CSatCommandHandler Requests the command notification. |
|
71 * @param aStatus Request status to active object notification |
|
72 */ |
|
73 void IssueUSATRequest( TRequestStatus& aStatus ); |
|
74 |
|
75 /** |
|
76 * From CSatCommandHandler Precheck before executing the command. |
|
77 * @return Boolean indicating is this command allowed to execute. |
|
78 */ |
|
79 TBool CommandAllowed(); |
|
80 |
|
81 /** |
|
82 * From CSatCommandHandler Need for ui session. |
|
83 * @return Boolean indicating does this command need UI session. |
|
84 */ |
|
85 TBool NeedUiSession(); |
|
86 |
|
87 /** |
|
88 * From CSatCommandHandler Called when USAT API notifies that command. |
|
89 */ |
|
90 void HandleCommand(); |
|
91 |
|
92 /** |
|
93 * From CSatCommandHandler. Indicates the failure of launching ui client. |
|
94 */ |
|
95 void UiLaunchFailed(); |
|
96 |
|
97 private: // Default functions |
|
98 |
|
99 /** |
|
100 * C++ default constructor |
|
101 */ |
|
102 CMoSmControlHandler(); |
|
103 |
|
104 /** |
|
105 * By default Symbian 2nd phase constructor is private. |
|
106 */ |
|
107 void ConstructL(); |
|
108 |
|
109 private: // Data |
|
110 |
|
111 // MoSmControl command data. |
|
112 RSat::TMoSmControlV1 iMoSmControlData; |
|
113 // MoSmControl command package. |
|
114 RSat::TMoSmControlV1Pckg iMoSmControlPckg; |
|
115 // MoSmControl command data for SatClient. |
|
116 TSatNotificationV1 iMoSmControlSendData; |
|
117 // MoSmControl command package for SatClient. |
|
118 TSatNotificationV1Pckg iMoSmControlSendPckg; |
|
119 // MoSmControl command response data from SatClient |
|
120 TSatNotificationRspV1 iMoSmControlUiRespData; |
|
121 // MoSmControl command response package from SatClient |
|
122 TSatNotificationRspV1Pckg iMoSmControlUiRespPckg; |
|
123 // Indicates is UI needed or not |
|
124 TBool iNeedUiSession; |
|
125 |
|
126 }; |
|
127 |
|
128 #endif // CMOSMCONTROLHANDLER_H |
|
129 |
|
130 // End of File |
|