phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_infowidgetlayoutmanager.cpp
changeset 27 2f8f8080a020
parent 22 6bb1b21d2484
child 30 ebdbd102c78a
equal deleted inserted replaced
22:6bb1b21d2484 27:2f8f8080a020
     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
    84     SMC_MOCK_METHOD1( void, int, rows )
    84     SMC_MOCK_METHOD1( void, int, rows )
    85     }
    85     }
    86 
    86 
    87 
    87 
    88 // -----------------------------------------------------------------------------
    88 // -----------------------------------------------------------------------------
       
    89 // InfoWidgetLayoutManager::rowHeight
       
    90 // -----------------------------------------------------------------------------
       
    91 //
       
    92 qreal InfoWidgetLayoutManager::rowHeight(  ) const
       
    93     {
       
    94     SMC_MOCK_METHOD0( qreal )
       
    95     }
       
    96 
       
    97 
       
    98 // -----------------------------------------------------------------------------
    89 // InfoWidgetLayoutManager::layoutInfoDisplay
    99 // InfoWidgetLayoutManager::layoutInfoDisplay
    90 // -----------------------------------------------------------------------------
   100 // -----------------------------------------------------------------------------
    91 //
   101 //
    92 QGraphicsLayout * InfoWidgetLayoutManager::layoutInfoDisplay(  )
   102 QGraphicsLayout * InfoWidgetLayoutManager::layoutInfoDisplay(  )
    93     {
   103     {
   131     SMC_MOCK_METHOD3( bool, const DisplayRole, displayRole, 
   141     SMC_MOCK_METHOD3( bool, const DisplayRole, displayRole, 
   132         const QList<LayoutItemRole> &, displayWidgets, 
   142         const QList<LayoutItemRole> &, displayWidgets, 
   133         TYPE3, widgetMap )
   143         TYPE3, widgetMap )
   134     }
   144     }
   135 
   145 
       
   146 // -----------------------------------------------------------------------------
       
   147 // InfoWidgetLayoutManager::reloadWidgets
       
   148 // -----------------------------------------------------------------------------
       
   149 //
       
   150 bool InfoWidgetLayoutManager::reloadWidgets( 
       
   151         const DisplayRole displayRole )
       
   152     {
       
   153     SMC_MOCK_METHOD1( bool, const DisplayRole, displayRole )
       
   154     }
       
   155 
   136 
   156 
   137 // -----------------------------------------------------------------------------
   157 // -----------------------------------------------------------------------------
   138 // InfoWidgetLayoutManager::loadWidget
   158 // InfoWidgetLayoutManager::loadWidget
   139 // -----------------------------------------------------------------------------
   159 // -----------------------------------------------------------------------------
   140 //
   160 //
   147         DisplayRole, displayRole, 
   167         DisplayRole, displayRole, 
   148         LayoutItemRole, widgetRole )
   168         LayoutItemRole, widgetRole )
   149     }
   169     }
   150 
   170 
   151 
   171 
   152 
       
   153 // -----------------------------------------------------------------------------
   172 // -----------------------------------------------------------------------------
   154 // InfoWidgetLayoutManager::getWidget
   173 // InfoWidgetLayoutManager::getWidget
   155 // -----------------------------------------------------------------------------
   174 // -----------------------------------------------------------------------------
   156 //
   175 //
   157 QGraphicsWidget * InfoWidgetLayoutManager::getWidget( 
   176 QGraphicsWidget * InfoWidgetLayoutManager::getWidget( 
   166 // -----------------------------------------------------------------------------
   185 // -----------------------------------------------------------------------------
   167 //
   186 //
   168 QGraphicsWidget * InfoWidgetLayoutManager::contentWidget(  )
   187 QGraphicsWidget * InfoWidgetLayoutManager::contentWidget(  )
   169     {
   188     {
   170     SMC_MOCK_METHOD0( QGraphicsWidget * )
   189     SMC_MOCK_METHOD0( QGraphicsWidget * )
       
   190     }
       
   191 
       
   192 
       
   193 // -----------------------------------------------------------------------------
       
   194 // InfoWidgetLayoutManager::removeWidget
       
   195 // -----------------------------------------------------------------------------
       
   196 //
       
   197 void InfoWidgetLayoutManager::removeWidget( 
       
   198         LayoutItemRole itemRole )
       
   199     {
       
   200     SMC_MOCK_METHOD1( void, LayoutItemRole, itemRole )
   171     }
   201     }
   172 
   202 
   173 
   203 
   174 // -----------------------------------------------------------------------------
   204 // -----------------------------------------------------------------------------
   175 // InfoWidgetLayoutManager::hideWidget
   205 // InfoWidgetLayoutManager::hideWidget