phoneplugins/infowidgetplugin/infowidgetprovider/tsrc/mocks/mock_hbdocumentloader.cpp
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 40 bab96b7ed1a4
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
     1 /* 
       
     2 * Copyright (c) 2009 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 <smcmockclassincludes.h>
       
    19 #include <hbmainwindow.h>
       
    20 #include <QString>
       
    21 #include <QGraphicsWidget>
       
    22 #include <QFile>
       
    23 
       
    24 #include "hbdocumentloader.h"
       
    25 
       
    26 // ============================ MEMBER FUNCTIONS ===============================
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // HbDocumentLoader::HbDocumentLoader
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 HbDocumentLoader::HbDocumentLoader(  )
       
    33     : d_ptr(0)
       
    34     {
       
    35     
       
    36     }
       
    37 
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 // HbDocumentLoader::HbDocumentLoader
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 HbDocumentLoader::HbDocumentLoader( 
       
    44         const HbMainWindow * window )
       
    45     : d_ptr(0)    
       
    46     {
       
    47     
       
    48     }
       
    49 
       
    50 
       
    51 // -----------------------------------------------------------------------------
       
    52 // HbDocumentLoader::~HbDocumentLoader
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 HbDocumentLoader::~HbDocumentLoader(  )
       
    56     {
       
    57     
       
    58     }
       
    59 
       
    60 
       
    61 // -----------------------------------------------------------------------------
       
    62 // HbDocumentLoader::load
       
    63 // -----------------------------------------------------------------------------
       
    64 //
       
    65 QObjectList HbDocumentLoader::load( 
       
    66         const QString & fileName,
       
    67         const QString & section,
       
    68         bool * ok )
       
    69     {
       
    70     SMC_MOCK_METHOD3( QObjectList, const QString &, fileName, 
       
    71         const QString &, section, 
       
    72         bool *, ok )
       
    73     }
       
    74 
       
    75 
       
    76 // -----------------------------------------------------------------------------
       
    77 // HbDocumentLoader::load
       
    78 // -----------------------------------------------------------------------------
       
    79 //
       
    80 QObjectList HbDocumentLoader::load( 
       
    81         QIODevice * device,
       
    82         const QString & section,
       
    83         bool * ok )
       
    84     {
       
    85     SMC_MOCK_METHOD3( QObjectList, QIODevice *, device, 
       
    86         const QString &, section, 
       
    87         bool *, ok )
       
    88     }
       
    89 
       
    90 
       
    91 // -----------------------------------------------------------------------------
       
    92 // HbDocumentLoader::load
       
    93 // -----------------------------------------------------------------------------
       
    94 //
       
    95 QObjectList HbDocumentLoader::load( 
       
    96         const QString & fileName,
       
    97         bool * ok )
       
    98     {
       
    99     SMC_MOCK_METHOD2( QObjectList, const QString &, fileName, 
       
   100         bool *, ok )
       
   101     }
       
   102 
       
   103 
       
   104 // -----------------------------------------------------------------------------
       
   105 // HbDocumentLoader::load
       
   106 // -----------------------------------------------------------------------------
       
   107 //
       
   108 QObjectList HbDocumentLoader::load( 
       
   109         QIODevice * device,
       
   110         bool * ok )
       
   111     {
       
   112     SMC_MOCK_METHOD2( QObjectList, QIODevice *, device, 
       
   113         bool *, ok )
       
   114     }
       
   115 
       
   116 
       
   117 // -----------------------------------------------------------------------------
       
   118 // HbDocumentLoader::findWidget
       
   119 // -----------------------------------------------------------------------------
       
   120 //
       
   121 QGraphicsWidget * HbDocumentLoader::findWidget( 
       
   122         const QString & name ) const
       
   123     {
       
   124     SMC_MOCK_METHOD1( QGraphicsWidget *, const QString &, name )
       
   125     }
       
   126 
       
   127 
       
   128 // -----------------------------------------------------------------------------
       
   129 // HbDocumentLoader::findObject
       
   130 // -----------------------------------------------------------------------------
       
   131 //
       
   132 QObject * HbDocumentLoader::findObject( 
       
   133         const QString & name ) const
       
   134     {
       
   135     SMC_MOCK_METHOD1( QObject *, const QString &, name )
       
   136     }
       
   137 
       
   138 
       
   139 // -----------------------------------------------------------------------------
       
   140 // HbDocumentLoader::setObjectTree
       
   141 // -----------------------------------------------------------------------------
       
   142 //
       
   143 bool HbDocumentLoader::setObjectTree( 
       
   144         QObjectList roots )
       
   145     {
       
   146     SMC_MOCK_METHOD1( bool, QObjectList, roots )
       
   147     }
       
   148 
       
   149 
       
   150 // -----------------------------------------------------------------------------
       
   151 // HbDocumentLoader::reset
       
   152 // -----------------------------------------------------------------------------
       
   153 //
       
   154 void HbDocumentLoader::reset(  )
       
   155     {
       
   156     SMC_MOCK_METHOD0( void )
       
   157     }
       
   158 
       
   159 
       
   160 // -----------------------------------------------------------------------------
       
   161 // HbDocumentLoader::version
       
   162 // -----------------------------------------------------------------------------
       
   163 //
       
   164 QString HbDocumentLoader::version(  )
       
   165     {
       
   166     SMC_MOCK_METHOD0( QString )
       
   167     }
       
   168 
       
   169 
       
   170 // -----------------------------------------------------------------------------
       
   171 // HbDocumentLoader::createObject
       
   172 // -----------------------------------------------------------------------------
       
   173 //
       
   174 QObject * HbDocumentLoader::createObject( 
       
   175         const QString & type,
       
   176         const QString & name )
       
   177     {
       
   178     SMC_MOCK_METHOD2( QObject *, const QString &, type, 
       
   179         const QString &, name )
       
   180     }
       
   181 
       
   182