phonebookengines/VirtualPhonebook/VPbkSimStoreImpl/src/CSatPhone.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 21 Jun 2010 15:24:27 +0300
branchRCL_3
changeset 15 34879f5cfc63
parent 0 e686773b3f54
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

/*
* Copyright (c) 2002-2007 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 phone class that supports SAT refresh
*
*/



// INCLUDE FILES
#include "csatphone.h"

#include "cphone.h"
#include "vpbksimstorecommon.h"
#include "csatrefreshnotifier.h"
#include "vpbksimstoreimplerror.h"

namespace VPbkSimStoreImpl {

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CSatPhone::CSatPhone
// C++ default constructor can NOT contain any code, that
// might leave.
// -----------------------------------------------------------------------------
//
inline CSatPhone::CSatPhone()
    {
    }

// -----------------------------------------------------------------------------
// CSatPhone::ConstructL
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
inline void CSatPhone::ConstructL()
    {
    iSatNotifier = VPbkSimStoreImpl::CSatRefreshNotifier::NewL();
    iPhone = new( ELeave ) VPbkSimStoreImpl::CPhone(*iSatNotifier);
    }

// -----------------------------------------------------------------------------
// CSatPhone::NewL
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CSatPhone* CSatPhone::NewL()
    {
    CSatPhone* self = new(ELeave) CSatPhone;
    CleanupStack::PushL( self );
    self->ConstructL();
    CleanupStack::Pop( self );
    return self;
    }
    
// Destructor
CSatPhone::~CSatPhone()
    {
    delete iPhone;
    delete iSatNotifier;
    }

// -----------------------------------------------------------------------------
// CSatPhone::OpenL
// -----------------------------------------------------------------------------
//  
void CSatPhone::OpenL( MVPbkSimPhoneObserver& aObserver )
    {
    iPhone->OpenL( aObserver );
    }

// -----------------------------------------------------------------------------
// CSatPhone::Close
// -----------------------------------------------------------------------------
//
void CSatPhone::Close( MVPbkSimPhoneObserver& aObserver )
    {
    iPhone->Close( aObserver );
    }

// -----------------------------------------------------------------------------
// CSatPhone::USimAccessSupported
// -----------------------------------------------------------------------------
//
TBool CSatPhone::USimAccessSupported() const
    {
    return iPhone->USimAccessSupported();
    }

// -----------------------------------------------------------------------------
// CSatPhone::ServiceTable
// -----------------------------------------------------------------------------
//
TUint32 CSatPhone::ServiceTable() const
    {
    return iPhone->ServiceTable();
    }

// -----------------------------------------------------------------------------
// CSatPhone::FixedDialingStatus
// -----------------------------------------------------------------------------
//
MVPbkSimPhone::TFDNStatus CSatPhone::FixedDialingStatus() const
    {
    return iPhone->FixedDialingStatus();
    }
} // VPbkSimStoreImpl
//  End of File