phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbcheckbox.cpp
author hgs
Mon, 04 Oct 2010 16:06:10 +0300
changeset 76 cfea66083b62
permissions -rw-r--r--
201039
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
76
hgs
parents:
diff changeset
     1
/** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     2
* All rights reserved.
hgs
parents:
diff changeset
     3
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     4
* under the terms of the License "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     5
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     6
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     7
*
hgs
parents:
diff changeset
     8
* Initial Contributors:
hgs
parents:
diff changeset
     9
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    10
*
hgs
parents:
diff changeset
    11
* Contributors:
hgs
parents:
diff changeset
    12
*
hgs
parents:
diff changeset
    13
* Description:
hgs
parents:
diff changeset
    14
*
hgs
parents:
diff changeset
    15
*/
hgs
parents:
diff changeset
    16
#include <QDebug>
hgs
parents:
diff changeset
    17
#include <smcmockclassincludes.h>
hgs
parents:
diff changeset
    18
#include <hbcheckbox.h>
hgs
parents:
diff changeset
    19
#include <QGraphicsSceneResizeEvent>
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
// NOTE! The following header include requires
hgs
parents:
diff changeset
    22
//       INCLUDEPATH += /sf/mw/hb/include/hbcore/private
hgs
parents:
diff changeset
    23
#include <hbstyleoptioncheckbox_p.h>
hgs
parents:
diff changeset
    24
hgs
parents:
diff changeset
    25
hgs
parents:
diff changeset
    26
// ============================ MEMBER FUNCTIONS ===============================
hgs
parents:
diff changeset
    27
hgs
parents:
diff changeset
    28
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    29
// HbCheckBox::HbCheckBox
hgs
parents:
diff changeset
    30
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    31
//
hgs
parents:
diff changeset
    32
HbCheckBox::HbCheckBox( 
hgs
parents:
diff changeset
    33
        QGraphicsItem * parent )
hgs
parents:
diff changeset
    34
    //:
hgs
parents:
diff changeset
    35
    //HbAbstractButton( /*parent*/ )
hgs
parents:
diff changeset
    36
    {
hgs
parents:
diff changeset
    37
    
hgs
parents:
diff changeset
    38
    }
hgs
parents:
diff changeset
    39
hgs
parents:
diff changeset
    40
hgs
parents:
diff changeset
    41
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    42
// HbCheckBox::HbCheckBox
hgs
parents:
diff changeset
    43
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    44
//
hgs
parents:
diff changeset
    45
HbCheckBox::HbCheckBox( 
hgs
parents:
diff changeset
    46
        const QString & text,
hgs
parents:
diff changeset
    47
        QGraphicsItem * parent )
hgs
parents:
diff changeset
    48
    //:
hgs
parents:
diff changeset
    49
    //HbAbstractButton( /*text, parent*/ )
hgs
parents:
diff changeset
    50
    {
hgs
parents:
diff changeset
    51
    
hgs
parents:
diff changeset
    52
    }
hgs
parents:
diff changeset
    53
hgs
parents:
diff changeset
    54
hgs
parents:
diff changeset
    55
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    56
// HbCheckBox::~HbCheckBox
hgs
parents:
diff changeset
    57
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    58
//
hgs
parents:
diff changeset
    59
HbCheckBox::~HbCheckBox(  )
hgs
parents:
diff changeset
    60
    {
hgs
parents:
diff changeset
    61
    
hgs
parents:
diff changeset
    62
    }
hgs
parents:
diff changeset
    63
hgs
parents:
diff changeset
    64
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    65
// HbCheckBox::setText
hgs
parents:
diff changeset
    66
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    67
//
hgs
parents:
diff changeset
    68
void HbCheckBox::setText( 
hgs
parents:
diff changeset
    69
        const QString & text )
hgs
parents:
diff changeset
    70
    {
hgs
parents:
diff changeset
    71
    SMC_MOCK_METHOD1( void, const QString &, text )
hgs
parents:
diff changeset
    72
    }
hgs
parents:
diff changeset
    73
hgs
parents:
diff changeset
    74
hgs
parents:
diff changeset
    75
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    76
// HbCheckBox::text
hgs
parents:
diff changeset
    77
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    78
//
hgs
parents:
diff changeset
    79
QString HbCheckBox::text(  ) const
hgs
parents:
diff changeset
    80
    {
hgs
parents:
diff changeset
    81
    SMC_MOCK_METHOD0( QString )
hgs
parents:
diff changeset
    82
    }
hgs
parents:
diff changeset
    83
hgs
parents:
diff changeset
    84
hgs
parents:
diff changeset
    85
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    86
// HbCheckBox::setTristate
hgs
parents:
diff changeset
    87
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    88
//
hgs
parents:
diff changeset
    89
void HbCheckBox::setTristate( 
hgs
parents:
diff changeset
    90
        bool isTristate )
hgs
parents:
diff changeset
    91
    {
hgs
parents:
diff changeset
    92
    SMC_MOCK_METHOD1( void, bool, isTristate )
hgs
parents:
diff changeset
    93
    }
