cellular/telephonysettings/xqbindings/psetwrapper/src/psetcallwaitingwrapper.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 16 Apr 2010 15:31:58 +0300
changeset 13 e32024264ebb
parent 12 ae8abd0db65c
child 32 1f002146abb4
permissions -rw-r--r--
Revision: 201011 Kit: 201015

/*
 * Copyright (c) 2009 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:  
 *
 */

#include <rsssettings.h>
#include <psetcontainer.h>
#include <psetcallwaiting.h>
#include "psetcallwaitingwrapper.h"
#include "psetcallwaitingwrapper_p.h"
#include "logging.h"

/*!
  PSetCallWaitingWrapper::PSetCallWaitingWrapper
 */
PSetCallWaitingWrapper::PSetCallWaitingWrapper( 
        CPsetContainer &psetContainer, 
        QObject *parent) : 
        QObject(parent), 
        m_psetCallWaiting(NULL),
        m_privateImpl(new PSetCallWaitingWrapperPrivate(*this))
{
    DPRINT << ": IN ";
    
    QT_TRAP_THROWING(m_psetCallWaiting = 
        psetContainer.CreateCWObjectL(*m_privateImpl));
    
    DPRINT << ": OUT ";
}

/*!
  PSetCallWaitingWrapper::~PSetCallWaitingWrapper
 */
PSetCallWaitingWrapper::~PSetCallWaitingWrapper()
{
    DPRINT << ": IN ";
    
    delete m_psetCallWaiting;
    
    DPRINT << ": OUT ";
}
    
// --------  Wrapper interface  --------- // 
/*!
  PSetCallWaitingWrapper::setCallWaiting
 */
void PSetCallWaitingWrapper::setCallWaiting(PsCallWaitingCommand aSetting, 
                                            int aBasicServiceGroup )
{
    DPRINT << ": IN ";
    
    QT_TRAP_THROWING(m_psetCallWaiting->SetCallWaitingL(
        (MPsetCallWaiting::TSetCallWaiting)aSetting, 
        (TBasicServiceGroups)aBasicServiceGroup));
    
    DPRINT << ": OUT ";
}

/*!
  PSetCallWaitingWrapper::getCallWaitingStatus
 */
void PSetCallWaitingWrapper::getCallWaitingStatus()
{
    DPRINT << ": IN ";
    
    QT_TRAP_THROWING(m_psetCallWaiting->GetCallWaitingStatusL());
    
    DPRINT << ": OUT ";
}

/*!
  PSetCallWaitingWrapper::cancelProcess
 */
void PSetCallWaitingWrapper::cancelProcess()
{
    DPRINT << ": IN ";
    
    m_psetCallWaiting->CancelProcess();
    
    DPRINT << ": OUT ";
}

// End of File.