phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbview.cpp
changeset 45 6b911d05207e
parent 21 92ab7f8d0eab
child 78 baacf668fe89
equal deleted inserted replaced
37:ba76fc04e6c2 45:6b911d05207e
     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
    23 // -----------------------------------------------------------------------------
    23 // -----------------------------------------------------------------------------
    24 // HbView::HbView
    24 // HbView::HbView
    25 // -----------------------------------------------------------------------------
    25 // -----------------------------------------------------------------------------
    26 //
    26 //
    27 HbView::HbView( 
    27 HbView::HbView( 
       
    28         QGraphicsItem * /*parent*/ )
       
    29     //:
       
    30     //HbWidget( /*parent*/ )
       
    31     {
       
    32     
       
    33     }
       
    34 
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // HbView::~HbView
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 HbView::~HbView(  )
       
    41     {
       
    42     
       
    43     }
       
    44 
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // HbView::title
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 QString HbView::title(  ) const
       
    51     {
       
    52     SMC_MOCK_METHOD0( QString )
       
    53     }
       
    54 
       
    55 
       
    56 // -----------------------------------------------------------------------------
       
    57 // HbView::icon
       
    58 // -----------------------------------------------------------------------------
       
    59 //
       
    60 HbIcon HbView::icon(  ) const
       
    61     {
       
    62     }
       
    63 
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // HbView::setIcon
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 void HbView::setIcon( 
       
    70         const HbIcon & )
       
    71     {
       
    72     }
       
    73 
       
    74 
       
    75 // -----------------------------------------------------------------------------
       
    76 // HbView::menu
       
    77 // -----------------------------------------------------------------------------
       
    78 //
       
    79 HbMenu * HbView::menu(  ) const
       
    80     {
       
    81     }
       
    82 
       
    83 
       
    84 // -----------------------------------------------------------------------------
       
    85 // HbView::setMenu
       
    86 // -----------------------------------------------------------------------------
       
    87 //
       
    88 void HbView::setMenu( 
       
    89         HbMenu * )
       
    90     {
       
    91     }
       
    92 
       
    93 
       
    94 // -----------------------------------------------------------------------------
       
    95 // HbView::takeMenu
       
    96 // -----------------------------------------------------------------------------
       
    97 //
       
    98 HbMenu * HbView::takeMenu(  )
       
    99     {
       
   100     }
       
   101 
       
   102 
       
   103 // -----------------------------------------------------------------------------
       
   104 // HbView::toolBar
       
   105 // -----------------------------------------------------------------------------
       
   106 //
       
   107 HbToolBar * HbView::toolBar(  ) const
       
   108     {
       
   109     }
       
   110 
       
   111 
       
   112 // -----------------------------------------------------------------------------
       
   113 // HbView::setToolBar
       
   114 // -----------------------------------------------------------------------------
       
   115 //
       
   116 void HbView::setToolBar( 
       
   117         HbToolBar *  )
       
   118     {
       
   119     }
       
   120 
       
   121 
       
   122 // -----------------------------------------------------------------------------
       
   123 // HbView::takeToolBar
       
   124 // -----------------------------------------------------------------------------
       
   125 //
       
   126 HbToolBar * HbView::takeToolBar(  )
       
   127     {
       
   128     }
       
   129 
       
   130 
       
   131 // -----------------------------------------------------------------------------
       
   132 // HbView::dockWidget
       
   133 // -----------------------------------------------------------------------------
       
   134 //
       
   135 HbDockWidget * HbView::dockWidget(  ) const
       
   136     {
       
   137     }
       
   138 
       
   139 
       
   140 // -----------------------------------------------------------------------------
       
   141 // HbView::setDockWidget
       
   142 // -----------------------------------------------------------------------------
       
   143 //
       
   144 void HbView::setDockWidget( 
       
   145         HbDockWidget *  )
       
   146     {
       
   147     }
       
   148 
       
   149 
       
   150 // -----------------------------------------------------------------------------
       
   151 // HbView::widget
       
   152 // -----------------------------------------------------------------------------
       
   153 //
       
   154 QGraphicsWidget * HbView::widget(  ) const
       
   155     {
       
   156     }
       
   157 
       
   158 
       
   159 // -----------------------------------------------------------------------------
       
   160 // HbView::setWidget
       
   161 // -----------------------------------------------------------------------------
       
   162 //
       
   163 void HbView::setWidget( 
       
   164         QGraphicsWidget *  )
       
   165     {
       
   166     }
       
   167 
       
   168 
       
   169 // -----------------------------------------------------------------------------
       
   170 // HbView::takeWidget
       
   171 // -----------------------------------------------------------------------------
       
   172 //
       
   173 QGraphicsWidget * HbView::takeWidget(  )
       
   174     {
       
   175     }
       
   176 
       
   177 
       
   178 // -----------------------------------------------------------------------------
       
   179 // HbView::showItems
       
   180 // -----------------------------------------------------------------------------
       
   181 //
       
   182 void HbView::showItems( 
       
   183         Hb::SceneItems  )
       
   184     {
       
   185     }
       
   186 
       
   187 
       
   188 // -----------------------------------------------------------------------------
       
   189 // HbView::hideItems
       
   190 // -----------------------------------------------------------------------------
       
   191 //
       
   192 void HbView::hideItems( 
       
   193         Hb::SceneItems  )
       
   194     {
       
   195     }
       
   196 
       
   197 
       
   198 // -----------------------------------------------------------------------------
       
   199 // HbView::visibleItems
       
   200 // -----------------------------------------------------------------------------
       
   201 //
       
   202 Hb::SceneItems HbView::visibleItems(  ) const
       
   203     {
       
   204     }
       
   205 
       
   206 
       
   207 // -----------------------------------------------------------------------------
       
   208 // HbView::isItemVisible
       
   209 // -----------------------------------------------------------------------------
       
   210 //
       
   211 bool HbView::isItemVisible( 
       
   212         Hb::SceneItem  ) const
       
   213     {
       
   214     }
       
   215 
       
   216 
       
   217 // -----------------------------------------------------------------------------
       
   218 // HbView::setItemVisible
       
   219 // -----------------------------------------------------------------------------
       
   220 //
       
   221 void HbView::setItemVisible( 
       
   222         Hb::SceneItem item,
       
   223         bool visible )
       
   224     {
       
   225     SMC_MOCK_METHOD2( void, Hb::SceneItem, item, 
       
   226         bool, visible )
       
   227     }
       
   228 
       
   229 
       
   230 // -----------------------------------------------------------------------------
       
   231 // HbView::isContentFullScreen
       
   232 // -----------------------------------------------------------------------------
       
   233 //
       
   234 bool HbView::isContentFullScreen(  ) const
       
   235     {
       
   236     SMC_MOCK_METHOD0( bool )
       
   237     }
       
   238 
       
   239 
       
   240 // -----------------------------------------------------------------------------
       
   241 // HbView::viewFlags
       
   242 // -----------------------------------------------------------------------------
       
   243 //
       
   244 HbView::HbViewFlags HbView::viewFlags(  ) const
       
   245     {
       
   246     // SMC_MOCK_METHOD0( HbViewFlags )
       
   247     }
       
   248 
       
   249 
       
   250 // -----------------------------------------------------------------------------
       
   251 // HbView::setTitleBarVisible
       
   252 // -----------------------------------------------------------------------------
       
   253 //
       
   254 void HbView::setTitleBarVisible( 
       
   255         bool visible )
       
   256     {
       
   257     SMC_MOCK_METHOD1( void, bool, visible )
       
   258     }
       
   259 
       
   260 
       
   261 // -----------------------------------------------------------------------------
       
   262 // HbView::setStatusBarVisible
       
   263 // -----------------------------------------------------------------------------
       
   264 //
       
   265 void HbView::setStatusBarVisible( 
       
   266         bool visible )
       
   267     {
       
   268     SMC_MOCK_METHOD1( void, bool, visible )
       
   269     }
       
   270 
       
   271 
       
   272 
       
   273 // -----------------------------------------------------------------------------
       
   274 // HbView::addAction
       
   275 // -----------------------------------------------------------------------------
       
   276 //
       
   277 void HbView::addAction( 
       
   278         HbAction * action,
       
   279         ActionContainer preferredActionContainer )
       
   280     {
       
   281    // SMC_MOCK_METHOD2( void, HbAction *, action, 
       
   282      //   ActionContainer, preferredActionContainer )
       
   283     }
       
   284 
       
   285 
       
   286 // -----------------------------------------------------------------------------
       
   287 // HbView::navigationAction
       
   288 // -----------------------------------------------------------------------------
       
   289 //
       
   290 HbAction * HbView::navigationAction(  ) const
       
   291     {
       
   292     SMC_MOCK_METHOD0( HbAction * )
       
   293     }
       
   294 
       
   295 
       
   296 // -----------------------------------------------------------------------------
       
   297 // HbView::setNavigationAction
       
   298 // -----------------------------------------------------------------------------
       
   299 //
       
   300 void HbView::setNavigationAction( 
       
   301         HbAction * action )
       
   302     {
       
   303  //   SMC_MOCK_METHOD1( void, HbAction *, action )
       
   304     }
       
   305 
       
   306 
       
   307 // -----------------------------------------------------------------------------
       
   308 // HbView::setTitle
       
   309 // -----------------------------------------------------------------------------
       
   310 //
       
   311 void HbView::setTitle( 
       
   312         const QString & title )
       
   313     {
       
   314     SMC_MOCK_METHOD1( void, const QString &, title )
       
   315     }
       
   316 
       
   317 
       
   318 // -----------------------------------------------------------------------------
       
   319 // HbView::setContentFullScreen
       
   320 // -----------------------------------------------------------------------------
       
   321 //
       
   322 void HbView::setContentFullScreen( 
       
   323         bool enable )
       
   324     {
       
   325     SMC_MOCK_METHOD1( void, bool, enable )
       
   326     }
       
   327 
       
   328 
       
   329 // -----------------------------------------------------------------------------
       
   330 // HbView::setViewFlags
       
   331 // -----------------------------------------------------------------------------
       
   332 //
       
   333 void HbView::setViewFlags( 
       
   334         HbViewFlags flags )
       
   335     {
       
   336   //  SMC_MOCK_METHOD1( void, HbViewFlags, flags )
       
   337     }
       
   338 
       
   339 
       
   340 // -----------------------------------------------------------------------------
       
   341 // HbView::titleChanged
       
   342 // -----------------------------------------------------------------------------
       
   343 //
       
   344 void HbView::titleChanged( 
       
   345         const QString & title )
       
   346     {
       
   347     SMC_MOCK_METHOD1( void, const QString &, title )
       
   348     }
       
   349 
       
   350 
       
   351 // -----------------------------------------------------------------------------
       
   352 // HbView::iconChanged
       
   353 // -----------------------------------------------------------------------------
       
   354 //
       
   355 void HbView::iconChanged( 
       
   356         const HbIcon & icon )
       
   357     {
       
   358   //  SMC_MOCK_METHOD1( void, const HbIcon &, icon )
       
   359     }
       
   360 
       
   361 
       
   362 // -----------------------------------------------------------------------------
       
   363 // HbView::toolBarChanged
       
   364 // -----------------------------------------------------------------------------
       
   365 //
       
   366 void HbView::toolBarChanged(  )
       
   367     {
       
   368     SMC_MOCK_METHOD0( void )
       
   369     }
       
   370 
       
   371 
       
   372 // -----------------------------------------------------------------------------
       
   373 // HbView::visibleItemsChanged
       
   374 // -----------------------------------------------------------------------------
       
   375 //
       
   376 void HbView::visibleItemsChanged(  )
       
   377     {
       
   378     SMC_MOCK_METHOD0( void )
       
   379     }
       
   380 
       
   381 
       
   382 // -----------------------------------------------------------------------------
       
   383 // HbView::contentFullScreenChanged
       
   384 // -----------------------------------------------------------------------------
       
   385 //
       
   386 void HbView::contentFullScreenChanged(  )
       
   387     {
       
   388     SMC_MOCK_METHOD0( void )
       
   389     }
       
   390 
       
   391 
       
   392 // -----------------------------------------------------------------------------
       
   393 // HbView::dockWidgetChanged
       
   394 // -----------------------------------------------------------------------------
       
   395 //
       
   396 void HbView::dockWidgetChanged(  )
       
   397     {
       
   398     SMC_MOCK_METHOD0( void )
       
   399     }
       
   400 
       
   401 
       
   402 // -----------------------------------------------------------------------------
       
   403 // HbView::HbView
       
   404 // -----------------------------------------------------------------------------
       
   405 //
       
   406 HbView::HbView( 
       
   407         HbViewPrivate & dd,
    28         QGraphicsItem * parent )
   408         QGraphicsItem * parent )
    29     //:
   409     //:
    30     //HbWidget( /*parent*/ )
   410     //HbWidget( /*dd, parent*/ )
    31     {
   411     {
    32     
   412     
    33     }
   413     }
    34 
   414 
    35 
   415 
    36 // -----------------------------------------------------------------------------
   416 // -----------------------------------------------------------------------------
    37 // HbView::~HbView
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 HbView::~HbView(  )
       
    41     {
       
    42     
       
    43     }
       
    44 
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // HbView::title
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 QString HbView::title(  ) const
       
    51     {
       
    52     SMC_MOCK_METHOD0( QString )
       
    53     }
       
    54 
       
    55 
       
    56 // -----------------------------------------------------------------------------
       
    57 // HbView::icon
       
    58 // -----------------------------------------------------------------------------
       
    59 //
       
    60 HbIcon HbView::icon(  ) const
       
    61     {
       
    62     }
       
    63 
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // HbView::setIcon
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 void HbView::setIcon( 
       
    70         const HbIcon & )
       
    71     {
       
    72     }
       
    73 
       
    74 
       
    75 // -----------------------------------------------------------------------------
       
    76 // HbView::menu
       
    77 // -----------------------------------------------------------------------------
       
    78 //
       
    79 HbMenu * HbView::menu(  ) const
       
    80     {
       
    81     }
       
    82 
       
    83 
       
    84 // -----------------------------------------------------------------------------
       
    85 // HbView::setMenu
       
    86 // -----------------------------------------------------------------------------
       
    87 //
       
    88 void HbView::setMenu( 
       
    89         HbMenu * )
       
    90     {
       
    91     }
       
    92 
       
    93 
       
    94 // -----------------------------------------------------------------------------
       
    95 // HbView::takeMenu
       
    96 // -----------------------------------------------------------------------------
       
    97 //
       
    98 HbMenu * HbView::takeMenu(  )
       
    99     {
       
   100     }
       
   101 
       
   102 
       
   103 // -----------------------------------------------------------------------------
       
   104 // HbView::toolBar
       
   105 // -----------------------------------------------------------------------------
       
   106 //
       
   107 HbToolBar * HbView::toolBar(  ) const
       
   108     {
       
   109     }
       
   110 
       
   111 
       
   112 // -----------------------------------------------------------------------------
       
   113 // HbView::setToolBar
       
   114 // -----------------------------------------------------------------------------
       
   115 //
       
   116 void HbView::setToolBar( 
       
   117         HbToolBar *  )
       
   118     {
       
   119     }
       
   120 
       
   121 
       
   122 // -----------------------------------------------------------------------------
       
   123 // HbView::takeToolBar
       
   124 // -----------------------------------------------------------------------------
       
   125 //
       
   126 HbToolBar * HbView::takeToolBar(  )
       
   127     {
       
   128     }
       
   129 
       
   130 
       
   131 // -----------------------------------------------------------------------------
       
   132 // HbView::dockWidget
       
   133 // -----------------------------------------------------------------------------
       
   134 //
       
   135 HbDockWidget * HbView::dockWidget(  ) const
       
   136     {
       
   137     }
       
   138 
       
   139 
       
   140 // -----------------------------------------------------------------------------
       
   141 // HbView::setDockWidget
       
   142 // -----------------------------------------------------------------------------
       
   143 //
       
   144 void HbView::setDockWidget( 
       
   145         HbDockWidget *  )
       
   146     {
       
   147     }
       
   148 
       
   149 
       
   150 // -----------------------------------------------------------------------------
       
   151 // HbView::widget
       
   152 // -----------------------------------------------------------------------------
       
   153 //
       
   154 QGraphicsWidget * HbView::widget(  ) const
       
   155     {
       
   156     }
       
   157 
       
   158 
       
   159 // -----------------------------------------------------------------------------
       
   160 // HbView::setWidget
       
   161 // -----------------------------------------------------------------------------
       
   162 //
       
   163 void HbView::setWidget( 
       
   164         QGraphicsWidget *  )
       
   165     {
       
   166     }
       
   167 
       
   168 
       
   169 // -----------------------------------------------------------------------------
       
   170 // HbView::takeWidget
       
   171 // -----------------------------------------------------------------------------
       
   172 //
       
   173 QGraphicsWidget * HbView::takeWidget(  )
       
   174     {
       
   175     }
       
   176 
       
   177 
       
   178 // -----------------------------------------------------------------------------
       
   179 // HbView::showItems
       
   180 // -----------------------------------------------------------------------------
       
   181 //
       
   182 void HbView::showItems( 
       
   183         Hb::SceneItems  )
       
   184     {
       
   185     }
       
   186 
       
   187 
       
   188 // -----------------------------------------------------------------------------
       
   189 // HbView::hideItems
       
   190 // -----------------------------------------------------------------------------
       
   191 //
       
   192 void HbView::hideItems( 
       
   193         Hb::SceneItems  )
       
   194     {
       
   195     }
       
   196 
       
   197 
       
   198 // -----------------------------------------------------------------------------
       
   199 // HbView::visibleItems
       
   200 // -----------------------------------------------------------------------------
       
   201 //
       
   202 Hb::SceneItems HbView::visibleItems(  ) const
       
   203     {
       
   204     }
       
   205 
       
   206 
       
   207 // -----------------------------------------------------------------------------
       
   208 // HbView::isItemVisible
       
   209 // -----------------------------------------------------------------------------
       
   210 //
       
   211 bool HbView::isItemVisible( 
       
   212         Hb::SceneItem  ) const
       
   213     {
       
   214     }
       
   215 
       
   216 
       
   217 // -----------------------------------------------------------------------------
       
   218 // HbView::setItemVisible
       
   219 // -----------------------------------------------------------------------------
       
   220 //
       
   221 void HbView::setItemVisible( 
       
   222         Hb::SceneItem ,
       
   223         bool  )
       
   224     {
       
   225     }
       
   226 
       
   227 
       
   228 // -----------------------------------------------------------------------------
       
   229 // HbView::unsetVisibleItems
       
   230 // -----------------------------------------------------------------------------
       
   231 //
       
   232 void HbView::unsetVisibleItems(  )
       
   233     {
       
   234     SMC_MOCK_METHOD0( void )
       
   235     }
       
   236 
       
   237 
       
   238 // -----------------------------------------------------------------------------
       
   239 // HbView::isContentFullScreen
       
   240 // -----------------------------------------------------------------------------
       
   241 //
       
   242 bool HbView::isContentFullScreen(  ) const
       
   243     {
       
   244     SMC_MOCK_METHOD0( bool )
       
   245     }
       
   246 
       
   247 
       
   248 // -----------------------------------------------------------------------------
       
   249 // HbView::titleBarFlags
       
   250 // -----------------------------------------------------------------------------
       
   251 //
       
   252 HbView::HbTitleBarFlags HbView::titleBarFlags(  ) const
       
   253     {
       
   254     }
       
   255 
       
   256 
       
   257 // -----------------------------------------------------------------------------
       
   258 // HbView::setTitleBarVisible
       
   259 // -----------------------------------------------------------------------------
       
   260 //
       
   261 void HbView::setTitleBarVisible( 
       
   262         bool visible )
       
   263     {
       
   264     SMC_MOCK_METHOD1( void, bool, visible )
       
   265     }
       
   266 
       
   267 
       
   268 
       
   269 // -----------------------------------------------------------------------------
       
   270 // HbView::addAction
       
   271 // -----------------------------------------------------------------------------
       
   272 //
       
   273 void HbView::addAction( 
       
   274         HbAction * ,
       
   275         ActionContainer  )
       
   276     {
       
   277     }
       
   278 
       
   279 
       
   280 // -----------------------------------------------------------------------------
       
   281 // HbView::setTitle
       
   282 // -----------------------------------------------------------------------------
       
   283 //
       
   284 void HbView::setTitle( 
       
   285         const QString & title )
       
   286     {
       
   287     SMC_MOCK_METHOD1( void, const QString &, title )
       
   288     }
       
   289 
       
   290 
       
   291 // -----------------------------------------------------------------------------
       
   292 // HbView::setContentFullScreen
       
   293 // -----------------------------------------------------------------------------
       
   294 //
       
   295 void HbView::setContentFullScreen( 
       
   296         bool enable )
       
   297     {
       
   298     SMC_MOCK_METHOD1( void, bool, enable )
       
   299     }
       
   300 
       
   301 
       
   302 // -----------------------------------------------------------------------------
       
   303 // HbView::setTitleBarFlags
       
   304 // -----------------------------------------------------------------------------
       
   305 //
       
   306 void HbView::setTitleBarFlags( 
       
   307         HbView::HbTitleBarFlags  )
       
   308     {
       
   309     }
       
   310 
       
   311 
       
   312 // -----------------------------------------------------------------------------
       
   313 // HbView::HbView
       
   314 // -----------------------------------------------------------------------------
       
   315 //
       
   316 HbView::HbView( 
       
   317         HbViewPrivate & ,
       
   318         QGraphicsItem *  )
       
   319     //:
       
   320     //HbWidget( /*dd, parent*/ )
       
   321     {
       
   322     
       
   323     }
       
   324 
       
   325 
       
   326 // -----------------------------------------------------------------------------
       
   327 // HbView::event
   417 // HbView::event
   328 // -----------------------------------------------------------------------------
   418 // -----------------------------------------------------------------------------
   329 //
   419 //
   330 bool HbView::event( 
   420 bool HbView::event( 
   331         QEvent *  )
   421         QEvent * event )
   332     {
   422     {
   333     }
   423   //  SMC_MOCK_METHOD1( bool, QEvent *, event )
   334 
   424     }
   335 
   425 
       
   426