messagingapp/msgsettings/msginit/src/msgsimnumberdetector.cpp
changeset 31 ebfee66fde93
parent 23 238255e8b033
child 48 4f501b74aeb1
child 52 12db4185673b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/messagingapp/msgsettings/msginit/src/msgsimnumberdetector.cpp	Fri Jun 04 10:25:39 2010 +0100
@@ -0,0 +1,101 @@
+/*
+ * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description:  
+ *     A class which takes care of reading the possible new
+ *     service centres from SIM and adds them to pda-side Sms Settings.
+ *
+ */
+
+// INCLUDE FILES
+
+#include "msgsimnumberdetector.h"
+#include "debugtraces.h"
+
+// ================= MEMBER FUNCTIONS =======================
+
+
+
+MsgSimNumDetector::MsgSimNumDetector()
+{
+	QDEBUG_WRITE("MsgSimNumDetector::MsgSimNumDetector : Enter")
+	d_ptr = new MsgSimNumDetectorPrivate();
+	QDEBUG_WRITE("MsgSimNumDetector::MsgSimNumDetector : Exit")
+}
+
+
+MsgSimNumDetector::~MsgSimNumDetector()
+	{
+	QDEBUG_WRITE("MsgSimNumDetector::~MsgSimNumDetector : Enter")
+	delete d_ptr;	
+	QDEBUG_WRITE("~MsgSimNumDetector::MsgSimNumDetector : Exit")
+	}
+
+
+// ----------------------------------------------------------------------------
+// MsgSimNumDetectorPrivate::MsgSimNumDetectorPrivate
+// @see MsgSimOperationPrivate_p.h
+// ----------------------------------------------------------------------------
+MsgSimNumDetectorPrivate::MsgSimNumDetectorPrivate():
+mSimOperation(NULL)
+{
+  QDEBUG_WRITE("MsgSimNumDetectorPrivate::MsgSimNumDetectorPrivate : Enter")
+  
+  TRAP_IGNORE(initL());
+  
+  QDEBUG_WRITE("MsgSimNumDetectorPrivate::MsgSimNumDetectorPrivate : Exit")
+
+}
+
+// ----------------------------------------------------------------------------
+// MsgSimNumDetectorPrivate::~MsgSimNumDetectorPrivate
+// 
+// ----------------------------------------------------------------------------
+MsgSimNumDetectorPrivate::~MsgSimNumDetectorPrivate()
+{
+	QDEBUG_WRITE("MsgSimNumDetectorPrivate::~MsgSimNumDetectorPrivate : Enter")
+	
+	if(mSimOperation)
+        {
+        delete mSimOperation;
+        mSimOperation = NULL;
+        }
+	
+    QDEBUG_WRITE("MsgSimNumDetectorPrivate::~MsgSimNumDetectorPrivate : Exit")
+}
+
+// ----------------------------------------------------------------------------
+// MsgSimNumDetectorPrivate::initL
+// 
+// ----------------------------------------------------------------------------
+void MsgSimNumDetectorPrivate::initL()
+    {
+    QDEBUG_WRITE("MsgSimNumDetectorPrivate::initL : Enter")
+    
+    mSimOperation = CMsgSimOperation::NewL(*this);
+    
+    QDEBUG_WRITE("MsgSimNumDetectorPrivate::initL : Exit")
+    }
+
+// ----------------------------------------------------------------------------
+// MsgSimNumDetectorPrivate::CompleteOperation()
+// 
+// ----------------------------------------------------------------------------
+void MsgSimNumDetectorPrivate::CompleteOperation()
+    {
+    QDEBUG_WRITE("MsgSimNumDetectorPrivate::CompleteOperation : Enter")
+    
+    
+    QDEBUG_WRITE("MsgSimNumDetectorPrivate::CompleteOperation : Exit")
+    }
+//  End of File