phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbstyle.cpp
author hgs
Mon, 04 Oct 2010 16:06:10 +0300
changeset 76 cfea66083b62
parent 52 a49bfe5190e4
permissions -rw-r--r--
201039

/* 
* 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 <smcmockclassincludes.h>
#include "hbstyle.h"
#include <hbstyleprimitivedata.h>

//needed for TSmcValue<HbStyleParameters &,100>Size()const
class HbStyleParameters {};
//needed for TSmcValue<HbWidget *,100>Size()const
class HbWidget {};

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

// -----------------------------------------------------------------------------
// HbStyle::HbStyle
// -----------------------------------------------------------------------------
//
HbStyle::HbStyle( ):d_ptr(NULL)
       // QObject * parent )
    {
   // Q_UNUSED(parent);
    }


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


// -----------------------------------------------------------------------------
// HbStyle::createPrimitive
// -----------------------------------------------------------------------------
//
QGraphicsObject * HbStyle::createPrimitive( 
        HbStyle::PrimitiveType primitiveType, 
        const QString &itemName, 
        QGraphicsObject *parent ) const
    {
    SMC_MOCK_METHOD3( QGraphicsObject *, HbStyle::PrimitiveType, primitiveType,
            const QString &, itemName,
            QGraphicsObject *, parent )
    }


// -----------------------------------------------------------------------------
// HbStyle::updatePrimitive
// -----------------------------------------------------------------------------
//
bool HbStyle::updatePrimitive( 
        QGraphicsObject *primitive, 
        const HbStylePrimitiveData *data, 
        QGraphicsObject *parent ) const
    {
    SMC_MOCK_METHOD3( bool, QGraphicsObject *, primitive, 
        const HbStylePrimitiveData *, data, 
        QGraphicsObject *, parent )
    }


// -----------------------------------------------------------------------------
// HbStyle::setItemName
// -----------------------------------------------------------------------------
//
void HbStyle::setItemName( 
        QGraphicsItem * item,
        const QString & name )
    {
    SMC_MOCK_METHOD2( void, QGraphicsItem *, item, 
        const QString &, name )
    }


// -----------------------------------------------------------------------------
// HbStyle::itemName
// -----------------------------------------------------------------------------
//
QString HbStyle::itemName( 
        const QGraphicsItem * item )
    {
    SMC_MOCK_METHOD1( QString, const QGraphicsItem *, item )
    }


// -----------------------------------------------------------------------------
// HbStyle::parameter
// -----------------------------------------------------------------------------
//
bool HbStyle::parameter( 
        const QString & parameter,
        qreal & value,
        const HbDeviceProfile & profile ) const
    {
    SMC_MOCK_METHOD3( bool, const QString &, parameter, 
        qreal &, value, 
        const HbDeviceProfile &, profile )
    }


// -----------------------------------------------------------------------------
// HbStyle::parameters
// -----------------------------------------------------------------------------
//
void HbStyle::parameters( 
        HbStyleParameters & parameters,
        const HbDeviceProfile & profile ) const
    {
    SMC_MOCK_METHOD2( void, HbStyleParameters &, parameters, 
        const HbDeviceProfile &, profile )
    }


// -----------------------------------------------------------------------------
// HbStyle::polish
// -----------------------------------------------------------------------------
//
void HbStyle::polish( 
        HbWidget * widget,
        HbStyleParameters & params )
    {
    SMC_MOCK_METHOD2( void, HbWidget *, widget, 
        HbStyleParameters &, params )
    }


// -----------------------------------------------------------------------------
// HbStyle::updateThemedParams
// -----------------------------------------------------------------------------
//
void HbStyle::updateThemedParams( 
        HbWidget * widget )
    {
    SMC_MOCK_METHOD1( void, HbWidget *, widget )
    }


// -----------------------------------------------------------------------------
// HbStyle::hasOrientationSpecificStyleRules
// -----------------------------------------------------------------------------
//
bool HbStyle::hasOrientationSpecificStyleRules( 
        HbWidget * widget )
    {
    SMC_MOCK_METHOD1( bool, HbWidget *, widget )
    }


// -----------------------------------------------------------------------------
// HbStyle::HbStyle
// -----------------------------------------------------------------------------
//
HbStyle::HbStyle( 
        HbStylePrivate & dd,
        QStyle * parent ):d_ptr(NULL)
    //:
    //QObject( /*dd, parent*/ )
    {
    Q_UNUSED(dd);
    Q_UNUSED(parent);
    }