cellular/telephonysettings/xqbindings/psetwrapper/tsrc/mocks/mock_psetcalldivertingwrapper.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:45:17 +0300
branchRCL_3
changeset 19 7d48bed6ce0c
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
 * 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 <QtGlobal>
#include <QDebug>
#include <smcmockclassincludes.h>
#include "psetcalldivertingwrapper.h"

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

// -----------------------------------------------------------------------------
// PSetCallDivertingWrapper::PSetCallDivertingWrapper
// -----------------------------------------------------------------------------
//
PSetCallDivertingWrapper::PSetCallDivertingWrapper( 
        CPsetContainer & /*psetContainer*/,
        QObject * parent )
    :
    QObject(parent)
    {
    
    }


// -----------------------------------------------------------------------------
// PSetCallDivertingWrapper::~PSetCallDivertingWrapper
// -----------------------------------------------------------------------------
//
PSetCallDivertingWrapper::~PSetCallDivertingWrapper(  )
    {
    
    }


// -----------------------------------------------------------------------------
// PSetCallDivertingWrapper::setCallDiverting
// -----------------------------------------------------------------------------
//
int PSetCallDivertingWrapper::setCallDiverting( 
        PSCallDivertingCommand & aSetting,
        int aBasicServiceGroup )
    {
    SMC_MOCK_METHOD2( int, PSCallDivertingCommand &, aSetting, 
        int, aBasicServiceGroup )
    }


// -----------------------------------------------------------------------------
// PSetCallDivertingWrapper::getCallDivertingStatus
// -----------------------------------------------------------------------------
//
void PSetCallDivertingWrapper::getCallDivertingStatus( 
        const PsServiceGroup aServiceGroup,
        const PsCallDivertingCondition aCondition,
        int aBsc )
    {
    SMC_MOCK_METHOD3( void, int/*const PsServiceGroup*/, static_cast<int>(aServiceGroup), 
        const PsCallDivertingCondition, aCondition, 
        int, aBsc )
    }


// -----------------------------------------------------------------------------
// PSetCallDivertingWrapper::cancelProcess
// -----------------------------------------------------------------------------
//
void PSetCallDivertingWrapper::cancelProcess(  )
    {
    SMC_MOCK_METHOD0( void )
    }


// -----------------------------------------------------------------------------
// PSetCallDivertingWrapper::getDefaultNumbers
// -----------------------------------------------------------------------------
//
void PSetCallDivertingWrapper::getDefaultNumbers( 
        QStringList & aDefNumbers )
    {
    SMC_MOCK_METHOD1( void, QStringList &, aDefNumbers )
    }


// -----------------------------------------------------------------------------
// PSetCallDivertingWrapper::setNewDefaultNumber
// -----------------------------------------------------------------------------
//
void PSetCallDivertingWrapper::setNewDefaultNumber( 
        QString aNumber )
    {
    SMC_MOCK_METHOD1( void, QString, aNumber )
    }

// -----------------------------------------------------------------------------
// PSetCallDivertingWrapper::getVoiceMailBoxNumber
// -----------------------------------------------------------------------------
//
int PSetCallDivertingWrapper::getVoiceMailBoxNumber(
        QString &aNumber, PsService aService)
    {
    SMC_MOCK_METHOD2( int, QString & , aNumber, PsService, aService )
    }

// -----------------------------------------------------------------------------
// PSetCallDivertingWrapper::queryVoiceMailBoxNumber
// -----------------------------------------------------------------------------
//
int PSetCallDivertingWrapper::queryVoiceMailBoxNumber(
        QString &aNumber, PsService aService)
    {
    SMC_MOCK_METHOD2( int, QString & , aNumber, PsService, aService )
    }