phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbstyle.cpp
changeset 76 cfea66083b62
parent 52 a49bfe5190e4
equal deleted inserted replaced
74:d1c62c765e48 76:cfea66083b62
    15 *
    15 *
    16 */
    16 */
    17 #include <QDebug>
    17 #include <QDebug>
    18 #include <smcmockclassincludes.h>
    18 #include <smcmockclassincludes.h>
    19 #include "hbstyle.h"
    19 #include "hbstyle.h"
       
    20 #include <hbstyleprimitivedata.h>
    20 
    21 
    21 //needed for TSmcValue<HbStyleParameters &,100>Size()const
    22 //needed for TSmcValue<HbStyleParameters &,100>Size()const
    22 class HbStyleParameters {};
    23 class HbStyleParameters {};
    23 //needed for TSmcValue<HbWidget *,100>Size()const
    24 //needed for TSmcValue<HbWidget *,100>Size()const
    24 class HbWidget {};
    25 class HbWidget {};
    48 
    49 
    49 // -----------------------------------------------------------------------------
    50 // -----------------------------------------------------------------------------
    50 // HbStyle::createPrimitive
    51 // HbStyle::createPrimitive
    51 // -----------------------------------------------------------------------------
    52 // -----------------------------------------------------------------------------
    52 //
    53 //
    53 QGraphicsItem * HbStyle::createPrimitive( 
    54 QGraphicsObject * HbStyle::createPrimitive( 
    54         HbStyle::Primitive primitive,
    55         HbStyle::PrimitiveType primitiveType, 
    55         QGraphicsItem * parent ) const
    56         const QString &itemName, 
       
    57         QGraphicsObject *parent ) const
    56     {
    58     {
    57     SMC_MOCK_METHOD2( QGraphicsItem *, HbStyle::Primitive, primitive, 
    59     SMC_MOCK_METHOD3( QGraphicsObject *, HbStyle::PrimitiveType, primitiveType,
    58         QGraphicsItem *, parent )
    60             const QString &, itemName,
       
    61             QGraphicsObject *, parent )
    59     }
    62     }
    60 
    63 
    61 
    64 
    62 // -----------------------------------------------------------------------------
    65 // -----------------------------------------------------------------------------
    63 // HbStyle::updatePrimitive
    66 // HbStyle::updatePrimitive
    64 // -----------------------------------------------------------------------------
    67 // -----------------------------------------------------------------------------
    65 //
    68 //
    66 void HbStyle::updatePrimitive( 
    69 bool HbStyle::updatePrimitive( 
    67         QGraphicsItem * item,
    70         QGraphicsObject *primitive, 
    68         HbStyle::Primitive primitive,
    71         const HbStylePrimitiveData *data, 
    69         const QStyleOption * option ) const
    72         QGraphicsObject *parent ) const
    70     {
    73     {
    71     SMC_MOCK_METHOD3( void, QGraphicsItem *, item, 
    74     SMC_MOCK_METHOD3( bool, QGraphicsObject *, primitive, 
    72         HbStyle::Primitive, primitive, 
    75         const HbStylePrimitiveData *, data, 
    73         const QStyleOption *, option )
    76         QGraphicsObject *, parent )
    74     }
    77     }
    75 
    78 
    76 
    79 
    77 // -----------------------------------------------------------------------------
    80 // -----------------------------------------------------------------------------
    78 // HbStyle::setItemName
    81 // HbStyle::setItemName