phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_cpphonenotes.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 14 May 2010 15:51:57 +0300
changeset 30 ebdbd102c78a
parent 27 2f8f8080a020
child 51 f39ed5e045e0
permissions -rw-r--r--
Revision: 201017 Kit: 201019

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

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

// -----------------------------------------------------------------------------
// CpPhoneNotes::CpPhoneNotes
// -----------------------------------------------------------------------------
//
CpPhoneNotes::CpPhoneNotes( ): QObject(NULL) 
    {
    
    }

// -----------------------------------------------------------------------------
// CpPhoneNotes::instance
// -----------------------------------------------------------------------------
//
CpPhoneNotes * CpPhoneNotes::instance(  )
    {
    static CpPhoneNotes theInstance;
    return &theInstance; 
    }
// -----------------------------------------------------------------------------
// CpPhoneNotes::~CpPhoneNotes
// -----------------------------------------------------------------------------
//
CpPhoneNotes::~CpPhoneNotes(  )
    {

    }

// -----------------------------------------------------------------------------
// CpPhoneNotes::showGlobalProgressNote
// -----------------------------------------------------------------------------
//
void CpPhoneNotes::showGlobalProgressNote( 
        int & noteId,
        const QString & text )
    {
    SMC_MOCK_METHOD2( void, int &, noteId, 
        const QString &, text )
    }


// -----------------------------------------------------------------------------
// CpPhoneNotes::showGlobalNote
// -----------------------------------------------------------------------------
//
void CpPhoneNotes::showGlobalNote( 
        int & noteId,
        const QString & text,
        HbMessageBox::MessageBoxType noteType )
    {
    SMC_MOCK_METHOD3( void, int &, noteId, 
        const QString &, text, 
        HbMessageBox::MessageBoxType, noteType )
    }


// -----------------------------------------------------------------------------
// CpPhoneNotes::showGlobalErrorNote
// -----------------------------------------------------------------------------
//
void CpPhoneNotes::showGlobalErrorNote( 
        int & noteId,
        int errorCode )
    {
    SMC_MOCK_METHOD2( void, int &, noteId, 
        int, errorCode )
    }


// -----------------------------------------------------------------------------
// CpPhoneNotes::showBasicServiceList
// -----------------------------------------------------------------------------
//
void CpPhoneNotes::showBasicServiceList( 
        const QString & title,
        const QList<unsigned char> & basicServiceGroupIds )
    {
    SMC_MOCK_METHOD2( void, const QString &, title, 
        const QList<unsigned char> &, basicServiceGroupIds )
    }


// -----------------------------------------------------------------------------
// CpPhoneNotes::showCallDivertDetails
// -----------------------------------------------------------------------------
//
void CpPhoneNotes::showCallDivertDetails( 
        const PSCallDivertingStatus & divertStatus )
    {
    SMC_MOCK_METHOD1( void, const PSCallDivertingStatus &, divertStatus )
    }


// -----------------------------------------------------------------------------
// CpPhoneNotes::showPasswordQueryDialog
// -----------------------------------------------------------------------------
//
void CpPhoneNotes::showPasswordQueryDialog( 
        const QString & title,
        const QValidator & validator,
        int maxPasswordLength )
    {
    SMC_MOCK_METHOD3( void, const QString &, title, 
        const QValidator &, validator, 
        int, maxPasswordLength )
    }


// -----------------------------------------------------------------------------
// CpPhoneNotes::cancelNote
// -----------------------------------------------------------------------------
//
void CpPhoneNotes::cancelNote( 
        int noteId )
    {
    SMC_MOCK_METHOD1( void, int, noteId )
    }


// -----------------------------------------------------------------------------
// CpPhoneNotes::noteShowing
// -----------------------------------------------------------------------------
//
bool CpPhoneNotes::noteShowing(  )
    {
    SMC_MOCK_METHOD0( bool )
    }


// -----------------------------------------------------------------------------
// CpPhoneNotes::finishedPasswordQueryDialog
// -----------------------------------------------------------------------------
//
void CpPhoneNotes::finishedPasswordQueryDialog( 
        HbAction * action )
    {
    //SMC_MOCK_METHOD1( void, HbAction *, action )
    }


// -----------------------------------------------------------------------------
// CpPhoneNotes::activeNoteAboutToClose
// -----------------------------------------------------------------------------
//
void CpPhoneNotes::activeNoteAboutToClose()
{
    SMC_MOCK_METHOD0( void )
}


// -----------------------------------------------------------------------------
// CpPhoneNotes::handleProgressNoteCanceled
// -----------------------------------------------------------------------------
//
void CpPhoneNotes::handleProgressNoteCanceled()
{
    SMC_MOCK_METHOD0( void )
}


// -----------------------------------------------------------------------------
// CpPhoneNotes::passwordTextChanged
// -----------------------------------------------------------------------------
//


void CpPhoneNotes::passwordTextChanged()
{
    SMC_MOCK_METHOD0( void )
}