hgs
parents:
diff changeset
    94
hgs
parents:
diff changeset
    95
hgs
parents:
diff changeset
    96
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    97
// HbCheckBox::isTristate
hgs
parents:
diff changeset
    98
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
    99
//
hgs
parents:
diff changeset
   100
bool HbCheckBox::isTristate(  ) const
hgs
parents:
diff changeset
   101
    {
hgs
parents:
diff changeset
   102
    SMC_MOCK_METHOD0( bool )
hgs
parents:
diff changeset
   103
    }
hgs
parents:
diff changeset
   104
hgs
parents:
diff changeset
   105
hgs
parents:
diff changeset
   106
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   107
// HbCheckBox::checkState
hgs
parents:
diff changeset
   108
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   109
//
hgs
parents:
diff changeset
   110
Qt::CheckState HbCheckBox::checkState(  ) const
hgs
parents:
diff changeset
   111
    {
hgs
parents:
diff changeset
   112
    SMC_MOCK_METHOD0( Qt::CheckState )
hgs
parents:
diff changeset
   113
    }
hgs
parents:
diff changeset
   114
hgs
parents:
diff changeset
   115
hgs
parents:
diff changeset
   116
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   117
// HbCheckBox::primitive
hgs
parents:
diff changeset
   118
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   119
//
hgs
parents:
diff changeset
   120
QGraphicsItem * HbCheckBox::primitive( 
hgs
parents:
diff changeset
   121
        HbStyle::Primitive primitive ) const
hgs
parents:
diff changeset
   122
    {
hgs
parents:
diff changeset
   123
    SMC_MOCK_METHOD1( QGraphicsItem *, HbStyle::Primitive, primitive )
hgs
parents:
diff changeset
   124
    }
hgs
parents:
diff changeset
   125
hgs
parents:
diff changeset
   126
hgs
parents:
diff changeset
   127
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   128
// HbCheckBox::setCheckState
hgs
parents:
diff changeset
   129
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   130
//
hgs
parents:
diff changeset
   131
void HbCheckBox::setCheckState( 
hgs
parents:
diff changeset
   132
        Qt::CheckState state )
hgs
parents:
diff changeset
   133
    {
hgs
parents:
diff changeset
   134
    SMC_MOCK_METHOD1( void, Qt::CheckState, state )
hgs
parents:
diff changeset
   135
    }
hgs
parents:
diff changeset
   136
hgs
parents:
diff changeset
   137
hgs
parents:
diff changeset
   138
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   139
// HbCheckBox::updatePrimitives
hgs
parents:
diff changeset
   140
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   141
//
hgs
parents:
diff changeset
   142
void HbCheckBox::updatePrimitives(  )
hgs
parents:
diff changeset
   143
    {
hgs
parents:
diff changeset
   144
    SMC_MOCK_METHOD0( void )
hgs
parents:
diff changeset
   145
    }
hgs
parents:
diff changeset
   146
hgs
parents:
diff changeset
   147
hgs
parents:
diff changeset
   148
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   149
// HbCheckBox::initStyleOption
hgs
parents:
diff changeset
   150
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   151
//
hgs
parents:
diff changeset
   152
void HbCheckBox::initStyleOption( 
hgs
parents:
diff changeset
   153
        HbStyleOptionCheckBox * option ) const
hgs
parents:
diff changeset
   154
    {
hgs
parents:
diff changeset
   155
    SMC_MOCK_METHOD1( void, HbStyleOptionCheckBox *, option )
hgs
parents:
diff changeset
   156
    }
hgs
parents:
diff changeset
   157
hgs
parents:
diff changeset
   158
hgs
parents:
diff changeset
   159
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   160
// HbCheckBox::resizeEvent
hgs
parents:
diff changeset
   161
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   162
//
hgs
parents:
diff changeset
   163
void HbCheckBox::resizeEvent( 
hgs
parents:
diff changeset
   164
        QGraphicsSceneResizeEvent * event )
hgs
parents:
diff changeset
   165
    {
hgs
parents:
diff changeset
   166
    SMC_MOCK_METHOD1( void, QGraphicsSceneResizeEvent *, event )
hgs
parents:
diff changeset
   167
    }
hgs
parents:
diff changeset
   168
hgs
parents:
diff changeset
   169
hgs
parents:
diff changeset
   170
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   171
// HbCheckBox::hitButton
hgs
parents:
diff changeset
   172
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   173
//
hgs
parents:
diff changeset
   174
bool HbCheckBox::hitButton( 
hgs
parents:
diff changeset
   175
        const QPointF & pos ) const
hgs
parents:
diff changeset
   176
    {
hgs
parents:
diff changeset
   177
    SMC_MOCK_METHOD1( bool, const QPointF &, pos )
hgs
parents:
diff changeset
   178
    }
hgs
parents:
diff changeset
   179
hgs
parents:
diff changeset
   180
hgs
parents:
diff changeset
   181
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   182
// HbCheckBox::checkStateSet
hgs
parents:
diff changeset
   183
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   184
//
hgs
parents:
diff changeset
   185
