|
1 /* |
|
2 * Copyright (c) 2002-2008 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: This is the handler for various query requests related to |
|
15 * those SIM Application Toolkit proactive commands that |
|
16 * require user permissions to complete their actions. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 #ifndef CSATCQUERYHANDLER_H |
|
23 #define CSATCQUERYHANDLER_H |
|
24 |
|
25 // INCLUDES |
|
26 #include <e32base.h> |
|
27 #include <etelsat.h> |
|
28 #include "SatSTypes.h" |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class RSatUiSession; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * This is the active object handler for various end-user queries. |
|
37 * |
|
38 * @lib SatClient.lib |
|
39 * @since Series 60 2.6 |
|
40 */ |
|
41 class CSatCQueryHandler : public CActive |
|
42 { |
|
43 public: // Constructors and destructor |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 * @param aSat A pointer to a session (does not take ownership). |
|
48 */ |
|
49 static CSatCQueryHandler* NewL( RSatUiSession* aSat ); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 virtual ~CSatCQueryHandler(); |
|
55 |
|
56 public: // New functions |
|
57 |
|
58 /** |
|
59 * Starts listening for the Sat command. |
|
60 */ |
|
61 void Start(); |
|
62 |
|
63 protected: // Functions from base classes |
|
64 |
|
65 /** |
|
66 * From CActive |
|
67 * |
|
68 * Handles the request completion. |
|
69 */ |
|
70 void RunL(); |
|
71 |
|
72 /** |
|
73 * From CActive |
|
74 * |
|
75 * Implements the cancel protocol. |
|
76 */ |
|
77 void DoCancel(); |
|
78 |
|
79 private: // Constructors |
|
80 |
|
81 /** |
|
82 * C++ default constructor. |
|
83 * @param aPriority The priority of this active object. |
|
84 * @param aSat A pointer to a session (does not take ownership). |
|
85 */ |
|
86 CSatCQueryHandler( |
|
87 TInt aPriority, |
|
88 RSatUiSession* aSat ); |
|
89 |
|
90 private: // Data |
|
91 |
|
92 /** |
|
93 * Reference to the Sat API |
|
94 */ |
|
95 RSatUiSession* iSession; |
|
96 |
|
97 /** |
|
98 * The data structure for the command data |
|
99 */ |
|
100 TSatQueryV1 iQueryData; |
|
101 |
|
102 /** |
|
103 * The data package for IPC |
|
104 */ |
|
105 TSatQueryV1Pckg iQueryPckg; |
|
106 |
|
107 /** |
|
108 * The response data structure |
|
109 */ |
|
110 TSatQueryRspV1 iQueryRsp; |
|
111 |
|
112 /** |
|
113 * The response package for IPC |
|
114 */ |
|
115 TSatQueryRspV1Pckg iQueryRspPckg; |
|
116 |
|
117 }; |
|
118 |
|
119 #endif // CSATCQUERYHANDLER_H |
|
120 |
|
121 // End of File |