phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbscrollarea.cpp
changeset 36 2eacb6118286
parent 30 ebdbd102c78a
child 37 ba76fc04e6c2
equal deleted inserted replaced
30:ebdbd102c78a 36:2eacb6118286
     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 <hbscrollarea.h>
       
    20 
       
    21 // ============================ MEMBER FUNCTIONS ===============================
       
    22 
       
    23 // -----------------------------------------------------------------------------
       
    24 // HbScrollArea::HbScrollArea
       
    25 // -----------------------------------------------------------------------------
       
    26 //
       
    27 HbScrollArea::HbScrollArea( 
       
    28         HbScrollAreaPrivate & dd,
       
    29         QGraphicsItem * parent )
       
    30     //:
       
    31     //HbWidget( /*dd, parent*/ )
       
    32     {
       
    33     
       
    34     }
       
    35 
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // HbScrollArea::Q_PROPERTY
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 /*
       
    42 void HbScrollArea::Q_PROPERTY( 
       
    43         Qt::Orientations scrollDirections READ scrollDirections WRITE setScrollDirections ) Q_PROPERTY ( ClampingStyle clampingStyle READ clampingStyle WRITE setClampingStyle ) Q_PROPERTY ( ScrollingStyle scrollingStyle READ scrollingStyle WRITE setScrollingStyle ) Q_PROPERTY ( bool frictionEnabled READ frictionEnabled WRITE setFrictionEnabled ) Q_PROPERTY ( bool longPressEnabled READ longPressEnabled WRITE setLongPressEnabled ) Q_PROPERTY ( ScrollBarPolicy verticalScrollBarPolicy READ verticalScrollBarPolicy WRITE setVerticalScrollBarPolicy ) Q_PROPERTY ( ScrollBarPolicy horizontalScrollBarPolicy READ horizontalScrollBarPolicy WRITE setHorizontalScrollBarPolicy ) Q_PROPERTY ( Qt::Alignment alignment READ alignment WRITE setAlignment ) Q_PROPERTY ( bool continuationIndicators READ continuationIndicators WRITE setContinuationIndicators ) Q_ENUMS ( ClampingStyle ) Q_ENUMS ( ScrollingStyle ) Q_ENUMS ( ScrollBarPolicy ):HbScrollArea ( QGraphicsItem * parent )
       
    44     {
       
    45     SMC_MOCK_METHOD1( void, Qt::Orientations scrollDirections READ scrollDirections WRITE setScrollDirections ) Q_PROPERTY ( ClampingStyle clampingStyle READ clampingStyle WRITE setClampingStyle ) Q_PROPERTY ( ScrollingStyle scrollingStyle READ scrollingStyle WRITE setScrollingStyle ) Q_PROPERTY ( bool frictionEnabled READ frictionEnabled WRITE setFrictionEnabled ) Q_PROPERTY ( bool longPressEnabled READ longPressEnabled WRITE setLongPressEnabled ) Q_PROPERTY ( ScrollBarPolicy verticalScrollBarPolicy READ verticalScrollBarPolicy WRITE setVerticalScrollBarPolicy ) Q_PROPERTY ( ScrollBarPolicy horizontalScrollBarPolicy READ horizontalScrollBarPolicy WRITE setHorizontalScrollBarPolicy ) Q_PROPERTY ( Qt::Alignment alignment READ alignment WRITE setAlignment ) Q_PROPERTY ( bool continuationIndicators READ continuationIndicators WRITE setContinuationIndicators ) Q_ENUMS ( ClampingStyle ) Q_ENUMS ( ScrollingStyle ) Q_ENUMS ( ScrollBarPolicy ):HbScrollArea ( QGraphicsItem *, parent )
       
    46     }*/
       
    47 
       
    48 
       
    49 // -----------------------------------------------------------------------------
       
    50 // HbScrollArea::~HbScrollArea
       
    51 // -----------------------------------------------------------------------------
       
    52 //
       
    53 HbScrollArea::~HbScrollArea(  )
       
    54     {
       
    55     
       
    56     }
       
    57 
       
    58 
       
    59 // -----------------------------------------------------------------------------
       
    60 // HbScrollArea::contentWidget
       
    61 // -----------------------------------------------------------------------------
       
    62 //
       
    63 QGraphicsWidget * HbScrollArea::contentWidget(  ) const
       
    64     {
       
    65 
       
    66     }
       
    67 
       
    68 
       
    69 // -----------------------------------------------------------------------------
       
    70 // HbScrollArea::setContentWidget
       
    71 // -----------------------------------------------------------------------------
       
    72 //
       
    73 void HbScrollArea::setContentWidget( 
       
    74         QGraphicsWidget * widget )
       
    75     {
       
    76 
       
    77     }
       
    78 
       
    79 
       
    80 // -----------------------------------------------------------------------------
       
    81 // HbScrollArea::takeContentWidget
       
    82 // -----------------------------------------------------------------------------
       
    83 //
       
    84 QGraphicsWidget * HbScrollArea::takeContentWidget(  )
       
    85     {
       
    86 
       
    87     }
       
    88 
       
    89 
       
    90 // -----------------------------------------------------------------------------
       
    91 // HbScrollArea::clampingStyle
       
    92 // -----------------------------------------------------------------------------
       
    93 //
       
    94 HbScrollArea::ClampingStyle HbScrollArea::clampingStyle(  ) const
       
    95     {
       
    96 
       
    97     }
       
    98 
       
    99 
       
   100 // -----------------------------------------------------------------------------
       
   101 // HbScrollArea::setClampingStyle
       
   102 // -----------------------------------------------------------------------------
       
   103 //
       
   104 void HbScrollArea::setClampingStyle( 
       
   105         ClampingStyle value )
       
   106     {
       
   107 
       
   108     }
       
   109 
       
   110 
       
   111 // -----------------------------------------------------------------------------
       
   112 // HbScrollArea::scrollingStyle
       
   113 // -----------------------------------------------------------------------------
       
   114 //
       
   115 HbScrollArea::ScrollingStyle HbScrollArea::scrollingStyle(  ) const
       
   116     {
       
   117 
       
   118     }
       
   119 
       
   120 
       
   121 // -----------------------------------------------------------------------------
       
   122 // HbScrollArea::setScrollingStyle
       
   123 // -----------------------------------------------------------------------------
       
   124 //
       
   125 void HbScrollArea::setScrollingStyle( 
       
   126         ScrollingStyle value )
       
   127     {
       
   128 
       
   129     }
       
   130 
       
   131 
       
   132 // -----------------------------------------------------------------------------
       
   133 // HbScrollArea::scrollDirections
       
   134 // -----------------------------------------------------------------------------
       
   135 //
       
   136 Qt::Orientations HbScrollArea::scrollDirections(  ) const
       
   137     {
       
   138 
       
   139     }
       
   140 
       
   141 
       
   142 // -----------------------------------------------------------------------------
       
   143 // HbScrollArea::setScrollDirections
       
   144 // -----------------------------------------------------------------------------
       
   145 //
       
   146 void HbScrollArea::setScrollDirections( 
       
   147         Qt::Orientations value )
       
   148     {
       
   149 
       
   150     }
       
   151 
       
   152 
       
   153 // -----------------------------------------------------------------------------
       
   154 // HbScrollArea::frictionEnabled
       
   155 // -----------------------------------------------------------------------------
       
   156 //
       
   157 bool HbScrollArea::frictionEnabled(  ) const
       
   158     {
       
   159     SMC_MOCK_METHOD0( bool )
       
   160     }
       
   161 
       
   162 
       
   163 // -----------------------------------------------------------------------------
       
   164 // HbScrollArea::setFrictionEnabled
       
   165 // -----------------------------------------------------------------------------
       
   166 //
       
   167 void HbScrollArea::setFrictionEnabled( 
       
   168         bool value )
       
   169     {
       
   170     SMC_MOCK_METHOD1( void, bool, value )
       
   171     }
       
   172 
       
   173 
       
   174 // -----------------------------------------------------------------------------
       
   175 // HbScrollArea::longPressEnabled
       
   176 // -----------------------------------------------------------------------------
       
   177 //
       
   178 bool HbScrollArea::longPressEnabled(  ) const
       
   179     {
       
   180     SMC_MOCK_METHOD0( bool )
       
   181     }
       
   182 
       
   183 
       
   184 // -----------------------------------------------------------------------------
       
   185 // HbScrollArea::setLongPressEnabled
       
   186 // -----------------------------------------------------------------------------
       
   187 //
       
   188 void HbScrollArea::setLongPressEnabled( 
       
   189         bool value )
       
   190     {
       
   191     SMC_MOCK_METHOD1( void, bool, value )
       
   192     }
       
   193 
       
   194 
       
   195 // -----------------------------------------------------------------------------
       
   196 // HbScrollArea::verticalScrollBarPolicy
       
   197 // -----------------------------------------------------------------------------
       
   198 //
       
   199 HbScrollArea::ScrollBarPolicy HbScrollArea::verticalScrollBarPolicy(  ) const
       
   200     {
       
   201 
       
   202     }
       
   203 
       
   204 
       
   205 // -----------------------------------------------------------------------------
       
   206 // HbScrollArea::setVerticalScrollBarPolicy
       
   207 // -----------------------------------------------------------------------------
       
   208 //
       
   209 void HbScrollArea::setVerticalScrollBarPolicy( 
       
   210         HbScrollArea::ScrollBarPolicy policy )
       
   211     {
       
   212 
       
   213     }
       
   214 
       
   215 
       
   216 // -----------------------------------------------------------------------------
       
   217 // HbScrollArea::verticalScrollBar
       
   218 // -----------------------------------------------------------------------------
       
   219 //
       
   220 HbScrollBar * HbScrollArea::verticalScrollBar(  ) const
       
   221     {
       
   222 
       
   223     }
       
   224 
       
   225 
       
   226 // -----------------------------------------------------------------------------
       
   227 // HbScrollArea::setVerticalScrollBar
       
   228 // -----------------------------------------------------------------------------
       
   229 //
       
   230 void HbScrollArea::setVerticalScrollBar( 
       
   231         HbScrollBar * scrollBar )
       
   232     {
       
   233 
       
   234     }
       
   235 
       
   236 
       
   237 // -----------------------------------------------------------------------------
       
   238 // HbScrollArea::horizontalScrollBarPolicy
       
   239 // -----------------------------------------------------------------------------
       
   240 //
       
   241 HbScrollArea::ScrollBarPolicy HbScrollArea::horizontalScrollBarPolicy(  ) const
       
   242     {
       
   243 
       
   244     }
       
   245 
       
   246 
       
   247 // -----------------------------------------------------------------------------
       
   248 // HbScrollArea::setHorizontalScrollBarPolicy
       
   249 // -----------------------------------------------------------------------------
       
   250 //
       
   251 void HbScrollArea::setHorizontalScrollBarPolicy( 
       
   252         HbScrollArea::ScrollBarPolicy policy )
       
   253     {
       
   254 
       
   255     }
       
   256 
       
   257 
       
   258 // -----------------------------------------------------------------------------
       
   259 // HbScrollArea::horizontalScrollBar
       
   260 // -----------------------------------------------------------------------------
       
   261 //
       
   262 HbScrollBar * HbScrollArea::horizontalScrollBar(  ) const
       
   263     {
       
   264 
       
   265     }
       
   266 
       
   267 
       
   268 // -----------------------------------------------------------------------------
       
   269 // HbScrollArea::setHorizontalScrollBar
       
   270 // -----------------------------------------------------------------------------
       
   271 //
       
   272 void HbScrollArea::setHorizontalScrollBar( 
       
   273         HbScrollBar * scrollBar )
       
   274     {
       
   275 
       
   276     }
       
   277 
       
   278 
       
   279 // -----------------------------------------------------------------------------
       
   280 // HbScrollArea::alignment
       
   281 // -----------------------------------------------------------------------------
       
   282 //
       
   283 Qt::Alignment HbScrollArea::alignment(  ) const
       
   284     {
       
   285 
       
   286     }
       
   287 
       
   288 
       
   289 // -----------------------------------------------------------------------------
       
   290 // HbScrollArea::setAlignment
       
   291 // -----------------------------------------------------------------------------
       
   292 //
       
   293 void HbScrollArea::setAlignment( 
       
   294         Qt::Alignment alignment )
       
   295     {
       
   296 
       
   297     }
       
   298 
       
   299 
       
   300 // -----------------------------------------------------------------------------
       
   301 // HbScrollArea::continuationIndicators
       
   302 // -----------------------------------------------------------------------------
       
   303 //
       
   304 bool HbScrollArea::continuationIndicators(  ) const
       
   305     {
       
   306     SMC_MOCK_METHOD0( bool )
       
   307     }
       
   308 
       
   309 
       
   310 // -----------------------------------------------------------------------------
       
   311 // HbScrollArea::setContinuationIndicators
       
   312 // -----------------------------------------------------------------------------
       
   313 //
       
   314 void HbScrollArea::setContinuationIndicators( 
       
   315         bool indication )
       
   316     {
       
   317     SMC_MOCK_METHOD1( void, bool, indication )
       
   318     }
       
   319 
       
   320 
       
   321 // -----------------------------------------------------------------------------
       
   322 // HbScrollArea::isScrolling
       
   323 // -----------------------------------------------------------------------------
       
   324 //
       
   325 bool HbScrollArea::isScrolling(  ) const
       
   326     {
       
   327     SMC_MOCK_METHOD0( bool )
       
   328     }
       
   329 
       
   330 
       
   331 // -----------------------------------------------------------------------------
       
   332 // HbScrollArea::isDragging
       
   333 // -----------------------------------------------------------------------------
       
   334 //
       
   335 bool HbScrollArea::isDragging(  ) const
       
   336     {
       
   337     SMC_MOCK_METHOD0( bool )
       
   338     }
       
   339 
       
   340 
       
   341 // -----------------------------------------------------------------------------
       
   342 // HbScrollArea::ensureVisible
       
   343 // -----------------------------------------------------------------------------
       
   344 //
       
   345 void HbScrollArea::ensureVisible( 
       
   346         const QPointF & position,
       
   347         qreal xMargin,
       
   348         qreal yMargin )
       
   349     {
       
   350 
       
   351     }
       
   352 
       
   353 
       
   354 // -----------------------------------------------------------------------------
       
   355 // HbScrollArea::scrollContentsTo
       
   356 // -----------------------------------------------------------------------------
       
   357 //
       
   358 void HbScrollArea::scrollContentsTo( 
       
   359         const QPointF & newPosition,
       
   360         int time )
       
   361     {
       
   362 
       
   363     }
       
   364 
       
   365 
       
   366 // -----------------------------------------------------------------------------
       
   367 // HbScrollArea::mousePressEvent
       
   368 // -----------------------------------------------------------------------------
       
   369 //
       
   370 void HbScrollArea::mousePressEvent( 
       
   371         QGraphicsSceneMouseEvent * event )
       
   372     {
       
   373 
       
   374     }
       
   375 
       
   376 
       
   377 // -----------------------------------------------------------------------------
       
   378 // HbScrollArea::mouseReleaseEvent
       
   379 // -----------------------------------------------------------------------------
       
   380 //
       
   381 void HbScrollArea::mouseReleaseEvent( 
       
   382         QGraphicsSceneMouseEvent * event )
       
   383     {
       
   384 
       
   385     }
       
   386 
       
   387 
       
   388 // -----------------------------------------------------------------------------
       
   389 // HbScrollArea::sizeHint
       
   390 // -----------------------------------------------------------------------------
       
   391 //
       
   392 QSizeF HbScrollArea::sizeHint( 
       
   393         Qt::SizeHint which,
       
   394         const QSizeF & constraint ) const
       
   395     {
       
   396 
       
   397     }
       
   398 
       
   399 
       
   400 // -----------------------------------------------------------------------------
       
   401 // HbScrollArea::itemChange
       
   402 // -----------------------------------------------------------------------------
       
   403 //
       
   404 QVariant HbScrollArea::itemChange( 
       
   405         GraphicsItemChange change,
       
   406         const QVariant & value )
       
   407     {
       
   408 
       
   409     }
       
   410 
       
   411 
       
   412 // -----------------------------------------------------------------------------
       
   413 // HbScrollArea::event
       
   414 // -----------------------------------------------------------------------------
       
   415 //
       
   416 bool HbScrollArea::event( 
       
   417         QEvent * event )
       
   418     {
       
   419 
       
   420     }
       
   421 
       
   422 
       
   423 // -----------------------------------------------------------------------------
       
   424 // HbScrollArea::focusOutEvent
       
   425 // -----------------------------------------------------------------------------
       
   426 //
       
   427 void HbScrollArea::focusOutEvent( 
       
   428         QFocusEvent * event )
       
   429     {
       
   430 
       
   431     }
       
   432 
       
   433 
       
   434 // -----------------------------------------------------------------------------
       
   435 // HbScrollArea::scrollByAmount
       
   436 // -----------------------------------------------------------------------------
       
   437 //
       
   438 bool HbScrollArea::scrollByAmount( 
       
   439         const QPointF & delta )
       
   440     {
       
   441 
       
   442     }
       
   443 
       
   444 
       
   445 // -----------------------------------------------------------------------------
       
   446 // HbScrollArea::polish
       
   447 // -----------------------------------------------------------------------------
       
   448 //
       
   449 void HbScrollArea::polish( 
       
   450         HbStyleParameters & params )
       
   451     {
       
   452 
       
   453     }
       
   454 
       
   455 
       
   456 // -----------------------------------------------------------------------------
       
   457 // HbScrollArea::eventFilter
       
   458 // -----------------------------------------------------------------------------
       
   459 //
       
   460 bool HbScrollArea::eventFilter( 
       
   461         QObject * obj,
       
   462         QEvent * event )
       
   463     {
       
   464   
       
   465     }
       
   466 
       
   467 
       
   468 // -----------------------------------------------------------------------------
       
   469 // HbScrollArea::scrollingStarted
       
   470 // -----------------------------------------------------------------------------
       
   471 //
       
   472 void HbScrollArea::scrollingStarted(  )
       
   473     {
       
   474     SMC_MOCK_METHOD0( void )
       
   475     }
       
   476 
       
   477 
       
   478 // -----------------------------------------------------------------------------
       
   479 // HbScrollArea::scrollingEnded
       
   480 // -----------------------------------------------------------------------------
       
   481 //
       
   482 void HbScrollArea::scrollingEnded(  )
       
   483     {
       
   484     SMC_MOCK_METHOD0( void )
       
   485     }
       
   486 
       
   487 
       
   488 // -----------------------------------------------------------------------------
       
   489 // HbScrollArea::scrollDirectionsChanged
       
   490 // -----------------------------------------------------------------------------
       
   491 //
       
   492 void HbScrollArea::scrollDirectionsChanged( 
       
   493         Qt::Orientations newValue )
       
   494     {
       
   495 
       
   496     }
       
   497 
       
   498 
       
   499 // -----------------------------------------------------------------------------
       
   500 // HbScrollArea::gestureSceneFilterChanged
       
   501 // -----------------------------------------------------------------------------
       
   502 //
       
   503 void HbScrollArea::gestureSceneFilterChanged( 
       
   504         HbGestureSceneFilter * newFilter )
       
   505     {
       
   506    
       
   507     }
       
   508 
       
   509 
       
   510 // -----------------------------------------------------------------------------
       
   511 // HbScrollArea::scrollPositionChanged
       
   512 // -----------------------------------------------------------------------------
       
   513 //
       
   514 void HbScrollArea::scrollPositionChanged( 
       
   515         const QPointF & newPosition )
       
   516     {
       
   517     
       
   518     }
       
   519 
       
   520 
       
   521 // -----------------------------------------------------------------------------
       
   522 // HbScrollArea::upGesture
       
   523 // -----------------------------------------------------------------------------
       
   524 //
       
   525 void HbScrollArea::upGesture( 
       
   526         int value )
       
   527     {
       
   528     SMC_MOCK_METHOD1( void, int, value )
       
   529     }
       
   530 
       
   531 
       
   532 // -----------------------------------------------------------------------------
       
   533 // HbScrollArea::downGesture
       
   534 // -----------------------------------------------------------------------------
       
   535 //
       
   536 void HbScrollArea::downGesture( 
       
   537         int value )
       
   538     {
       
   539     SMC_MOCK_METHOD1( void, int, value )
       
   540     }
       
   541 
       
   542 
       
   543 // -----------------------------------------------------------------------------
       
   544 // HbScrollArea::leftGesture
       
   545 // -----------------------------------------------------------------------------
       
   546 //
       
   547 void HbScrollArea::leftGesture( 
       
   548         int value )
       
   549     {
       
   550     SMC_MOCK_METHOD1( void, int, value )
       
   551     }
       
   552 
       
   553 
       
   554 // -----------------------------------------------------------------------------
       
   555 // HbScrollArea::rightGesture
       
   556 // -----------------------------------------------------------------------------
       
   557 //
       
   558 void HbScrollArea::rightGesture( 
       
   559         int value )
       
   560     {
       
   561     SMC_MOCK_METHOD1( void, int, value )
       
   562     }
       
   563 
       
   564 
       
   565 // -----------------------------------------------------------------------------
       
   566 // HbScrollArea::panGesture
       
   567 // -----------------------------------------------------------------------------
       
   568 //
       
   569 void HbScrollArea::panGesture( 
       
   570         const QPointF & point )
       
   571     {
       
   572     
       
   573     }
       
   574 
       
   575 
       
   576 // -----------------------------------------------------------------------------
       
   577 // HbScrollArea::longPressGesture
       
   578 // -----------------------------------------------------------------------------
       
   579 //
       
   580 void HbScrollArea::longPressGesture( 
       
   581         const QPointF & point )
       
   582     {
       
   583     
       
   584     }
       
   585 
       
   586