diff -r bab96b7ed1a4 -r f39ed5e045e0 phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_infowidgetlayoutmanager.cpp --- a/phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_infowidgetlayoutmanager.cpp Tue Jun 15 14:14:38 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,269 +0,0 @@ -/* -* 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 -#include -#include -#include "infowidgetlayoutmanager.h" - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::InfoWidgetLayoutManager -// ----------------------------------------------------------------------------- -// -InfoWidgetLayoutManager::InfoWidgetLayoutManager( - QObject * parent ) - :QObject( parent ) - { - - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::~InfoWidgetLayoutManager -// ----------------------------------------------------------------------------- -// -InfoWidgetLayoutManager::~InfoWidgetLayoutManager( ) - { - - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::destroyObjects -// ----------------------------------------------------------------------------- -// -void InfoWidgetLayoutManager::destroyObjects( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::currentDisplayRole -// ----------------------------------------------------------------------------- -// -InfoWidgetLayoutManager::DisplayRole InfoWidgetLayoutManager::currentDisplayRole( ) - { - SMC_MOCK_METHOD0( DisplayRole ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::currentWidgetRoles -// ----------------------------------------------------------------------------- -// -QList - InfoWidgetLayoutManager::currentWidgetRoles( ) - { - SMC_MOCK_METHOD0( QList ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::layoutRows -// ----------------------------------------------------------------------------- -// -int InfoWidgetLayoutManager::layoutRows( ) const - { - SMC_MOCK_METHOD0( int ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::setLayoutRows -// ----------------------------------------------------------------------------- -// -void InfoWidgetLayoutManager::setLayoutRows( - int rows ) - { - SMC_MOCK_METHOD1( void, int, rows ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::rowHeight -// ----------------------------------------------------------------------------- -// -qreal InfoWidgetLayoutManager::rowHeight( ) const - { - SMC_MOCK_METHOD0( qreal ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::layoutInfoDisplay -// ----------------------------------------------------------------------------- -// -QGraphicsLayout * InfoWidgetLayoutManager::layoutInfoDisplay( ) - { - SMC_MOCK_METHOD0( QGraphicsLayout * ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::layoutSettingsDisplay -// ----------------------------------------------------------------------------- -// -QGraphicsLayout * InfoWidgetLayoutManager::layoutSettingsDisplay( ) - { - SMC_MOCK_METHOD0( QGraphicsLayout * ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::widgetRoles -// ----------------------------------------------------------------------------- -// -const QList - InfoWidgetLayoutManager::widgetRoles(DisplayRole displayRole ) const - { - SMC_MOCK_METHOD1( - const QList , - DisplayRole, displayRole ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::loadWidgets -// ----------------------------------------------------------------------------- -// -bool InfoWidgetLayoutManager::loadWidgets( - const DisplayRole displayRole, - const QList &displayWidgets, - QMap &widgetMap) - { - typedef QMap & TYPE3; - SMC_MOCK_METHOD3( bool, const DisplayRole, displayRole, - const QList &, displayWidgets, - TYPE3, widgetMap ) - } - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::reloadWidgets -// ----------------------------------------------------------------------------- -// -bool InfoWidgetLayoutManager::reloadWidgets( - const DisplayRole displayRole ) - { - SMC_MOCK_METHOD1( bool, const DisplayRole, displayRole ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::loadWidget -// ----------------------------------------------------------------------------- -// -QGraphicsWidget* InfoWidgetLayoutManager::loadWidget( - InfoWidgetDocumentLoader &loader, - DisplayRole displayRole, - LayoutItemRole widgetRole) - { - SMC_MOCK_METHOD3( QGraphicsWidget *, InfoWidgetDocumentLoader &, loader, - DisplayRole, displayRole, - LayoutItemRole, widgetRole ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::getWidget -// ----------------------------------------------------------------------------- -// -QGraphicsWidget * InfoWidgetLayoutManager::getWidget( - LayoutItemRole itemRole ) - { - SMC_MOCK_METHOD1( QGraphicsWidget *, LayoutItemRole, itemRole ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::contentWidget -// ----------------------------------------------------------------------------- -// -QGraphicsWidget * InfoWidgetLayoutManager::contentWidget( ) - { - SMC_MOCK_METHOD0( QGraphicsWidget * ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::removeWidget -// ----------------------------------------------------------------------------- -// -void InfoWidgetLayoutManager::removeWidget( - LayoutItemRole itemRole ) - { - SMC_MOCK_METHOD1( void, LayoutItemRole, itemRole ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::hideWidget -// ----------------------------------------------------------------------------- -// -void InfoWidgetLayoutManager::hideWidget( - LayoutItemRole itemRole ) - { - SMC_MOCK_METHOD1( void, LayoutItemRole, itemRole ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::hideAll -// ----------------------------------------------------------------------------- -// -void InfoWidgetLayoutManager::hideAll( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetLayoutManager::showAll -// ----------------------------------------------------------------------------- -// -void InfoWidgetLayoutManager::showAll( ) - { - SMC_MOCK_METHOD0( void ) - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetDocumentLoader::InfoWidgetDocumentLoader -// ----------------------------------------------------------------------------- -// -InfoWidgetDocumentLoader::InfoWidgetDocumentLoader( ) - //: - //HbDocumentLoader( /**/ ) - { - - } - - -// ----------------------------------------------------------------------------- -// InfoWidgetDocumentLoader::createObject -// ----------------------------------------------------------------------------- -// -QObject * InfoWidgetDocumentLoader::createObject( - const QString & type, - const QString & name ) - { - SMC_MOCK_METHOD2( QObject *, const QString &, type, - const QString &, name ) - } - -