phoneplugins/infowidgetplugin/tsrc/mocks/mock_infowidgetlayoutmanager.cpp
changeset 56 5bcb308bd24d
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
46:bc5a64e5bc3c 56:5bcb308bd24d
    14 * Description:
    14 * Description:
    15 *
    15 *
    16 */
    16 */
    17 #include <QDebug>
    17 #include <QDebug>
    18 #include <QObject>
    18 #include <QObject>
       
    19 #include <QGraphicsWidget>
       
    20 #include <QList>
    19 #include <smcmockclassincludes.h>
    21 #include <smcmockclassincludes.h>
    20 #include "infowidgetlayoutmanager.h"
    22 #include "infowidgetlayoutmanager.h"
    21 
    23 
    22 // ============================ MEMBER FUNCTIONS ===============================
    24 // ============================ MEMBER FUNCTIONS ===============================
    23 
    25 
    66 
    68 
    67 // -----------------------------------------------------------------------------
    69 // -----------------------------------------------------------------------------
    68 // InfoWidgetLayoutManager::layoutInfoDisplay
    70 // InfoWidgetLayoutManager::layoutInfoDisplay
    69 // -----------------------------------------------------------------------------
    71 // -----------------------------------------------------------------------------
    70 //
    72 //
    71 QGraphicsLayout * InfoWidgetLayoutManager::layoutInfoDisplay(  )
    73 QGraphicsWidget * InfoWidgetLayoutManager::layoutInfoDisplay(  )
    72     {
    74     {
    73     SMC_MOCK_METHOD0( QGraphicsLayout * )
    75     SMC_MOCK_METHOD0( QGraphicsWidget * )
    74     }
    76     }
    75 
    77 
    76 
    78 
    77 // -----------------------------------------------------------------------------
    79 // -----------------------------------------------------------------------------
    78 // InfoWidgetLayoutManager::layoutSettingsDialog
    80 // InfoWidgetLayoutManager::layoutSettingsDialog
    79 // -----------------------------------------------------------------------------
    81 // -----------------------------------------------------------------------------
    80 //
    82 //
    81 QGraphicsLayout * InfoWidgetLayoutManager::layoutSettingsDialog(  )
    83 QGraphicsWidget * InfoWidgetLayoutManager::layoutSettingsDialog(  )
    82     {
    84     {
    83     SMC_MOCK_METHOD0( QGraphicsLayout * )
    85     SMC_MOCK_METHOD0( QGraphicsWidget * )
    84     }
    86     }
    85 
    87 
    86 
    88 
    87 // -----------------------------------------------------------------------------
    89 // -----------------------------------------------------------------------------
    88 // InfoWidgetLayoutManager::widgetRoles
    90 // InfoWidgetLayoutManager::widgetRoles
    99 
   101 
   100 // -----------------------------------------------------------------------------
   102 // -----------------------------------------------------------------------------
   101 // InfoWidgetLayoutManager::loadWidgets
   103 // InfoWidgetLayoutManager::loadWidgets
   102 // -----------------------------------------------------------------------------
   104 // -----------------------------------------------------------------------------
   103 //
   105 //
   104 bool InfoWidgetLayoutManager::loadWidgets(
   106 bool InfoWidgetLayoutManager::loadWidgets( 
   105         const DisplayRole displayRole, 
       
   106         const QList<LayoutItemRole> &displayWidgets,
       
   107         QMap<LayoutItemRole, QGraphicsWidget *> &widgetMap)
       
   108     {
       
   109     typedef QMap <LayoutItemRole, QGraphicsWidget *> & TYPE3;
       
   110     SMC_MOCK_METHOD3( bool, const DisplayRole, displayRole, 
       
   111         const QList<LayoutItemRole> &, displayWidgets, 
       
   112         TYPE3, widgetMap )
       
   113     }
       
   114 
       
   115 // -----------------------------------------------------------------------------
       
   116 // InfoWidgetLayoutManager::reloadWidgets
       
   117 // -----------------------------------------------------------------------------
       
   118 //
       
   119 bool InfoWidgetLayoutManager::reloadWidgets( 
       
   120         const DisplayRole displayRole )
   107         const DisplayRole displayRole )
   121     {
   108     {
   122     SMC_MOCK_METHOD1( bool, const DisplayRole, displayRole )
   109     SMC_MOCK_METHOD1( bool, const DisplayRole, displayRole )
   123     }
   110     }
   124 
   111 
   217     SMC_MOCK_METHOD0( void )
   204     SMC_MOCK_METHOD0( void )
   218     }
   205     }
   219 
   206 
   220 
   207 
   221 // -----------------------------------------------------------------------------
   208 // -----------------------------------------------------------------------------
   222 // InfoWidgetLayoutManager::layoutRows
       
   223 // -----------------------------------------------------------------------------
       
   224 //
       
   225 int InfoWidgetLayoutManager::layoutRows(  ) const
       
   226     {
       
   227     SMC_MOCK_METHOD0( int )
       
   228     }
       
   229 
       
   230 
       
   231 // -----------------------------------------------------------------------------
       
   232 // InfoWidgetLayoutManager::setLayoutRows
       
   233 // -----------------------------------------------------------------------------
       
   234 //
       
   235 void InfoWidgetLayoutManager::setLayoutRows( 
       
   236         int rows )
       
   237     {
       
   238     SMC_MOCK_METHOD1( void, int, rows )
       
   239     }
       
   240 
       
   241 
       
   242 // -----------------------------------------------------------------------------
       
   243 // InfoWidgetLayoutManager::layoutRowHeight
   209 // InfoWidgetLayoutManager::layoutRowHeight
   244 // -----------------------------------------------------------------------------
   210 // -----------------------------------------------------------------------------
   245 //
   211 //
   246 qreal InfoWidgetLayoutManager::layoutRowHeight(  )
   212 qreal InfoWidgetLayoutManager::layoutRowHeight(  )
   247     {
   213     {
   263         QRectF, rect )
   229         QRectF, rect )
   264     }
   230     }
   265 
   231 
   266 
   232 
   267 // -----------------------------------------------------------------------------
   233 // -----------------------------------------------------------------------------
       
   234 // InfoWidgetLayoutManager::loadWidgets
       
   235 // -----------------------------------------------------------------------------
       
   236 //
       
   237 bool InfoWidgetLayoutManager::loadWidgets( 
       
   238         const DisplayRole displayRole,
       
   239         const QList<LayoutItemRole> & displayWidgets,
       
   240         QMap <LayoutItemRole,QGraphicsWidget *> & widgetMap )
       
   241     {
       
   242     //SMC_MOCK_METHOD3( bool, const DisplayRole, displayRole, 
       
   243     //    const QList<LayoutItemRole> &, displayWidgets, 
       
   244     //    QMap<LayoutItemRole,QGraphicsWidget *> &, widgetMap )
       
   245     }
       
   246 
       
   247 
       
   248 // -----------------------------------------------------------------------------
   268 // InfoWidgetDocumentLoader::createObject
   249 // InfoWidgetDocumentLoader::createObject
   269 // -----------------------------------------------------------------------------
   250 // -----------------------------------------------------------------------------
   270 //
   251 //
   271 QObject * InfoWidgetDocumentLoader::createObject( 
   252 QObject * InfoWidgetDocumentLoader::createObject( 
   272         const QString & type,
   253         const QString & type,