phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbicon.cpp
changeset 37 ba76fc04e6c2
child 45 6b911d05207e
equal deleted inserted replaced
36:2eacb6118286 37:ba76fc04e6c2
       
     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 <smcmockclassincludes.h>
       
    19 #include <hbicon.h>
       
    20 
       
    21 class HbIconPrivate
       
    22 {
       
    23 public:
       
    24     HbIconPrivate(){};
       
    25     ~HbIconPrivate(){};
       
    26     
       
    27     QAtomicInt ref;
       
    28 };
       
    29 
       
    30 // ============================ MEMBER FUNCTIONS ===============================
       
    31 
       
    32 // -----------------------------------------------------------------------------
       
    33 // HbIcon::HbIcon
       
    34 // -----------------------------------------------------------------------------
       
    35 //
       
    36 HbIcon::HbIcon(  )
       
    37     {
       
    38     
       
    39     }
       
    40 
       
    41 
       
    42 // -----------------------------------------------------------------------------
       
    43 // HbIcon::HbIcon
       
    44 // -----------------------------------------------------------------------------
       
    45 //
       
    46 HbIcon::HbIcon( 
       
    47         const QString & iconName )
       
    48     {
       
    49     
       
    50     }
       
    51 
       
    52 
       
    53 // -----------------------------------------------------------------------------
       
    54 // HbIcon::HbIcon
       
    55 // -----------------------------------------------------------------------------
       
    56 //
       
    57 HbIcon::HbIcon( 
       
    58         const QIcon & icon )
       
    59     {
       
    60     
       
    61     }
       
    62 
       
    63 
       
    64 // -----------------------------------------------------------------------------
       
    65 // HbIcon::HbIcon
       
    66 // -----------------------------------------------------------------------------
       
    67 //
       
    68 HbIcon::HbIcon( 
       
    69         const HbIcon & other )
       
    70     {
       
    71     
       
    72     }
       
    73 
       
    74 // -----------------------------------------------------------------------------
       
    75 // HbIcon::~HbIcon
       
    76 // -----------------------------------------------------------------------------
       
    77 //
       
    78 HbIcon::~HbIcon(  )
       
    79     {
       
    80     
       
    81     }
       
    82 
       
    83 
       
    84 // -----------------------------------------------------------------------------
       
    85 // HbIcon::isNull
       
    86 // -----------------------------------------------------------------------------
       
    87 //
       
    88 bool HbIcon::isNull(  ) const
       
    89     {
       
    90     SMC_MOCK_METHOD0( bool )
       
    91     }
       
    92 
       
    93 
       
    94 // -----------------------------------------------------------------------------
       
    95 // HbIcon::clear
       
    96 // -----------------------------------------------------------------------------
       
    97 //
       
    98 void HbIcon::clear(  )
       
    99     {
       
   100     SMC_MOCK_METHOD0( void )
       
   101     }
       
   102 
       
   103 
       
   104 // -----------------------------------------------------------------------------
       
   105 // HbIcon::pixmap
       
   106 // -----------------------------------------------------------------------------
       
   107 //
       
   108 QPixmap HbIcon::pixmap(  )
       
   109     {
       
   110 //    SMC_MOCK_METHOD0( QPixmap )
       
   111     }
       
   112 
       
   113 
       
   114 // -----------------------------------------------------------------------------
       
   115 // HbIcon::setColor
       
   116 // -----------------------------------------------------------------------------
       
   117 //
       
   118 void HbIcon::setColor( 
       
   119         const QColor & color )
       
   120     {
       
   121 //    SMC_MOCK_METHOD1( void, const QColor &, color )
       
   122     }
       
   123 
       
   124 
       
   125 // -----------------------------------------------------------------------------
       
   126 // HbIcon::color
       
   127 // -----------------------------------------------------------------------------
       
   128 //
       
   129 QColor HbIcon::color(  ) const
       
   130     {
       
   131 //    SMC_MOCK_METHOD0( QColor )
       
   132     }
       
   133 
       
   134 
       
   135 // -----------------------------------------------------------------------------
       
   136 // HbIcon::iconName
       
   137 // -----------------------------------------------------------------------------
       
   138 //
       
   139 QString HbIcon::iconName(  ) const
       
   140     {
       
   141     SMC_MOCK_METHOD0( QString )
       
   142     }
       
   143 
       
   144 
       
   145 // -----------------------------------------------------------------------------
       
   146 // HbIcon::setIconName
       
   147 // -----------------------------------------------------------------------------
       
   148 //
       
   149 void HbIcon::setIconName( 
       
   150         const QString & iconName )
       
   151     {
       
   152     SMC_MOCK_METHOD1( void, const QString &, iconName )
       
   153     }
       
   154 
       
   155 
       
   156 // -----------------------------------------------------------------------------
       
   157 // HbIcon::iconName
       
   158 // -----------------------------------------------------------------------------
       
   159 //
       
   160 QString HbIcon::iconName( 
       
   161         QIcon::Mode mode,
       
   162         QIcon::State state ) const
       
   163     {
       
   164 //    SMC_MOCK_METHOD2( QString, QIcon::Mode, mode, 
       
   165 //        QIcon::State, state )
       
   166     }
       
   167 
       
   168 
       
   169 // -----------------------------------------------------------------------------
       
   170 // HbIcon::setIconName
       
   171 // -----------------------------------------------------------------------------
       
   172 //
       
   173 void HbIcon::setIconName( 
       
   174         const QString & iconName,
       
   175         QIcon::Mode mode,
       
   176         QIcon::State state )
       
   177     {
       
   178 //    SMC_MOCK_METHOD3( void, const QString &, iconName, 
       
   179 //        QIcon::Mode, mode, 
       
   180 //        QIcon::State, state )
       
   181     }
       
   182 
       
   183 
       
   184 // -----------------------------------------------------------------------------
       
   185 // HbIcon::defaultSize
       
   186 // -----------------------------------------------------------------------------
       
   187 //
       
   188 QSizeF HbIcon::defaultSize(  ) const
       
   189     {
       
   190 //    SMC_MOCK_METHOD0( QSizeF )
       
   191     }
       
   192 
       
   193 
       
   194 // -----------------------------------------------------------------------------
       
   195 // HbIcon::size
       
   196 // -----------------------------------------------------------------------------
       
   197 //
       
   198 QSizeF HbIcon::size(  ) const
       
   199     {
       
   200 //    SMC_MOCK_METHOD0( QSizeF )
       
   201     }
       
   202 
       
   203 
       
   204 // -----------------------------------------------------------------------------
       
   205 // HbIcon::setSize
       
   206 // -----------------------------------------------------------------------------
       
   207 //
       
   208 void HbIcon::setSize( 
       
   209         const QSizeF & size )
       
   210     {
       
   211 //    SMC_MOCK_METHOD1( void, const QSizeF &, size )
       
   212     }
       
   213 
       
   214 
       
   215 // -----------------------------------------------------------------------------
       
   216 // HbIcon::setHeight
       
   217 // -----------------------------------------------------------------------------
       
   218 //
       
   219 void HbIcon::setHeight( 
       
   220         qreal height )
       
   221     {
       
   222 //    SMC_MOCK_METHOD1( void, qreal, height )
       
   223     }
       
   224 
       
   225 
       
   226 // -----------------------------------------------------------------------------
       
   227 // HbIcon::setWidth
       
   228 // -----------------------------------------------------------------------------
       
   229 //
       
   230 void HbIcon::setWidth( 
       
   231         qreal width )
       
   232     {
       
   233 //    SMC_MOCK_METHOD1( void, qreal, width )
       
   234     }
       
   235 
       
   236 
       
   237 // -----------------------------------------------------------------------------
       
   238 // HbIcon::width
       
   239 // -----------------------------------------------------------------------------
       
   240 //
       
   241 qreal HbIcon::width(  ) const
       
   242     {
       
   243 //    SMC_MOCK_METHOD0( qreal )
       
   244     }
       
   245 
       
   246 
       
   247 // -----------------------------------------------------------------------------
       
   248 // HbIcon::height
       
   249 // -----------------------------------------------------------------------------
       
   250 //
       
   251 qreal HbIcon::height(  ) const
       
   252     {
       
   253 //    SMC_MOCK_METHOD0( qreal )
       
   254     }
       
   255 
       
   256 // -----------------------------------------------------------------------------
       
   257 // HbIcon::setMirroringMode
       
   258 // -----------------------------------------------------------------------------
       
   259 //
       
   260 void HbIcon::setMirroringMode( 
       
   261         MirroringMode mode )
       
   262     {
       
   263 //    SMC_MOCK_METHOD1( void, MirroringMode, mode )
       
   264     }
       
   265 
       
   266 // -----------------------------------------------------------------------------
       
   267 // HbIcon::setFlags
       
   268 // -----------------------------------------------------------------------------
       
   269 //
       
   270 void HbIcon::setFlags( 
       
   271         Flags flags )
       
   272     {
       
   273 //    SMC_MOCK_METHOD1( void, Flags, flags )
       
   274     }
       
   275 
       
   276 
       
   277 // -----------------------------------------------------------------------------
       
   278 // HbIcon::paint
       
   279 // -----------------------------------------------------------------------------
       
   280 //
       
   281 void HbIcon::paint( 
       
   282         QPainter * painter,
       
   283         const QRectF & rect,
       
   284         Qt::AspectRatioMode aspectRatioMode,
       
   285         Qt::Alignment alignment,
       
   286         QIcon::Mode mode,
       
   287         QIcon::State state ) const
       
   288     {
       
   289 /*    SMC_MOCK_METHOD6( void, QPainter *, painter, 
       
   290         const QRectF &, rect, 
       
   291         Qt::AspectRatioMode, aspectRatioMode, 
       
   292         Qt::Alignment, alignment, 
       
   293         QIcon::Mode, mode, 
       
   294         QIcon::State, state )*/
       
   295     }
       
   296 
       
   297 
       
   298 // -----------------------------------------------------------------------------
       
   299 // HbIcon::qicon
       
   300 // -----------------------------------------------------------------------------
       
   301 //
       
   302 QIcon & HbIcon::qicon(  ) const
       
   303     {
       
   304  //   SMC_MOCK_METHOD0( QIcon & )
       
   305     }
       
   306 
       
   307