cellular/psuinotes/tsrc/mocks/mock_psetcalldivertingwrapper.cpp
author hgs
Fri, 15 Oct 2010 13:21:28 +0300
changeset 53 25b8d29b7c59
parent 35 6aefa3341fcc
permissions -rw-r--r--
201041
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
35
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
#include <QDebug>
hgs
parents:
diff changeset
    18
#include <smcmockclassincludes.h>
hgs
parents:
diff changeset
    19
#include "psetcalldivertingwrapper.h"
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
// ============================ MEMBER FUNCTIONS ===============================
hgs
parents:
diff changeset
    22
hgs
parents:
diff changeset
    23
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    24
// PSetCallDivertingWrapper::PSetCallDivertingWrapper
hgs
parents:
diff changeset
    25
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    26
//
hgs
parents:
diff changeset
    27
PSetCallDivertingWrapper::PSetCallDivertingWrapper( 
hgs
parents:
diff changeset
    28
        CPsetContainer & psetContainer,
hgs
parents:
diff changeset
    29
        QObject * parent )
hgs
parents:
diff changeset
    30
    //:
hgs
parents:
diff changeset
    31
    //QObject( /*psetContainer, parent*/ )
hgs
parents:
diff changeset
    32
    {
hgs
parents:
diff changeset
    33
    
hgs
parents:
diff changeset
    34
    }
hgs
parents:
diff changeset
    35
hgs
parents:
diff changeset
    36
hgs
parents:
diff changeset
    37
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    38
// PSetCallDivertingWrapper::~PSetCallDivertingWrapper
hgs
parents:
diff changeset
    39
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    40
//
hgs
parents:
diff changeset
    41
PSetCallDivertingWrapper::~PSetCallDivertingWrapper(  )
hgs
parents:
diff changeset
    42
    {
hgs
parents:
diff changeset
    43
    
hgs
parents:
diff changeset
    44
    }
hgs
parents:
diff changeset
    45
hgs
parents:
diff changeset
    46
hgs
parents:
diff changeset
    47
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    48
// PSetCallDivertingWrapper::setCallDiverting
hgs
parents:
diff changeset
    49
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    50
//
hgs
parents:
diff changeset
    51
int PSetCallDivertingWrapper::setCallDiverting( 
hgs
parents:
diff changeset
    52
        PSCallDivertingCommand & aSetting,
hgs
parents:
diff changeset
    53
        int aBasicServiceGroup )
hgs
parents:
diff changeset
    54
    {
hgs
parents:
diff changeset
    55
    SMC_MOCK_METHOD2( int, PSCallDivertingCommand &, aSetting, 
hgs
parents:
diff changeset
    56
        int, aBasicServiceGroup )
hgs
parents:
diff changeset
    57
    }
hgs
parents:
diff changeset
    58
hgs
parents:
diff changeset
    59
hgs
parents:
diff changeset
    60
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    61
// PSetCallDivertingWrapper::getCallDivertingStatus
hgs
parents:
diff changeset
    62
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    63
//
hgs
parents:
diff changeset
    64
void PSetCallDivertingWrapper::getCallDivertingStatus( 
hgs
parents:
diff changeset
    65
        const PsServiceGroup aServiceGroup,
hgs
parents:
diff changeset
    66
        const PsCallDivertingCondition aCondition,
hgs
parents:
diff changeset
    67
        int aBsc )
hgs
parents:
diff changeset
    68
    {
hgs
parents:
diff changeset
    69
    int iDummy = aServiceGroup;
hgs
parents:
diff changeset
    70
    SMC_MOCK_METHOD3( void, int, iDummy, 
hgs
parents:
diff changeset
    71
        const PsCallDivertingCondition, aCondition, 
hgs
parents:
diff changeset
    72
        int, aBsc )
hgs
parents:
diff changeset
    73
    }
hgs
parents:
diff changeset
    74
hgs
parents:
diff changeset
    75
hgs
parents:
diff changeset
    76
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    77
// PSetCallDivertingWrapper::cancelProcess
hgs
parents:
diff changeset
    78
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    79
//
hgs
parents:
diff changeset
    80
void PSetCallDivertingWrapper::cancelProcess(  )
hgs
parents:
diff changeset
    81
    {
hgs
parents:
diff changeset
    82
    SMC_MOCK_METHOD0( void )
hgs
parents:
diff changeset
    83
    }
hgs
parents:
diff changeset
    84
hgs
parents:
diff changeset
    85
hgs
parents:
diff changeset
    86
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    87
// PSetCallDivertingWrapper::getDefaultNumbers
hgs
parents:
diff changeset
    88
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    89
//
hgs
parents:
diff changeset
    90
void PSetCallDivertingWrapper::getDefaultNumbers( 
hgs
parents:
diff changeset
    91
        QStringList & aDefNumbers )
hgs
parents:
diff changeset
    92
    {
hgs
parents:
diff changeset
    93
    QStringList list;
hgs
parents:
diff changeset
    94
    list << "0401234567" << "0501234567" << "0451234567";
hgs
parents:
diff changeset
    95
    aDefNumbers = list;
hgs
parents:
diff changeset
    96
    
hgs
parents:
diff changeset
    97
    SMC_MOCK_METHOD1( void, QStringList &, aDefNumbers )
hgs
parents:
diff changeset
    98
    }
hgs
parents:
diff changeset
    99
hgs
parents:
diff changeset
   100
hgs
parents:
diff changeset
   101
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   102
// PSetCallDivertingWrapper::setNewDefaultNumber
hgs
parents:
diff changeset
   103
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   104
//
hgs
parents:
diff changeset
   105
void PSetCallDivertingWrapper::setNewDefaultNumber( 
hgs
parents:
diff changeset
   106
        QString aNumber )
hgs
parents:
diff changeset
   107
    {
hgs
parents:
diff changeset
   108
    SMC_MOCK_METHOD1( void, QString, aNumber )
hgs
parents:
diff changeset
   109
    }
hgs
parents:
diff changeset
   110
hgs
parents:
diff changeset
   111
hgs
parents:
diff changeset
   112
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   113
// PSetCallDivertingWrapper::getVoiceMailBoxNumber
hgs
parents:
diff changeset
   114
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   115
//
hgs
parents:
diff changeset
   116
int PSetCallDivertingWrapper::getVoiceMailBoxNumber( 
hgs
parents:
diff changeset
   117
        QString & aNumber,
hgs
parents:
diff changeset
   118
        PsService aService )
hgs
parents:
diff changeset
   119
    {
hgs
parents:
diff changeset
   120
    SMC_MOCK_METHOD2( int, QString &, aNumber, 
hgs
parents:
diff changeset
   121
        PsService, aService )
hgs
parents:
diff changeset
   122
    }
hgs
parents:
diff changeset
   123
hgs
parents:
diff changeset
   124
hgs
parents:
diff changeset
   125
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   126
// PSetCallDivertingWrapper::queryVoiceMailBoxNumber
hgs
parents:
diff changeset
   127
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   128
//
hgs
parents:
diff changeset
   129
int PSetCallDivertingWrapper::queryVoiceMailBoxNumber( 
hgs
parents:
diff changeset
   130
        QString & aNumber,
hgs
parents:
diff changeset
   131
        PsService aService )
hgs
parents:
diff changeset
   132
    {
hgs
parents:
diff changeset
   133
    SMC_MOCK_METHOD2( int, QString &, aNumber, 
hgs
parents:
diff changeset
   134
        PsService, aService )
hgs
parents:
diff changeset
   135
    }
hgs
parents:
diff changeset
   136