1 /* |
|
2 * Copyright (c) 2002-2006 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: Handler for the SS Request Complete notification. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CSATSENDSSREQUESTCOMPLETEHANDLER_H |
|
20 #define CSATSENDSSREQUESTCOMPLETEHANDLER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <rmmcustomapi.h> |
|
24 |
|
25 class CSendSSHandler; |
|
26 |
|
27 /** |
|
28 * This is the handler for the SS Request Complete notification. |
|
29 * This active objects is registered with Custom ETel Api to receive |
|
30 * notifications about the SS Request Complete. |
|
31 * |
|
32 * @lib SendSsCmd |
|
33 * @since S60 v3.1 |
|
34 */ |
|
35 |
|
36 class CSatSendSsRequestCompleteHandler : public CActive |
|
37 { |
|
38 |
|
39 public: |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 * @param aPhone A reference to the Custom ETel API. |
|
44 * @param aDispatcher Pointer to Ss handler |
|
45 * @return a pointer to the newly created active object. |
|
46 */ |
|
47 static CSatSendSsRequestCompleteHandler* NewL( RMmCustomAPI& aPhone, |
|
48 CSendSSHandler* aDispatcher ); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CSatSendSsRequestCompleteHandler(); |
|
54 |
|
55 /** |
|
56 * Starts listening for the SS Request Complete notification. |
|
57 */ |
|
58 void Start(); |
|
59 |
|
60 protected: |
|
61 |
|
62 /** |
|
63 * From CActive, handles the request completion. |
|
64 */ |
|
65 void RunL(); |
|
66 |
|
67 /** |
|
68 * From CActive, implements the cancel protocol. |
|
69 */ |
|
70 void DoCancel(); |
|
71 |
|
72 private: |
|
73 |
|
74 /** |
|
75 * C++ default constructor. |
|
76 * @param aPriority An active object priority value. |
|
77 * @param aPhone A reference to the Custom ETel API. |
|
78 */ |
|
79 CSatSendSsRequestCompleteHandler( TInt aPriority, RMmCustomAPI& aPhone, |
|
80 CSendSSHandler* aDispatcher ); |
|
81 |
|
82 private: // Data |
|
83 |
|
84 /** |
|
85 * Reference to the Custom API |
|
86 */ |
|
87 RMmCustomAPI& iPhone; |
|
88 |
|
89 /** |
|
90 * Result of the Ss sending |
|
91 */ |
|
92 TInt iSsStatus; |
|
93 |
|
94 /** |
|
95 * Pointer to SendSs command handler |
|
96 */ |
|
97 CSendSSHandler* iDispatcher; |
|
98 }; |
|
99 |
|
100 #endif // CSATSENDSSREQUESTCOMPLETEHANDLER_H |
|