|
1 /* |
|
2 * Copyright (c) 2010 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 * A class which takes care of reading the possible new |
|
16 * service centres from SIM and adds them to pda-side Sms Settings. |
|
17 * |
|
18 */ |
|
19 |
|
20 // INCLUDE FILES |
|
21 |
|
22 #include "coutboxobserver.h" |
|
23 #include "testsimnumdetector_stub.h" |
|
24 #include "startupmonitor.h" |
|
25 #include "debugtraces.h" |
|
26 |
|
27 |
|
28 |
|
29 // ================= MEMBER FUNCTIONS ======================= |
|
30 |
|
31 EXPORT_C CTestMsgSimOperation* CTestMsgSimOperation::NewL() |
|
32 { |
|
33 QDEBUG_WRITE("CTestMsgSimOperation::NewL enter") |
|
34 |
|
35 CTestMsgSimOperation* self = new (ELeave) CTestMsgSimOperation(); |
|
36 CleanupStack::PushL(self); |
|
37 self->ConstructL(); |
|
38 CleanupStack::Pop(self); |
|
39 |
|
40 QDEBUG_WRITE("CTestMsgSimOperation::NewL End") |
|
41 return self; |
|
42 } |
|
43 |
|
44 |
|
45 CTestMsgSimOperation::CTestMsgSimOperation() |
|
46 { |
|
47 } |
|
48 |
|
49 void CTestMsgSimOperation::ConstructL() |
|
50 { |
|
51 QDEBUG_WRITE("CTestMsgSimOperation::ConstructL enter") |
|
52 |
|
53 // initialise |
|
54 iMsvSession = CMsvSession::OpenSyncL(*this); |
|
55 |
|
56 QDEBUG_WRITE("CTestMsgSimOperation::ConstructL exit") |
|
57 } |
|
58 |
|
59 CTestMsgSimOperation::~CTestMsgSimOperation() |
|
60 { |
|
61 QDEBUG_WRITE("CTestMsgSimOperation::~CTestMsgSimOperation Enter") |
|
62 if(NULL != iMsvSession) |
|
63 { |
|
64 delete iMsvSession; |
|
65 iMsvSession = NULL; |
|
66 } |
|
67 |
|
68 QDEBUG_WRITE("CTestMsgSimOperation::~CTestMsgSimOperation Exit") |
|
69 } |
|
70 |
|
71 void CTestMsgSimOperation::HandleSessionEventL(TMsvSessionEvent aEvent, |
|
72 TAny* /*aArg1*/, TAny* /*aArg2*/, |
|
73 TAny* /*aArg3*/) |
|
74 { |
|
75 QDEBUG_WRITE("CTestMsgSimOperation::HandleSessionEventL Enter") |
|
76 |
|
77 QDEBUG_WRITE("CTestMsgSimOperation::HandleSessionEventL Exit") |
|
78 } |
|
79 |
|
80 void CTestMsgSimOperation::HandleStartupReadyL() |
|
81 { |
|
82 QDEBUG_WRITE("CTestMsgSimOperation::HandleStartupReadyL Enter") |
|
83 // Boot ready, start the real SimOperation |
|
84 |
|
85 QDEBUG_WRITE("CTestMsgSimOperation::HandleStartupReadyL Exit") |
|
86 } |
|
87 |
|
88 // End of File |
|
89 |
|
90 |