|
1 /* |
|
2 * Copyright (c) 2002 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 * An active object class which takes care of reading the possible new |
|
16 * service centres from SIM and adds them to Sms Settings. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef TESTSIMNUMDETECTOR_STUB_H_ |
|
22 #define TESTSIMNUMDETECTOR_STUB_H_ |
|
23 |
|
24 // INCLUDES |
|
25 #include <msvapi.h> // for MsvSession |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CMsvSession; |
|
29 |
|
30 /** |
|
31 * CTestMsgSimOperation |
|
32 * Inherited from CBase, MMsvSessionObserver |
|
33 */ |
|
34 class CTestMsgSimOperation : public MMsvSessionObserver |
|
35 { |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Constructor. |
|
40 */ |
|
41 IMPORT_C static CTestMsgSimOperation* NewL(); |
|
42 |
|
43 /** |
|
44 * Destructor |
|
45 */ |
|
46 ~CTestMsgSimOperation(); |
|
47 |
|
48 public: |
|
49 |
|
50 |
|
51 /** |
|
52 * Callback function for startup state monitor object |
|
53 */ |
|
54 void HandleStartupReadyL(); |
|
55 |
|
56 private: |
|
57 |
|
58 /** |
|
59 * C++ constructor which initializes the active object with a |
|
60 * default priority and adds it to the active scheduler. |
|
61 * @param TRequestStatus& aStatus, TInt aPriority |
|
62 * @return nothing |
|
63 */ |
|
64 CTestMsgSimOperation(); |
|
65 |
|
66 void HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, |
|
67 TAny* aArg3); |
|
68 |
|
69 /** |
|
70 * By default Symbian OS constructor is private. |
|
71 */ |
|
72 void ConstructL(); |
|
73 |
|
74 public: |
|
75 //data |
|
76 CMsvSession* iMsvSession; |
|
77 |
|
78 }; |
|
79 |
|
80 #endif /* TESTSIMNUMDETECTOR_STUB_H_ */ |