messagingapp/msgsettings/msginit/src/msgsimnumberdetector.cpp
author hgs
Sun, 25 Jul 2010 18:59:19 +0530
changeset 48 4f501b74aeb1
parent 23 238255e8b033
child 51 3507212d340e
permissions -rw-r--r--
201029_02

/*
 * 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")
    QT_TRAP_THROWING(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")
  
  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