void HbCheckBox::checkStateSet(  )
hgs
parents:
diff changeset
   186
    {
hgs
parents:
diff changeset
   187
    SMC_MOCK_METHOD0( void )
hgs
parents:
diff changeset
   188
    }
hgs
parents:
diff changeset
   189
hgs
parents:
diff changeset
   190
hgs
parents:
diff changeset
   191
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   192
// HbCheckBox::nextCheckState
hgs
parents:
diff changeset
   193
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   194
//
hgs
parents:
diff changeset
   195
void HbCheckBox::nextCheckState(  )
hgs
parents:
diff changeset
   196
    {
hgs
parents:
diff changeset
   197
    SMC_MOCK_METHOD0( void )
hgs
parents:
diff changeset
   198
    }
hgs
parents:
diff changeset
   199
hgs
parents:
diff changeset
   200
hgs
parents:
diff changeset
   201
#ifndef HB_GESTURE_FW
hgs
parents:
diff changeset
   202
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   203
// HbCheckBox::mouseReleaseEvent
hgs
parents:
diff changeset
   204
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   205
//
hgs
parents:
diff changeset
   206
void HbCheckBox::mouseReleaseEvent( 
hgs
parents:
diff changeset
   207
        QGraphicsSceneMouseEvent * event )
hgs
parents:
diff changeset
   208
    {
hgs
parents:
diff changeset
   209
    SMC_MOCK_METHOD1( void, QGraphicsSceneMouseEvent *, event )
hgs
parents:
diff changeset
   210
    }
hgs
parents:
diff changeset
   211
hgs
parents:
diff changeset
   212
hgs
parents:
diff changeset
   213
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   214
// HbCheckBox::mouseMoveEvent
hgs
parents:
diff changeset
   215
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   216
//
hgs
parents:
diff changeset
   217
void HbCheckBox::mouseMoveEvent( 
hgs
parents:
diff changeset
   218
        QGraphicsSceneMouseEvent * event )
hgs
parents:
diff changeset
   219
    {
hgs
parents:
diff changeset
   220
    SMC_MOCK_METHOD1( void, QGraphicsSceneMouseEvent *, event )
hgs
parents:
diff changeset
   221
    }
hgs
parents:
diff changeset
   222
#endif
hgs
parents:
diff changeset
   223
hgs
parents:
diff changeset
   224
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   225
// HbCheckBox::gestureEvent
hgs
parents:
diff changeset
   226
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   227
//
hgs
parents:
diff changeset
   228
void HbCheckBox::gestureEvent( 
hgs
parents:
diff changeset
   229
        QGestureEvent * event )
hgs
parents:
diff changeset
   230
    {
hgs
parents:
diff changeset
   231
    SMC_MOCK_METHOD1( void, QGestureEvent *, event )
hgs
parents:
diff changeset
   232
    }
hgs
parents:
diff changeset
   233
hgs
parents:
diff changeset
   234
hgs
parents:
diff changeset
   235
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   236
// HbCheckBox::keyPressEvent
hgs
parents:
diff changeset
   237
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   238
//
hgs
parents:
diff changeset
   239
void HbCheckBox::keyPressEvent( 
hgs
parents:
diff changeset
   240
        QKeyEvent * keyEvent )
hgs
parents:
diff changeset
   241
    {
hgs
parents:
diff changeset
   242
    SMC_MOCK_METHOD1( void, QKeyEvent *, keyEvent )
hgs
parents:
diff changeset
   243
    }
hgs
parents:
diff changeset
   244
hgs
parents:
diff changeset
   245
hgs
parents:
diff changeset
   246
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   247
// HbCheckBox::itemChange
hgs
parents:
diff changeset
   248
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   249
//
hgs
parents:
diff changeset
   250
QVariant HbCheckBox::itemChange( 
hgs
parents:
diff changeset
   251
        GraphicsItemChange change,
hgs
parents:
diff changeset
   252
        const QVariant & value )
hgs
parents:
diff changeset
   253
    {
hgs
parents:
diff changeset
   254
    SMC_MOCK_METHOD2( QVariant, GraphicsItemChange, change, 
hgs
parents:
diff changeset
   255
        const QVariant &, value )
hgs
parents:
diff changeset
   256
    }
hgs
parents:
diff changeset
   257
hgs
parents:
diff changeset
   258
hgs
parents:
diff changeset
   259
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   260
// HbCheckBox::stateChanged
hgs
parents:
diff changeset
   261
// -----------------------------------------------------------------------------
hgs
parents:
diff changeset
   262
//
hgs
parents:
diff changeset
   263
void HbCheckBox::stateChanged( 
hgs
parents:
diff changeset
   264
        int state )
hgs
parents:
diff changeset
   265
    {
hgs
parents:
diff changeset
   266
    SMC_MOCK_METHOD1( void, int, state )
hgs
parents:
diff changeset
   267
    }
hgs
parents:
diff changeset
   268
hgs
parents:
diff changeset
   269