phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_psetcallbarringwrapper.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 18 Aug 2010 09:48:26 +0300
changeset 56 5bcb308bd24d
parent 37 ba76fc04e6c2
child 51 f39ed5e045e0
child 74 d1c62c765e48
permissions -rw-r--r--
Revision: 201031 Kit: 201033

/* 
* 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 <psetcontainer.h>
#include <psetcallbarring.h>
#include <psetcallbarringwrapper.h>
#include <QDebug>
#include <smcmockclassincludes.h>
#include "psetcallbarringwrapper.h"

class PSetCallBarringWrapperPrivate {
public:
    PSetCallBarringWrapperPrivate() {}
    ~PSetCallBarringWrapperPrivate() {}
};


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

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


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


// -----------------------------------------------------------------------------
// PSetCallBarringWrapper::barringStatus
// -----------------------------------------------------------------------------
//
void PSetCallBarringWrapper::barringStatus( 
        PsServiceGroup serviceGroup,
        BarringType barringType )
    {
    SMC_MOCK_METHOD2( void, int/*PsServiceGroup*/, static_cast<int>(serviceGroup), 
        BarringType, barringType )
    }


// -----------------------------------------------------------------------------
// PSetCallBarringWrapper::enableBarring
// -----------------------------------------------------------------------------
//
void PSetCallBarringWrapper::enableBarring(
    PsServiceGroup serviceGroup,
    BarringType barringType,
    QString barringPassword)
    {
    SMC_MOCK_METHOD3( void, int/*PsServiceGroup*/, static_cast<int>(serviceGroup), 
        BarringType, barringType, QString, barringPassword )
    }


// -----------------------------------------------------------------------------
// PSetCallBarringWrapper::disableBarring
// -----------------------------------------------------------------------------
//
void PSetCallBarringWrapper::disableBarring(
    PsServiceGroup serviceGroup,
    BarringType barringType,
    QString barringPassword)
    {
    SMC_MOCK_METHOD3( void, int/*PsServiceGroup*/, static_cast<int>(serviceGroup), 
        BarringType, barringType, QString, barringPassword )
    }

// -----------------------------------------------------------------------------
// PSetCallBarringWrapper::changeBarringPassword
// -----------------------------------------------------------------------------
//
void PSetCallBarringWrapper::changeBarringPassword(
    const QString &oldPassword, 
    const QString &newPassword,
    const QString &verifiedPassword)
{
    SMC_MOCK_METHOD3( void, 
        const QString &, oldPassword, 
        const QString &, newPassword, 
        const QString &, verifiedPassword )
}