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: Launguage Notification command handler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CLANGUAGENOTIFICATIONHANDLER_H |
|
20 #define CLANGUAGENOTIFICATIONHANDLER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <etelsat.h> |
|
24 #include "CSatCommandHandler.h" |
|
25 #include "SatSTypes.h" |
|
26 |
|
27 // FORWARD DECLARATION |
|
28 class MSatUtils; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Command handler for Language Notification command. |
|
34 * |
|
35 * @lib CLanguageNotificationHandler.lib |
|
36 * @since Series 60 3.0 |
|
37 */ |
|
38 class CLanguageNotificationHandler : public CSatCommandHandler |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 * @param aUtils Utils interface |
|
45 */ |
|
46 static CLanguageNotificationHandler* NewL( MSatUtils* aUtils ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CLanguageNotificationHandler(); |
|
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 notifies that command. |
|
87 */ |
|
88 void HandleCommand(); |
|
89 |
|
90 /** |
|
91 * From CSatCommandHandler. Indicates the failure of launching ui client |
|
92 */ |
|
93 void UiLaunchFailed(){}; |
|
94 |
|
95 private: |
|
96 |
|
97 /** |
|
98 * C++ default constructor. |
|
99 */ |
|
100 CLanguageNotificationHandler(); |
|
101 |
|
102 private: // Data |
|
103 |
|
104 // The data structure for the command data |
|
105 RSat::TLanguageNotificationV2 iLanguageNotify; |
|
106 |
|
107 // The data package for IPC |
|
108 RSat::TLanguageNotificationV2Pckg iLanguageNotifyPckg; |
|
109 |
|
110 // The response. |
|
111 RSat::TLanguageNotificationRspV2 iLanguageNotifyRsp; |
|
112 |
|
113 // The response package. |
|
114 RSat::TLanguageNotificationRspV2Pckg iLanguageNotifyRspPckg; |
|
115 |
|
116 }; |
|
117 |
|
118 #endif // CLANGUAGENOTIFICATIONHANDLER_H |
|
119 |
|
120 // End of File |
|