phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbabstractitemview.cpp
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 27 2f8f8080a020
parent 45 6b911d05207e
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
    15 *
    15 *
    16 */
    16 */
    17 #include <QDebug>
    17 #include <QDebug>
    18 #include <smcmockclassincludes.h>
    18 #include <smcmockclassincludes.h>
    19 #include <hbabstractitemview.h>
    19 #include <hbabstractitemview.h>
    20 
    20 #include <hbscrollarea.h>
    21 HbScrollAreaPrivate* pointerHbScrollAreaPrivate(NULL);
       
    22 
    21 
    23 // ============================ MEMBER FUNCTIONS ===============================
    22 // ============================ MEMBER FUNCTIONS ===============================
    24 
    23 
    25 // -----------------------------------------------------------------------------
    24 // -----------------------------------------------------------------------------
    26 // HbAbstractItemView::HbAbstractItemView
    25 // HbAbstractItemView::HbAbstractItemView
    27 // -----------------------------------------------------------------------------
    26 // -----------------------------------------------------------------------------
    28 //
    27 //
    29 HbAbstractItemView::HbAbstractItemView( 
    28 HbAbstractItemView::HbAbstractItemView( 
    30         HbAbstractItemViewPrivate & dd,
    29         HbAbstractItemViewPrivate & /*dd*/,
    31         HbAbstractItemContainer * container,
    30         HbAbstractItemContainer * /*container*/,
       
    31         HbModelIterator *,
    32         QGraphicsItem * parent )
    32         QGraphicsItem * parent )
    33     : HbScrollArea( *pointerHbScrollAreaPrivate, parent )
    33     : HbScrollArea(parent)
    34     {
    34     {
    35     
    35     
    36     }
    36     }
    37 
    37 
    38 
    38 
    45     
    45     
    46     }
    46     }
    47 
    47 
    48 
    48 
    49 // -----------------------------------------------------------------------------
    49 // -----------------------------------------------------------------------------
    50 // HbAbstractItemView::type
       
    51 // -----------------------------------------------------------------------------
       
    52 //
       
    53 /*
       
    54 int HbAbstractItemView::type(  ) const
       
    55     {
       
    56     SMC_MOCK_METHOD0( int )
       
    57     }
       
    58 */
       
    59 
       
    60 // -----------------------------------------------------------------------------
       
    61 // HbAbstractItemView::setModel
    50 // HbAbstractItemView::setModel
    62 // -----------------------------------------------------------------------------
    51 // -----------------------------------------------------------------------------
    63 //
    52 //
    64 void HbAbstractItemView::setModel( 
    53 void HbAbstractItemView::setModel( 
    65         QAbstractItemModel * model,
    54         QAbstractItemModel * ,
    66         HbAbstractViewItem * prototype )
    55         HbAbstractViewItem *  )
    67     {
    56     {
    68 
    57 
    69     }
    58     }
    70 
    59 
    71 
    60 
    82 // -----------------------------------------------------------------------------
    71 // -----------------------------------------------------------------------------
    83 // HbAbstractItemView::setItemPrototype
    72 // HbAbstractItemView::setItemPrototype
    84 // -----------------------------------------------------------------------------
    73 // -----------------------------------------------------------------------------
    85 //
    74 //
    86 void HbAbstractItemView::setItemPrototype( 
    75 void HbAbstractItemView::setItemPrototype( 
    87         HbAbstractViewItem * prototype )
    76         HbAbstractViewItem *  )
    88     {
    77     {
    89 
    78 
    90     }
    79     }
    91 
    80 
    92 
    81 
    93 // -----------------------------------------------------------------------------
    82 // -----------------------------------------------------------------------------
    94 // HbAbstractItemView::setItemPrototypes
    83 // HbAbstractItemView::setItemPrototypes
    95 // -----------------------------------------------------------------------------
    84 // -----------------------------------------------------------------------------
    96 //
    85 //
    97 void HbAbstractItemView::setItemPrototypes( 
    86 void HbAbstractItemView::setItemPrototypes( 
    98         const QList<HbAbstractViewItem *> & prototypes )
    87         const QList<HbAbstractViewItem *> &  )
    99     {
    88     {
   100   
    89   
   101     }
    90     }
   102 
    91 
   103 
    92 
   105 // HbAbstractItemView::itemPrototypes
    94 // HbAbstractItemView::itemPrototypes
   106 // -----------------------------------------------------------------------------
    95 // -----------------------------------------------------------------------------
   107 //
    96 //
   108 QList <HbAbstractViewItem * > HbAbstractItemView::itemPrototypes(  ) const
    97 QList <HbAbstractViewItem * > HbAbstractItemView::itemPrototypes(  ) const
   109     {
    98     {
   110     
    99     return QList <HbAbstractViewItem * >();
   111     }
   100     }
   112 
   101 
   113 
   102 
   114 // -----------------------------------------------------------------------------
   103 // -----------------------------------------------------------------------------
   115 // HbAbstractItemView::setSelectionModel
   104 // HbAbstractItemView::setSelectionModel
   116 // -----------------------------------------------------------------------------
   105 // -----------------------------------------------------------------------------
   117 //
   106 //
   118 void HbAbstractItemView::setSelectionModel( 
   107 void HbAbstractItemView::setSelectionModel( 
   119         QItemSelectionModel * selectionModel )
   108         QItemSelectionModel *  )
   120     {
   109     {
   121   
   110   
   122     }
   111     }
   123 
   112 
   124 
   113 
   126 // HbAbstractItemView::selectionModel
   115 // HbAbstractItemView::selectionModel
   127 // -----------------------------------------------------------------------------
   116 // -----------------------------------------------------------------------------
   128 //
   117 //
   129 QItemSelectionModel * HbAbstractItemView::selectionModel(  ) const
   118 QItemSelectionModel * HbAbstractItemView::selectionModel(  ) const
   130     {
   119     {
   131   
   120     return 0;
   132     }
   121     }
   133 
   122 
   134 
   123 
   135 // -----------------------------------------------------------------------------
   124 // -----------------------------------------------------------------------------
   136 // HbAbstractItemView::currentIndex
   125 // HbAbstractItemView::currentIndex
   137 // -----------------------------------------------------------------------------
   126 // -----------------------------------------------------------------------------
   138 //
   127 //
   139 QModelIndex HbAbstractItemView::currentIndex(  ) const
   128 QModelIndex HbAbstractItemView::currentIndex(  ) const
   140     {
   129     {
   141    
   130     return QModelIndex();
   142     }
   131     }
   143 
   132 
   144 
   133 
   145 // -----------------------------------------------------------------------------
   134 // -----------------------------------------------------------------------------
   146 // HbAbstractItemView::rootIndex
   135 // HbAbstractItemView::rootIndex
   147 // -----------------------------------------------------------------------------
   136 // -----------------------------------------------------------------------------
   148 //
   137 //
   149 QModelIndex HbAbstractItemView::rootIndex(  ) const
   138 QModelIndex HbAbstractItemView::rootIndex(  ) const
   150     {
   139     {
   151     
   140     return QModelIndex();
   152     }
   141     }
   153 
   142 
   154 
   143 
   155 // -----------------------------------------------------------------------------
   144 // -----------------------------------------------------------------------------
   156 // HbAbstractItemView::setSelectionMode
   145 // HbAbstractItemView::setSelectionMode
   157 // -----------------------------------------------------------------------------
   146 // -----------------------------------------------------------------------------
   158 //
   147 //
   159 void HbAbstractItemView::setSelectionMode( 
   148 void HbAbstractItemView::setSelectionMode( 
   160         SelectionMode newMode,
   149         SelectionMode )
   161         bool resetSelection )
       
   162     {
   150     {
   163 
   151 
   164     }
   152     }
   165 
   153 
   166 
   154 
   168 // HbAbstractItemView::selectionMode
   156 // HbAbstractItemView::selectionMode
   169 // -----------------------------------------------------------------------------
   157 // -----------------------------------------------------------------------------
   170 //
   158 //
   171 HbAbstractItemView::SelectionMode HbAbstractItemView::selectionMode(  ) const
   159 HbAbstractItemView::SelectionMode HbAbstractItemView::selectionMode(  ) const
   172     {
   160     {
   173 
   161     return NoSelection;
   174     }
   162     }
   175 
   163 
   176 
   164 
   177 // -----------------------------------------------------------------------------
   165 // -----------------------------------------------------------------------------
   178 // HbAbstractItemView::setItemRecycling
   166 // HbAbstractItemView::setItemRecycling
   208 
   196 
   209 // -----------------------------------------------------------------------------
   197 // -----------------------------------------------------------------------------
   210 // HbAbstractItemView::isVisible
   198 // HbAbstractItemView::isVisible
   211 // -----------------------------------------------------------------------------
   199 // -----------------------------------------------------------------------------
   212 //
   200 //
   213 bool HbAbstractItemView::isVisible( 
   201 /*bool HbAbstractItemView::isVisible( 
   214         HbAbstractViewItem * item ) const
   202         const QModelIndex & ) const
   215     {
   203     {
   216 
   204     return false;
   217     }
   205     }
   218 
   206 */
   219 
   207 
   220 // -----------------------------------------------------------------------------
   208 // -----------------------------------------------------------------------------
   221 // HbAbstractItemView::currentViewItem
   209 // HbAbstractItemView::currentViewItem
   222 // -----------------------------------------------------------------------------
   210 // -----------------------------------------------------------------------------
   223 //
   211 //
   257 QList <HbAbstractViewItem * > HbAbstractItemView::visibleItems(  ) const
   245 QList <HbAbstractViewItem * > HbAbstractItemView::visibleItems(  ) const
   258     {
   246     {
   259  
   247  
   260     }
   248     }
   261 
   249 
   262 
       
   263 // -----------------------------------------------------------------------------
       
   264 // HbAbstractItemView::itemAtPosition
       
   265 // -----------------------------------------------------------------------------
       
   266 //
       
   267 HbAbstractViewItem * HbAbstractItemView::itemAtPosition( 
       
   268         const QPointF & position ) const
       
   269     {
       
   270     
       
   271     }
       
   272 
       
   273 
       
   274 // -----------------------------------------------------------------------------
       
   275 // HbAbstractItemView::indexCount
       
   276 // -----------------------------------------------------------------------------
       
   277 //
       
   278 int HbAbstractItemView::indexCount(  ) const
       
   279     {
       
   280     SMC_MOCK_METHOD0( int )
       
   281     }
       
   282 
       
   283 
       
   284 // -----------------------------------------------------------------------------
       
   285 // HbAbstractItemView::indexPosition
       
   286 // -----------------------------------------------------------------------------
       
   287 //
       
   288 int HbAbstractItemView::indexPosition( 
       
   289         const QModelIndex & index ) const
       
   290     {
       
   291    
       
   292     }
       
   293 
       
   294 
       
   295 // -----------------------------------------------------------------------------
       
   296 // HbAbstractItemView::nextIndex
       
   297 // -----------------------------------------------------------------------------
       
   298 //
       
   299 QModelIndex HbAbstractItemView::nextIndex( 
       
   300         const QModelIndex & index ) const
       
   301     {
       
   302 
       
   303     }
       
   304 
       
   305 
       
   306 // -----------------------------------------------------------------------------
       
   307 // HbAbstractItemView::previousIndex
       
   308 // -----------------------------------------------------------------------------
       
   309 //
       
   310 QModelIndex HbAbstractItemView::previousIndex( 
       
   311         const QModelIndex & index ) const
       
   312     {
       
   313 
       
   314     }
       
   315 
       
   316 
       
   317 // -----------------------------------------------------------------------------
   250 // -----------------------------------------------------------------------------
   318 // HbAbstractItemView::layoutName
   251 // HbAbstractItemView::layoutName
   319 // -----------------------------------------------------------------------------
   252 // -----------------------------------------------------------------------------
   320 //
   253 //
   321 QString HbAbstractItemView::layoutName(  ) const
   254 QString HbAbstractItemView::layoutName(  ) const
   474         QEvent * e )
   407         QEvent * e )
   475     {
   408     {
   476     
   409     
   477     }
   410     }
   478 
   411 
   479 // -----------------------------------------------------------------------------
       
   480 // HbAbstractItemView::mousePressEvent
       
   481 // -----------------------------------------------------------------------------
       
   482 //
       
   483 void HbAbstractItemView::mousePressEvent( 
       
   484         QGraphicsSceneMouseEvent * event )
       
   485     {
       
   486     
       
   487     }
       
   488 
       
   489 
       
   490 // -----------------------------------------------------------------------------
       
   491 // HbAbstractItemView::mouseReleaseEvent
       
   492 // -----------------------------------------------------------------------------
       
   493 //
       
   494 void HbAbstractItemView::mouseReleaseEvent( 
       
   495         QGraphicsSceneMouseEvent * event )
       
   496     {
       
   497     
       
   498     }
       
   499 
       
   500 
       
   501 // -----------------------------------------------------------------------------
       
   502 // HbAbstractItemView::mouseMoveEvent
       
   503 // -----------------------------------------------------------------------------
       
   504 //
       
   505 void HbAbstractItemView::mouseMoveEvent( 
       
   506         QGraphicsSceneMouseEvent * event )
       
   507     {
       
   508     
       
   509     }
       
   510 
       
   511 
       
   512 // -----------------------------------------------------------------------------
       
   513 // HbAbstractItemView::focusOutEvent
       
   514 // -----------------------------------------------------------------------------
       
   515 //
       
   516 void HbAbstractItemView::focusOutEvent( 
       
   517         QFocusEvent * event )
       
   518     {
       
   519     
       
   520     }
       
   521 
       
   522 
       
   523 // -----------------------------------------------------------------------------
       
   524 // HbAbstractItemView::upGesture
       
   525 // -----------------------------------------------------------------------------
       
   526 //
       
   527 void HbAbstractItemView::upGesture( 
       
   528         int value )
       
   529     {
       
   530     SMC_MOCK_METHOD1( void, int, value )
       
   531     }
       
   532 
       
   533 
       
   534 // -----------------------------------------------------------------------------
       
   535 // HbAbstractItemView::downGesture
       
   536 // -----------------------------------------------------------------------------
       
   537 //
       
   538 void HbAbstractItemView::downGesture( 
       
   539         int value )
       
   540     {
       
   541     SMC_MOCK_METHOD1( void, int, value )
       
   542     }
       
   543 
       
   544 
       
   545 // -----------------------------------------------------------------------------
       
   546 // HbAbstractItemView::leftGesture
       
   547 // -----------------------------------------------------------------------------
       
   548 //
       
   549 void HbAbstractItemView::leftGesture( 
       
   550         int value )
       
   551     {
       
   552     SMC_MOCK_METHOD1( void, int, value )
       
   553     }
       
   554 
       
   555 
       
   556 // -----------------------------------------------------------------------------
       
   557 // HbAbstractItemView::rightGesture
       
   558 // -----------------------------------------------------------------------------
       
   559 //
       
   560 void HbAbstractItemView::rightGesture( 
       
   561         int value )
       
   562     {
       
   563     SMC_MOCK_METHOD1( void, int, value )
       
   564     }
       
   565 
   412 
   566 
   413 
   567 // -----------------------------------------------------------------------------
   414 // -----------------------------------------------------------------------------
   568 // HbAbstractItemView::emitActivated
   415 // HbAbstractItemView::emitActivated
   569 // -----------------------------------------------------------------------------
   416 // -----------------------------------------------------------------------------
   604 bool HbAbstractItemView::scrollByAmount( 
   451 bool HbAbstractItemView::scrollByAmount( 
   605         const QPointF & delta )
   452         const QPointF & delta )
   606     {
   453     {
   607    
   454    
   608     }
   455     }
   609 
       
   610 
       
   611 // -----------------------------------------------------------------------------
       
   612 // HbAbstractItemView::container
       
   613 // -----------------------------------------------------------------------------
       
   614 //
       
   615 HbAbstractItemContainer * HbAbstractItemView::container(  ) const
       
   616     {
       
   617     
       
   618     }
       
   619 
       
   620 
   456 
   621 // -----------------------------------------------------------------------------
   457 // -----------------------------------------------------------------------------
   622 // HbAbstractItemView::itemChange
   458 // HbAbstractItemView::itemChange
   623 // -----------------------------------------------------------------------------
   459 // -----------------------------------------------------------------------------
   624 //
   460 //
   789     {
   625     {
   790     
   626     
   791     }
   627     }
   792 
   628 
   793 
   629 
   794 // -----------------------------------------------------------------------------
   630 
   795 // HbAbstractItemView::panGesture
       
   796 // -----------------------------------------------------------------------------
       
   797 //
       
   798 void HbAbstractItemView::panGesture( 
       
   799         const QPointF & point )
       
   800     {
       
   801     
       
   802     }
       
   803 
       
   804 
       
   805 // -----------------------------------------------------------------------------
       
   806 // HbAbstractItemView::longPressGesture
       
   807 // -----------------------------------------------------------------------------
       
   808 //
       
   809 void HbAbstractItemView::longPressGesture( 
       
   810         const QPointF & point )
       
   811     {
       
   812     
       
   813     }
       
   814 
       
   815