phoneapp/phoneui2/tsrc/ut_phonemainwindow/hbmainwindow_stub.cpp
changeset 76 cfea66083b62
equal deleted inserted replaced
74:d1c62c765e48 76:cfea66083b62
       
     1 /*
       
     2 * Copyright (c) 2010 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 <hbmainwindow.h>
       
    19 
       
    20 // ============================ MEMBER FUNCTIONS ===============================
       
    21 
       
    22 // -----------------------------------------------------------------------------
       
    23 // HbMainWindow::HbMainWindow
       
    24 // -----------------------------------------------------------------------------
       
    25 //
       
    26 HbMainWindow::HbMainWindow( 
       
    27         QWidget * parent,
       
    28         Hb::WindowFlags windowFlags )
       
    29     : d_ptr(NULL)
       
    30     //QGraphicsView( /*parent, windowFlags*/ )
       
    31     {
       
    32     Q_UNUSED(parent)
       
    33     Q_UNUSED(windowFlags)
       
    34     }
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // HbMainWindow::~HbMainWindow
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 HbMainWindow::~HbMainWindow(  )
       
    41     {
       
    42     
       
    43     }
       
    44 
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // HbMainWindow::addView
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 HbView * HbMainWindow::addView( 
       
    51         QGraphicsWidget * widget )
       
    52     {
       
    53     Q_UNUSED(widget)
       
    54     }
       
    55 // -----------------------------------------------------------------------------
       
    56 // HbMainWindow::insertView
       
    57 // -----------------------------------------------------------------------------
       
    58 //
       
    59 HbView * HbMainWindow::insertView( 
       
    60         int index,
       
    61         QGraphicsWidget * widget )
       
    62     {
       
    63 	Q_UNUSED(index)
       
    64 	Q_UNUSED(widget)
       
    65     }
       
    66 
       
    67 
       
    68 // -----------------------------------------------------------------------------
       
    69 // HbMainWindow::removeView
       
    70 // -----------------------------------------------------------------------------
       
    71 //
       
    72 void HbMainWindow::removeView( 
       
    73         QGraphicsWidget * widget )
       
    74     {
       
    75     Q_UNUSED(widget)
       
    76     }
       
    77 
       
    78 
       
    79 // -----------------------------------------------------------------------------
       
    80 // HbMainWindow::views
       
    81 // -----------------------------------------------------------------------------
       
    82 //
       
    83 QList <HbView * > HbMainWindow::views(  ) const
       
    84     {
       
    85     }
       
    86 
       
    87 
       
    88 // -----------------------------------------------------------------------------
       
    89 // HbMainWindow::currentView
       
    90 // -----------------------------------------------------------------------------
       
    91 //
       
    92 HbView * HbMainWindow::currentView(  ) const
       
    93     {
       
    94     }
       
    95 
       
    96 
       
    97 // -----------------------------------------------------------------------------
       
    98 // HbMainWindow::setCurrentView
       
    99 // -----------------------------------------------------------------------------
       
   100 //
       
   101 void HbMainWindow::setCurrentView( 
       
   102         HbView * view,
       
   103         bool animate,
       
   104         Hb::ViewSwitchFlags flags )
       
   105     {
       
   106     Q_UNUSED(view)
       
   107     Q_UNUSED(animate)
       
   108     Q_UNUSED(flags)
       
   109     }
       
   110 
       
   111 
       
   112 
       
   113 // -----------------------------------------------------------------------------
       
   114 // HbMainWindow::orientation
       
   115 // -----------------------------------------------------------------------------
       
   116 //
       
   117 Qt::Orientation HbMainWindow::orientation(  ) const
       
   118     {
       
   119     }
       
   120 
       
   121 
       
   122 // -----------------------------------------------------------------------------
       
   123 // HbMainWindow::setOrientation
       
   124 // -----------------------------------------------------------------------------
       
   125 //
       
   126 void HbMainWindow::setOrientation( 
       
   127         Qt::Orientation orientation,
       
   128         bool animate )
       
   129     {
       
   130     Q_UNUSED(orientation)
       
   131     Q_UNUSED(animate)
       
   132     }
       
   133 
       
   134 
       
   135 // -----------------------------------------------------------------------------
       
   136 // HbMainWindow::unsetOrientation
       
   137 // -----------------------------------------------------------------------------
       
   138 //
       
   139 void HbMainWindow::unsetOrientation( 
       
   140         bool animate )
       
   141     {
       
   142     }
       
   143 
       
   144 
       
   145 // -----------------------------------------------------------------------------
       
   146 // HbMainWindow::nativeBackgroundWindow
       
   147 // -----------------------------------------------------------------------------
       
   148 //
       
   149 WId HbMainWindow::nativeBackgroundWindow(  )
       
   150     {
       
   151     }
       
   152 
       
   153 
       
   154 // -----------------------------------------------------------------------------
       
   155 // HbMainWindow::resetNativeBackgroundWindow
       
   156 // -----------------------------------------------------------------------------
       
   157 //
       
   158 void HbMainWindow::resetNativeBackgroundWindow(  )
       
   159     {
       
   160     }
       
   161 
       
   162 
       
   163 // -----------------------------------------------------------------------------
       
   164 // HbMainWindow::layoutRect
       
   165 // -----------------------------------------------------------------------------
       
   166 //
       
   167 QRectF HbMainWindow::layoutRect(  ) const
       
   168     {
       
   169     }
       
   170 
       
   171 
       
   172 // -----------------------------------------------------------------------------
       
   173 // HbMainWindow::setBackgroundImageName
       
   174 // -----------------------------------------------------------------------------
       
   175 //
       
   176 void HbMainWindow::setBackgroundImageName( 
       
   177         Qt::Orientation orientation,
       
   178         const QString & name )
       
   179     {
       
   180 	Q_UNUSED(orientation)
       
   181 	Q_UNUSED(name)
       
   182     }
       
   183 
       
   184 
       
   185 // -----------------------------------------------------------------------------
       
   186 // HbMainWindow::backgroundImageName
       
   187 // -----------------------------------------------------------------------------
       
   188 //
       
   189 QString HbMainWindow::backgroundImageName( 
       
   190         Qt::Orientation orientation ) const
       
   191     {
       
   192 	Q_UNUSED(orientation)
       
   193     }
       
   194 
       
   195 
       
   196 // -----------------------------------------------------------------------------
       
   197 // HbMainWindow::setAutomaticOrientationEffectEnabled
       
   198 // -----------------------------------------------------------------------------
       
   199 //
       
   200 void HbMainWindow::setAutomaticOrientationEffectEnabled( 
       
   201         bool enabled )
       
   202     {
       
   203     }
       
   204 
       
   205 
       
   206 // -----------------------------------------------------------------------------
       
   207 // HbMainWindow::automaticOrientationEffectEnabled
       
   208 // -----------------------------------------------------------------------------
       
   209 //
       
   210 bool HbMainWindow::automaticOrientationEffectEnabled(  ) const
       
   211     {
       
   212     }
       
   213 
       
   214 
       
   215 // -----------------------------------------------------------------------------
       
   216 // HbMainWindow::broadcastEvent
       
   217 // -----------------------------------------------------------------------------
       
   218 //
       
   219 void HbMainWindow::broadcastEvent( 
       
   220         int eventType )
       
   221     {
       
   222     }
       
   223 
       
   224 
       
   225 // -----------------------------------------------------------------------------
       
   226 // HbMainWindow::viewReady
       
   227 // -----------------------------------------------------------------------------
       
   228 //
       
   229 void HbMainWindow::viewReady(  )
       
   230     {
       
   231     }
       
   232 
       
   233 
       
   234 // -----------------------------------------------------------------------------
       
   235 // HbMainWindow::aboutToChangeView
       
   236 // -----------------------------------------------------------------------------
       
   237 //
       
   238 void HbMainWindow::aboutToChangeView( 
       
   239         HbView * oldView,
       
   240         HbView * newView )
       
   241     {
       
   242 	Q_UNUSED(oldView)
       
   243 	Q_UNUSED(newView)
       
   244     }
       
   245 
       
   246 
       
   247 // -----------------------------------------------------------------------------
       
   248 // HbMainWindow::currentViewChanged
       
   249 // -----------------------------------------------------------------------------
       
   250 //
       
   251 void HbMainWindow::currentViewChanged( 
       
   252         HbView * view )
       
   253     {
       
   254     Q_UNUSED(view)
       
   255     }
       
   256 
       
   257 
       
   258 // -----------------------------------------------------------------------------
       
   259 // HbMainWindow::aboutToChangeOrientation
       
   260 // -----------------------------------------------------------------------------
       
   261 //
       
   262 void HbMainWindow::aboutToChangeOrientation(  )
       
   263     {
       
   264     }
       
   265 
       
   266 
       
   267 // -----------------------------------------------------------------------------
       
   268 // HbMainWindow::aboutToChangeOrientation
       
   269 // -----------------------------------------------------------------------------
       
   270 //
       
   271 void HbMainWindow::aboutToChangeOrientation( 
       
   272         Qt::Orientation newOrientation,
       
   273         bool animated )
       
   274     {
       
   275     Q_UNUSED(newOrientation)
       
   276     Q_UNUSED(animated)
       
   277     }
       
   278 
       
   279 
       
   280 // -----------------------------------------------------------------------------
       
   281 // HbMainWindow::orientationChanged
       
   282 // -----------------------------------------------------------------------------
       
   283 //
       
   284 void HbMainWindow::orientationChanged( 
       
   285         Qt::Orientation orientation )
       
   286     {
       
   287     Q_UNUSED(orientation)
       
   288     }
       
   289 
       
   290 
       
   291 // -----------------------------------------------------------------------------
       
   292 // HbMainWindow::changeEvent
       
   293 // -----------------------------------------------------------------------------
       
   294 //
       
   295 void HbMainWindow::changeEvent( 
       
   296         QEvent * event )
       
   297     {
       
   298     Q_UNUSED(event)
       
   299     }
       
   300 
       
   301 
       
   302 // -----------------------------------------------------------------------------
       
   303 // HbMainWindow::closeEvent
       
   304 // -----------------------------------------------------------------------------
       
   305 //
       
   306 void HbMainWindow::closeEvent( 
       
   307         QCloseEvent * event )
       
   308     {
       
   309     Q_UNUSED(event)
       
   310     }
       
   311 
       
   312 
       
   313 // -----------------------------------------------------------------------------
       
   314 // HbMainWindow::keyPressEvent
       
   315 // -----------------------------------------------------------------------------
       
   316 //
       
   317 void HbMainWindow::keyPressEvent( 
       
   318         QKeyEvent * event )
       
   319     {
       
   320     Q_UNUSED(event)
       
   321     }
       
   322 
       
   323 
       
   324 // -----------------------------------------------------------------------------
       
   325 // HbMainWindow::keyReleaseEvent
       
   326 // -----------------------------------------------------------------------------
       
   327 //
       
   328 void HbMainWindow::keyReleaseEvent( 
       
   329         QKeyEvent * event )
       
   330     {
       
   331     Q_UNUSED(event)
       
   332     }
       
   333 
       
   334 
       
   335 // -----------------------------------------------------------------------------
       
   336 // HbMainWindow::resizeEvent
       
   337 // -----------------------------------------------------------------------------
       
   338 //
       
   339 void HbMainWindow::resizeEvent( 
       
   340         QResizeEvent * event )
       
   341     {
       
   342     Q_UNUSED(event)
       
   343     }
       
   344 
       
   345 
       
   346 // -----------------------------------------------------------------------------
       
   347 // HbMainWindow::customEvent
       
   348 // -----------------------------------------------------------------------------
       
   349 //
       
   350 void HbMainWindow::customEvent( 
       
   351         QEvent * event )
       
   352     {
       
   353     Q_UNUSED(event)
       
   354     }
       
   355 
       
   356 
       
   357 // -----------------------------------------------------------------------------
       
   358 // HbMainWindow::scrollContentsBy
       
   359 // -----------------------------------------------------------------------------
       
   360 //
       
   361 void HbMainWindow::scrollContentsBy( 
       
   362         int dx,
       
   363         int dy )
       
   364     {
       
   365     }
       
   366 
       
   367 
       
   368 // -----------------------------------------------------------------------------
       
   369 // HbMainWindow::paintEvent
       
   370 // -----------------------------------------------------------------------------
       
   371 //
       
   372 void HbMainWindow::paintEvent( 
       
   373         QPaintEvent * event )
       
   374     {
       
   375     Q_UNUSED(event)
       
   376     }