diff -r bc5a64e5bc3c -r 5bcb308bd24d phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbinstance.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbinstance.cpp Wed Aug 18 09:48:26 2010 +0300 @@ -0,0 +1,104 @@ +/** 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 the License "Symbian Foundation License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#include +#include +#include "hbinstance.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// HbInstance::instance +// ----------------------------------------------------------------------------- +// +HbInstance * HbInstance::instance( ) + { + SMC_MOCK_METHOD0( HbInstance * ) + } + + +// ----------------------------------------------------------------------------- +// HbInstance::allMainWindows +// ----------------------------------------------------------------------------- +// +QList HbInstance::allMainWindows( ) const + { + SMC_MOCK_METHOD0( QList ) + } + + +// ----------------------------------------------------------------------------- +// HbInstance::style +// ----------------------------------------------------------------------------- +// +HbStyle * HbInstance::style( ) const + { + SMC_MOCK_METHOD0( HbStyle * ) + } + + +// ----------------------------------------------------------------------------- +// HbInstance::theme +// ----------------------------------------------------------------------------- +// +HbTheme * HbInstance::theme( ) const + { + SMC_MOCK_METHOD0( HbTheme * ) + } + + +// ----------------------------------------------------------------------------- +// HbInstance::addLibraryPath +// ----------------------------------------------------------------------------- +// +void HbInstance::addLibraryPath( + const QString & path ) + { + SMC_MOCK_METHOD1( void, const QString &, path ) + } + + +// ----------------------------------------------------------------------------- +// HbInstance::removeLibraryPath +// ----------------------------------------------------------------------------- +// +void HbInstance::removeLibraryPath( + const QString & path ) + { + SMC_MOCK_METHOD1( void, const QString &, path ) + } + + +// ----------------------------------------------------------------------------- +// HbInstance::libraryPaths +// ----------------------------------------------------------------------------- +// +QStringList HbInstance::libraryPaths( ) const + { + SMC_MOCK_METHOD0( QStringList ) + } + + +// ----------------------------------------------------------------------------- +// HbInstance::setLibraryPaths +// ----------------------------------------------------------------------------- +// +void HbInstance::setLibraryPaths( + const QStringList & paths ) + { + SMC_MOCK_METHOD1( void, const QStringList &, paths ) + } + +