phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_hbframedrawer.cpp
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 40 bab96b7ed1a4
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 #include <QDebug>
       
    18 #include <QBitmap>
       
    19 #include <QPainter>
       
    20 #include <QGraphicsItem>
       
    21 #include <smcmockclassincludes.h>
       
    22 #include <hbframedrawer.h>
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // HbFrameDrawer::HbFrameDrawer
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 HbFrameDrawer::HbFrameDrawer( 
       
    31         bool cacheFlag )
       
    32     {
       
    33     }
       
    34 
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // HbFrameDrawer::HbFrameDrawer
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 HbFrameDrawer::HbFrameDrawer( 
       
    41         const QString & frameGraphicsName,
       
    42         FrameType type,
       
    43         bool cacheFlag )
       
    44     {
       
    45     }
       
    46 
       
    47 
       
    48 // -----------------------------------------------------------------------------
       
    49 // HbFrameDrawer::~HbFrameDrawer
       
    50 // -----------------------------------------------------------------------------
       
    51 //
       
    52 HbFrameDrawer::~HbFrameDrawer(  )
       
    53     {
       
    54     }
       
    55 
       
    56 
       
    57 // -----------------------------------------------------------------------------
       
    58 // HbFrameDrawer::isNull
       
    59 // -----------------------------------------------------------------------------
       
    60 //
       
    61 bool HbFrameDrawer::isNull(  ) const
       
    62     {
       
    63     SMC_MOCK_METHOD0( bool )
       
    64     }
       
    65 
       
    66 
       
    67 // -----------------------------------------------------------------------------
       
    68 // HbFrameDrawer::frameGraphicsName
       
    69 // -----------------------------------------------------------------------------
       
    70 //
       
    71 QString HbFrameDrawer::frameGraphicsName(  ) const
       
    72     {
       
    73     SMC_MOCK_METHOD0( QString )
       
    74     }
       
    75 
       
    76 
       
    77 // -----------------------------------------------------------------------------
       
    78 // HbFrameDrawer::setFrameGraphicsName
       
    79 // -----------------------------------------------------------------------------
       
    80 //
       
    81 void HbFrameDrawer::setFrameGraphicsName( 
       
    82         const QString & frameGraphicsName )
       
    83     {
       
    84     SMC_MOCK_METHOD1( void, const QString &, frameGraphicsName )
       
    85     }
       
    86 
       
    87 
       
    88 // -----------------------------------------------------------------------------
       
    89 // HbFrameDrawer::frameType
       
    90 // -----------------------------------------------------------------------------
       
    91 //
       
    92 HbFrameDrawer::FrameType HbFrameDrawer::frameType() const
       
    93     {
       
    94     SMC_MOCK_METHOD0( FrameType )
       
    95     }
       
    96 
       
    97 
       
    98 // -----------------------------------------------------------------------------
       
    99 // HbFrameDrawer::setFrameType
       
   100 // -----------------------------------------------------------------------------
       
   101 //
       
   102 void HbFrameDrawer::setFrameType( 
       
   103         HbFrameDrawer::FrameType type )
       
   104     {
       
   105     SMC_MOCK_METHOD1( void, FrameType, type )
       
   106     }
       
   107 
       
   108 
       
   109 // -----------------------------------------------------------------------------
       
   110 // HbFrameDrawer::borderWidths
       
   111 // -----------------------------------------------------------------------------
       
   112 //
       
   113 void HbFrameDrawer::borderWidths( 
       
   114         qreal & left,
       
   115         qreal & top,
       
   116         qreal & right,
       
   117         qreal & bottom ) const
       
   118     {
       
   119     SMC_MOCK_METHOD4( void, qreal &, left, 
       
   120         qreal &, top, 
       
   121         qreal &, right, 
       
   122         qreal &, bottom )
       
   123     }
       
   124 
       
   125 
       
   126 // -----------------------------------------------------------------------------
       
   127 // HbFrameDrawer::setBorderWidths
       
   128 // -----------------------------------------------------------------------------
       
   129 //
       
   130 void HbFrameDrawer::setBorderWidths( 
       
   131         const qreal left,
       
   132         const qreal top,
       
   133         const qreal right,
       
   134         const qreal bottom )
       
   135     {
       
   136     SMC_MOCK_METHOD4( void, const qreal, left, 
       
   137         const qreal, top, 
       
   138         const qreal, right, 
       
   139         const qreal, bottom )
       
   140     }
       
   141 
       
   142 
       
   143 // -----------------------------------------------------------------------------
       
   144 // HbFrameDrawer::setBorderWidths
       
   145 // -----------------------------------------------------------------------------
       
   146 //
       
   147 void HbFrameDrawer::setBorderWidths( 
       
   148         const qreal horizontal,
       
   149         const qreal vertical )
       
   150     {
       
   151     SMC_MOCK_METHOD2( void, const qreal, horizontal, 
       
   152         const qreal, vertical )
       
   153     }
       
   154 
       
   155 
       
   156 // -----------------------------------------------------------------------------
       
   157 // HbFrameDrawer::setBorderWidth
       
   158 // -----------------------------------------------------------------------------
       
   159 //
       
   160 void HbFrameDrawer::setBorderWidth( 
       
   161         const qreal width )
       
   162     {
       
   163     SMC_MOCK_METHOD1( void, const qreal, width )
       
   164     }
       
   165 
       
   166 
       
   167 // -----------------------------------------------------------------------------
       
   168 // HbFrameDrawer::fillWholeRect
       
   169 // -----------------------------------------------------------------------------
       
   170 //
       
   171 bool HbFrameDrawer::fillWholeRect(  ) const
       
   172     {
       
   173     SMC_MOCK_METHOD0( bool )
       
   174     }
       
   175 
       
   176 
       
   177 // -----------------------------------------------------------------------------
       
   178 // HbFrameDrawer::setFillWholeRect
       
   179 // -----------------------------------------------------------------------------
       
   180 //
       
   181 void HbFrameDrawer::setFillWholeRect( 
       
   182         bool fill )
       
   183     {
       
   184     SMC_MOCK_METHOD1( void, bool, fill )
       
   185     }
       
   186 
       
   187 
       
   188 // -----------------------------------------------------------------------------
       
   189 // HbFrameDrawer::mirroringMode
       
   190 // -----------------------------------------------------------------------------
       
   191 //
       
   192 HbIcon::MirroringMode HbFrameDrawer::mirroringMode(  ) const
       
   193     {
       
   194     SMC_MOCK_METHOD0( HbIcon::MirroringMode )
       
   195     }
       
   196 
       
   197 
       
   198 // -----------------------------------------------------------------------------
       
   199 // HbFrameDrawer::setMirroringMode
       
   200 // -----------------------------------------------------------------------------
       
   201 //
       
   202 void HbFrameDrawer::setMirroringMode( 
       
   203         HbIcon::MirroringMode mode )
       
   204     {
       
   205     SMC_MOCK_METHOD1( void, HbIcon::MirroringMode, mode )
       
   206     }
       
   207 
       
   208 
       
   209 // -----------------------------------------------------------------------------
       
   210 // HbFrameDrawer::fileNameSuffixList
       
   211 // -----------------------------------------------------------------------------
       
   212 //
       
   213 QStringList HbFrameDrawer::fileNameSuffixList(  ) const
       
   214     {
       
   215     SMC_MOCK_METHOD0( QStringList )
       
   216     }
       
   217 
       
   218 
       
   219 // -----------------------------------------------------------------------------
       
   220 // HbFrameDrawer::setFileNameSuffixList
       
   221 // -----------------------------------------------------------------------------
       
   222 //
       
   223 void HbFrameDrawer::setFileNameSuffixList( 
       
   224         const QStringList & list )
       
   225     {
       
   226     SMC_MOCK_METHOD1( void, const QStringList &, list )
       
   227     }
       
   228 
       
   229 
       
   230 // -----------------------------------------------------------------------------
       
   231 // HbFrameDrawer::setMask
       
   232 // -----------------------------------------------------------------------------
       
   233 //
       
   234 void HbFrameDrawer::setMask( 
       
   235         const QPixmap & mask )
       
   236     {
       
   237     SMC_MOCK_METHOD1( void, const QPixmap &, mask )
       
   238     }
       
   239 
       
   240 
       
   241 // -----------------------------------------------------------------------------
       
   242 // HbFrameDrawer::setMask
       
   243 // -----------------------------------------------------------------------------
       
   244 //
       
   245 void HbFrameDrawer::setMask( 
       
   246         const QBitmap & mask )
       
   247     {
       
   248     SMC_MOCK_METHOD1( void, const QBitmap &, mask )
       
   249     }
       
   250 
       
   251 
       
   252 // -----------------------------------------------------------------------------
       
   253 // HbFrameDrawer::mask
       
   254 // -----------------------------------------------------------------------------
       
   255 //
       
   256 QPixmap HbFrameDrawer::mask(  ) const
       
   257     {
       
   258     SMC_MOCK_METHOD0( QPixmap )
       
   259     }
       
   260 
       
   261 
       
   262 // -----------------------------------------------------------------------------
       
   263 // HbFrameDrawer::maskBitmap
       
   264 // -----------------------------------------------------------------------------
       
   265 //
       
   266 QBitmap HbFrameDrawer::maskBitmap(  ) const
       
   267     {
       
   268     SMC_MOCK_METHOD0( QBitmap )
       
   269     }
       
   270 
       
   271 
       
   272 // -----------------------------------------------------------------------------
       
   273 // HbFrameDrawer::frameSize
       
   274 // -----------------------------------------------------------------------------
       
   275 //
       
   276 QSize HbFrameDrawer::frameSize(  ) const
       
   277     {
       
   278     SMC_MOCK_METHOD0( QSize )
       
   279     }
       
   280 
       
   281 
       
   282 // -----------------------------------------------------------------------------
       
   283 // HbFrameDrawer::themeChanged
       
   284 // -----------------------------------------------------------------------------
       
   285 //
       
   286 void HbFrameDrawer::themeChanged(  )
       
   287     {
       
   288     SMC_MOCK_METHOD0( void )
       
   289     }
       
   290 
       
   291 
       
   292 // -----------------------------------------------------------------------------
       
   293 // HbFrameDrawer::setLayoutDirection
       
   294 // -----------------------------------------------------------------------------
       
   295 //
       
   296 void HbFrameDrawer::setLayoutDirection( 
       
   297         Qt::LayoutDirection direction )
       
   298     {
       
   299     SMC_MOCK_METHOD1( void, Qt::LayoutDirection, direction )
       
   300     }
       
   301 
       
   302 
       
   303 // -----------------------------------------------------------------------------
       
   304 // HbFrameDrawer::setGraphicsItem
       
   305 // -----------------------------------------------------------------------------
       
   306 //
       
   307 void HbFrameDrawer::setGraphicsItem( 
       
   308         QGraphicsItem * item )
       
   309     {
       
   310     SMC_MOCK_METHOD1( void, QGraphicsItem *, item )
       
   311     }
       
   312 
       
   313 
       
   314 // -----------------------------------------------------------------------------
       
   315 // HbFrameDrawer::paint
       
   316 // -----------------------------------------------------------------------------
       
   317 //
       
   318 void HbFrameDrawer::paint( 
       
   319         QPainter * painter,
       
   320         const QRectF & rect ) const
       
   321     {
       
   322     SMC_MOCK_METHOD2( void, QPainter *, painter, 
       
   323         const QRectF &, rect )
       
   324     }
       
   325 
       
   326 
       
   327 // -----------------------------------------------------------------------------
       
   328 // HbFrameDrawer::rect
       
   329 // -----------------------------------------------------------------------------
       
   330 //
       
   331 QRectF HbFrameDrawer::rect(  ) const
       
   332     {
       
   333     SMC_MOCK_METHOD0( QRectF )
       
   334     }
       
   335 
       
   336 
       
   337 // -----------------------------------------------------------------------------
       
   338 // HbFrameDrawer::setRect
       
   339 // -----------------------------------------------------------------------------
       
   340 //
       
   341 void HbFrameDrawer::setRect( 
       
   342         const QRectF & rect )
       
   343     {
       
   344     SMC_MOCK_METHOD1( void, const QRectF &, rect )
       
   345     }
       
   346 
       
   347