|
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 "msgsimnumberdetector.h" |
|
23 #include "debugtraces.h" |
|
24 |
|
25 // ================= MEMBER FUNCTIONS ======================= |
|
26 |
|
27 |
|
28 |
|
29 MsgSimNumDetector::MsgSimNumDetector() |
|
30 { |
|
31 QDEBUG_WRITE("MsgSimNumDetector::MsgSimNumDetector : Enter") |
|
32 d_ptr = q_check_ptr(new MsgSimNumDetectorPrivate()); |
|
33 QDEBUG_WRITE("MsgSimNumDetector::MsgSimNumDetector : Exit") |
|
34 } |
|
35 |
|
36 |
|
37 MsgSimNumDetector::~MsgSimNumDetector() |
|
38 { |
|
39 QDEBUG_WRITE("MsgSimNumDetector::~MsgSimNumDetector : Enter") |
|
40 delete d_ptr; |
|
41 QDEBUG_WRITE("~MsgSimNumDetector::MsgSimNumDetector : Exit") |
|
42 } |
|
43 |
|
44 |
|
45 // ---------------------------------------------------------------------------- |
|
46 // MsgSimNumDetectorPrivate::MsgSimNumDetectorPrivate |
|
47 // @see MsgSimOperationPrivate_p.h |
|
48 // ---------------------------------------------------------------------------- |
|
49 MsgSimNumDetectorPrivate::MsgSimNumDetectorPrivate(): |
|
50 mSimOperation(NULL) |
|
51 { |
|
52 QDEBUG_WRITE("MsgSimNumDetectorPrivate::MsgSimNumDetectorPrivate : Enter") |
|
53 |
|
54 initL(); |
|
55 |
|
56 QDEBUG_WRITE("MsgSimNumDetectorPrivate::MsgSimNumDetectorPrivate : Exit") |
|
57 |
|
58 } |
|
59 |
|
60 // ---------------------------------------------------------------------------- |
|
61 // MsgSimNumDetectorPrivate::~MsgSimNumDetectorPrivate |
|
62 // |
|
63 // ---------------------------------------------------------------------------- |
|
64 MsgSimNumDetectorPrivate::~MsgSimNumDetectorPrivate() |
|
65 { |
|
66 QDEBUG_WRITE("MsgSimNumDetectorPrivate::~MsgSimNumDetectorPrivate : Enter") |
|
67 |
|
68 if(mSimOperation) |
|
69 { |
|
70 delete mSimOperation; |
|
71 mSimOperation = NULL; |
|
72 } |
|
73 |
|
74 QDEBUG_WRITE("MsgSimNumDetectorPrivate::~MsgSimNumDetectorPrivate : Exit") |
|
75 } |
|
76 |
|
77 // ---------------------------------------------------------------------------- |
|
78 // MsgSimNumDetectorPrivate::initL |
|
79 // |
|
80 // ---------------------------------------------------------------------------- |
|
81 void MsgSimNumDetectorPrivate::initL() |
|
82 { |
|
83 QDEBUG_WRITE("MsgSimNumDetectorPrivate::initL : Enter") |
|
84 |
|
85 mSimOperation = CMsgSimOperation::NewL(*this); |
|
86 |
|
87 QDEBUG_WRITE("MsgSimNumDetectorPrivate::initL : Exit") |
|
88 } |
|
89 |
|
90 // ---------------------------------------------------------------------------- |
|
91 // MsgSimNumDetectorPrivate::CompleteOperation() |
|
92 // |
|
93 // ---------------------------------------------------------------------------- |
|
94 void MsgSimNumDetectorPrivate::CompleteOperation() |
|
95 { |
|
96 QDEBUG_WRITE("MsgSimNumDetectorPrivate::CompleteOperation : Enter") |
|
97 |
|
98 |
|
99 QDEBUG_WRITE("MsgSimNumDetectorPrivate::CompleteOperation : Exit") |
|
100 } |
|
101 // End of File |