|
1 /* |
|
2 * Copyright (c) 2004 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: |
|
15 * This class sends SIM card status indication to a client |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef BT_SAP_SIM_CARD_STATUS_NOTIFIER_H |
|
22 #define BT_SAP_SIM_CARD_STATUS_NOTIFIER_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 |
|
27 #ifdef _DUMMY_CUSTOM_API |
|
28 #include <DummyCustomAPI.h> |
|
29 #else |
|
30 #include <rmmcustomapi.h> |
|
31 #endif |
|
32 |
|
33 // FORWARD DECLARATIONS |
|
34 class CBTSapServerState; |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 /** |
|
39 * SIM card status handler class. |
|
40 */ |
|
41 class CBTSapSimCardStatusNotifier : public CActive |
|
42 { |
|
43 public: |
|
44 |
|
45 // Constructors |
|
46 static CBTSapSimCardStatusNotifier* NewL(CBTSapServerState& aBTSapServerState); |
|
47 |
|
48 // Destructor |
|
49 ~CBTSapSimCardStatusNotifier(); |
|
50 |
|
51 private: // From CActive |
|
52 |
|
53 /** |
|
54 * DoCancel() has to be implemented by all the classes deriving CActive. |
|
55 * Request cancellation routine. |
|
56 * @param none |
|
57 * @return none |
|
58 */ |
|
59 void DoCancel(); |
|
60 |
|
61 /** |
|
62 * RunL is called by framework after request is being completed. |
|
63 * @param nones |
|
64 * @return none |
|
65 */ |
|
66 void RunL(); |
|
67 |
|
68 public: |
|
69 |
|
70 /** |
|
71 * Start waiting for SIM card status change notification |
|
72 * @param None |
|
73 * @return None. |
|
74 */ |
|
75 |
|
76 void Start(); |
|
77 |
|
78 private: |
|
79 |
|
80 // Two-phase constructor |
|
81 void ConstructL(); |
|
82 |
|
83 // Default constructor |
|
84 CBTSapSimCardStatusNotifier(CBTSapServerState& aBTSapServerState); |
|
85 |
|
86 private: |
|
87 |
|
88 CBTSapServerState& iBTSapServerState; |
|
89 RMmCustomAPI& iSubscriptionModule; |
|
90 RMmCustomAPI::TSIMCardStatus iCardStatus; |
|
91 }; |
|
92 |
|
93 #endif // BT_SAP_SIM_CARD_STATUS_NOTIFIER_H |
|
94 |
|
95 // End of File |