phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbicon.cpp
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 27 2f8f8080a020
parent 45 6b911d05207e
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
     1 /* 
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
    42 // -----------------------------------------------------------------------------
    42 // -----------------------------------------------------------------------------
    43 // HbIcon::HbIcon
    43 // HbIcon::HbIcon
    44 // -----------------------------------------------------------------------------
    44 // -----------------------------------------------------------------------------
    45 //
    45 //
    46 HbIcon::HbIcon( 
    46 HbIcon::HbIcon( 
    47         const QString & iconName )
    47         const QString & /*iconName*/ )
    48     {
    48     {
    49     
    49     
    50     }
    50     }
    51 
    51 
    52 
    52 
    53 // -----------------------------------------------------------------------------
    53 // -----------------------------------------------------------------------------
    54 // HbIcon::HbIcon
    54 // HbIcon::HbIcon
    55 // -----------------------------------------------------------------------------
    55 // -----------------------------------------------------------------------------
    56 //
    56 //
    57 HbIcon::HbIcon( 
    57 HbIcon::HbIcon( 
    58         const QIcon & icon )
    58         const QIcon & /*icon*/ )
    59     {
    59     {
    60     
    60     
    61     }
    61     }
    62 
    62 
    63 
    63 
    64 // -----------------------------------------------------------------------------
    64 // -----------------------------------------------------------------------------
    65 // HbIcon::HbIcon
    65 // HbIcon::HbIcon
    66 // -----------------------------------------------------------------------------
    66 // -----------------------------------------------------------------------------
    67 //
    67 //
    68 HbIcon::HbIcon( 
    68 HbIcon::HbIcon( 
    69         const HbIcon & other )
    69         const HbIcon & /*other*/ )
    70     {
    70     {
    71     
    71     
    72     }
    72     }
    73 
    73 
    74 // -----------------------------------------------------------------------------
    74 // -----------------------------------------------------------------------------
    90     SMC_MOCK_METHOD0( bool )
    90     SMC_MOCK_METHOD0( bool )
    91     }
    91     }
    92 
    92 
    93 
    93 
    94 // -----------------------------------------------------------------------------
    94 // -----------------------------------------------------------------------------
       
    95 // HbIcon::isBadged
       
    96 // -----------------------------------------------------------------------------
       
    97 //
       
    98 bool HbIcon::isBadged(  ) const
       
    99     {
       
   100     SMC_MOCK_METHOD0( bool )
       
   101     }
       
   102 
       
   103 
       
   104 // -----------------------------------------------------------------------------
    95 // HbIcon::clear
   105 // HbIcon::clear
    96 // -----------------------------------------------------------------------------
   106 // -----------------------------------------------------------------------------
    97 //
   107 //
    98 void HbIcon::clear(  )
   108 void HbIcon::clear(  )
    99     {
   109     {
   114 // -----------------------------------------------------------------------------
   124 // -----------------------------------------------------------------------------
   115 // HbIcon::setColor
   125 // HbIcon::setColor
   116 // -----------------------------------------------------------------------------
   126 // -----------------------------------------------------------------------------
   117 //
   127 //
   118 void HbIcon::setColor( 
   128 void HbIcon::setColor( 
   119         const QColor & color )
   129         const QColor & /*color*/ )
   120     {
   130     {
   121 //    SMC_MOCK_METHOD1( void, const QColor &, color )
   131 //    SMC_MOCK_METHOD1( void, const QColor &, color )
   122     }
   132     }
   123 
   133 
   124 
   134 
   156 // -----------------------------------------------------------------------------
   166 // -----------------------------------------------------------------------------
   157 // HbIcon::iconName
   167 // HbIcon::iconName
   158 // -----------------------------------------------------------------------------
   168 // -----------------------------------------------------------------------------
   159 //
   169 //
   160 QString HbIcon::iconName( 
   170 QString HbIcon::iconName( 
   161         QIcon::Mode mode,
   171         QIcon::Mode /*mode*/,
   162         QIcon::State state ) const
   172         QIcon::State /*state*/ ) const
   163     {
   173     {
   164 //    SMC_MOCK_METHOD2( QString, QIcon::Mode, mode, 
   174 //    SMC_MOCK_METHOD2( QString, QIcon::Mode, mode, 
   165 //        QIcon::State, state )
   175 //        QIcon::State, state )
   166     }
   176     }
   167 
   177 
   169 // -----------------------------------------------------------------------------
   179 // -----------------------------------------------------------------------------
   170 // HbIcon::setIconName
   180 // HbIcon::setIconName
   171 // -----------------------------------------------------------------------------
   181 // -----------------------------------------------------------------------------
   172 //
   182 //
   173 void HbIcon::setIconName( 
   183 void HbIcon::setIconName( 
   174         const QString & iconName,
   184         const QString & /*iconName*/,
   175         QIcon::Mode mode,
   185         QIcon::Mode /*mode*/,
   176         QIcon::State state )
   186         QIcon::State /*state*/ )
   177     {
   187     {
   178 //    SMC_MOCK_METHOD3( void, const QString &, iconName, 
   188 //    SMC_MOCK_METHOD3( void, const QString &, iconName, 
   179 //        QIcon::Mode, mode, 
   189 //        QIcon::Mode, mode, 
   180 //        QIcon::State, state )
   190 //        QIcon::State, state )
   181     }
   191     }
   204 // -----------------------------------------------------------------------------
   214 // -----------------------------------------------------------------------------
   205 // HbIcon::setSize
   215 // HbIcon::setSize
   206 // -----------------------------------------------------------------------------
   216 // -----------------------------------------------------------------------------
   207 //
   217 //
   208 void HbIcon::setSize( 
   218 void HbIcon::setSize( 
   209         const QSizeF & size )
   219         const QSizeF & /*size*/ )
   210     {
   220     {
   211 //    SMC_MOCK_METHOD1( void, const QSizeF &, size )
   221 //    SMC_MOCK_METHOD1( void, const QSizeF &, size )
   212     }
   222     }
   213 
   223 
   214 
   224 
   215 // -----------------------------------------------------------------------------
   225 // -----------------------------------------------------------------------------
   216 // HbIcon::setHeight
   226 // HbIcon::setHeight
   217 // -----------------------------------------------------------------------------
   227 // -----------------------------------------------------------------------------
   218 //
   228 //
   219 void HbIcon::setHeight( 
   229 void HbIcon::setHeight( 
   220         qreal height )
   230         qreal /*height*/ )
   221     {
   231     {
   222 //    SMC_MOCK_METHOD1( void, qreal, height )
   232 //    SMC_MOCK_METHOD1( void, qreal, height )
   223     }
   233     }
   224 
   234 
   225 
   235 
   226 // -----------------------------------------------------------------------------
   236 // -----------------------------------------------------------------------------
   227 // HbIcon::setWidth
   237 // HbIcon::setWidth
   228 // -----------------------------------------------------------------------------
   238 // -----------------------------------------------------------------------------
   229 //
   239 //
   230 void HbIcon::setWidth( 
   240 void HbIcon::setWidth( 
   231         qreal width )
   241         qreal /*width*/ )
   232     {
   242     {
   233 //    SMC_MOCK_METHOD1( void, qreal, width )
   243 //    SMC_MOCK_METHOD1( void, qreal, width )
   234     }
   244     }
   235 
   245 
   236 
   246 
   251 qreal HbIcon::height(  ) const
   261 qreal HbIcon::height(  ) const
   252     {
   262     {
   253 //    SMC_MOCK_METHOD0( qreal )
   263 //    SMC_MOCK_METHOD0( qreal )
   254     }
   264     }
   255 
   265 
       
   266 
       
   267 // -----------------------------------------------------------------------------
       
   268 // HbIcon::mirroringMode
       
   269 // -----------------------------------------------------------------------------
       
   270 //
       
   271 HbIcon::MirroringMode HbIcon::mirroringMode(  ) const
       
   272     {
       
   273     SMC_MOCK_METHOD0( MirroringMode )
       
   274     }
       
   275 
       
   276 
   256 // -----------------------------------------------------------------------------
   277 // -----------------------------------------------------------------------------
   257 // HbIcon::setMirroringMode
   278 // HbIcon::setMirroringMode
   258 // -----------------------------------------------------------------------------
   279 // -----------------------------------------------------------------------------
   259 //
   280 //
   260 void HbIcon::setMirroringMode( 
   281 void HbIcon::setMirroringMode( 
   261         MirroringMode mode )
   282         HbIcon::MirroringMode /*mode*/ )
   262     {
   283     {
   263 //    SMC_MOCK_METHOD1( void, MirroringMode, mode )
   284 //    SMC_MOCK_METHOD1( void, MirroringMode, mode )
   264     }
   285     }
   265 
   286 
       
   287 
       
   288 // -----------------------------------------------------------------------------
       
   289 // HbIcon::flags
       
   290 // -----------------------------------------------------------------------------
       
   291 //
       
   292 HbIcon::Flags HbIcon::flags(  ) const
       
   293     {
       
   294     //SMC_MOCK_METHOD0( Flags )
       
   295     }
       
   296 
       
   297 
   266 // -----------------------------------------------------------------------------
   298 // -----------------------------------------------------------------------------
   267 // HbIcon::setFlags
   299 // HbIcon::setFlags
   268 // -----------------------------------------------------------------------------
   300 // -----------------------------------------------------------------------------
   269 //
   301 //
   270 void HbIcon::setFlags( 
   302 void HbIcon::setFlags( 
   271         Flags flags )
   303         Flags /*flags*/ )
   272     {
   304     {
   273 //    SMC_MOCK_METHOD1( void, Flags, flags )
   305 //    SMC_MOCK_METHOD1( void, Flags, flags )
   274     }
   306     }
   275 
   307 
   276 
   308 
   277 // -----------------------------------------------------------------------------
   309 // -----------------------------------------------------------------------------
   278 // HbIcon::paint
   310 // HbIcon::paint
   279 // -----------------------------------------------------------------------------
   311 // -----------------------------------------------------------------------------
   280 //
   312 //
   281 void HbIcon::paint( 
   313 void HbIcon::paint( 
   282         QPainter * painter,
   314         QPainter * /*painter*/,
   283         const QRectF & rect,
   315         const QRectF & /*rect*/,
   284         Qt::AspectRatioMode aspectRatioMode,
   316         Qt::AspectRatioMode /*aspectRatioMode*/,
   285         Qt::Alignment alignment,
   317         Qt::Alignment /*alignment*/,
   286         QIcon::Mode mode,
   318         QIcon::Mode /*mode*/,
   287         QIcon::State state ) const
   319         QIcon::State /*state*/ ) const
   288     {
   320     {
   289 /*    SMC_MOCK_METHOD6( void, QPainter *, painter, 
   321 /*    SMC_MOCK_METHOD6( void, QPainter *, painter, 
   290         const QRectF &, rect, 
   322         const QRectF &, rect, 
   291         Qt::AspectRatioMode, aspectRatioMode, 
   323         Qt::AspectRatioMode, aspectRatioMode, 
   292         Qt::Alignment, alignment, 
   324         Qt::Alignment, alignment, 
   294         QIcon::State, state )*/
   326         QIcon::State, state )*/
   295     }
   327     }
   296 
   328 
   297 
   329 
   298 // -----------------------------------------------------------------------------
   330 // -----------------------------------------------------------------------------
       
   331 // HbIcon::QVariant
       
   332 // -----------------------------------------------------------------------------
       
   333 //
       
   334 /*
       
   335 operator HbIcon::QVariant(  ) const
       
   336     {
       
   337     SMC_MOCK_METHOD0( operator )
       
   338     }
       
   339 */
       
   340 
       
   341 // -----------------------------------------------------------------------------
   299 // HbIcon::qicon
   342 // HbIcon::qicon
   300 // -----------------------------------------------------------------------------
   343 // -----------------------------------------------------------------------------
   301 //
   344 //
   302 QIcon & HbIcon::qicon(  ) const
   345 QIcon & HbIcon::qicon(  ) const
   303     {
   346     {
   304  //   SMC_MOCK_METHOD0( QIcon & )
   347  //   SMC_MOCK_METHOD0( QIcon & )
   305     }
   348     }
   306 
   349 
   307 
   350 
       
   351 // -----------------------------------------------------------------------------
       
   352 // HbIcon::addBadge
       
   353 // -----------------------------------------------------------------------------
       
   354 //
       
   355 bool HbIcon::addBadge( 
       
   356         Qt::Alignment alignment,
       
   357         const HbIcon & badge,
       
   358         int z )
       
   359     {
       
   360    /*
       
   361     SMC_MOCK_METHOD3( bool, Qt::Alignment, alignment, 
       
   362         const HbIcon &, badge, 
       
   363         int, z )
       
   364         */
       
   365     }
       
   366 
       
   367 
       
   368 // -----------------------------------------------------------------------------
       
   369 // HbIcon::removeBadge
       
   370 // -----------------------------------------------------------------------------
       
   371 //
       
   372 bool HbIcon::removeBadge( 
       
   373         const HbIcon & badge )
       
   374     {
       
   375    // SMC_MOCK_METHOD1( bool, const HbIcon &, badge )
       
   376     }
       
   377 
       
   378 
       
   379 // -----------------------------------------------------------------------------
       
   380 // HbIcon::removeAllBadges
       
   381 // -----------------------------------------------------------------------------
       
   382 //
       
   383 void HbIcon::removeAllBadges(  )
       
   384     {
       
   385     SMC_MOCK_METHOD0( void )
       
   386     }
       
   387 
       
   388