phoneplugins/infowidgetplugin/tsrc/mocks/mock_hbdocumentloader.cpp
changeset 45 6b911d05207e
equal deleted inserted replaced
37:ba76fc04e6c2 45:6b911d05207e
       
     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 // HbDocumentLoader::load
       
    92 // -----------------------------------------------------------------------------
       
    93 //
       
    94 QObjectList HbDocumentLoader::load( 
       
    95         const QString & fileName,
       
    96         bool * ok )
       
    97     {
       
    98     SMC_MOCK_METHOD2( QObjectList, const QString &, fileName, 
       
    99         bool *, ok )
       
   100     }
       
   101 
       
   102 // -----------------------------------------------------------------------------
       
   103 // HbDocumentLoader::load
       
   104 // -----------------------------------------------------------------------------
       
   105 //
       
   106 QObjectList HbDocumentLoader::load( 
       
   107         QIODevice * device,
       
   108         bool * ok )
       
   109     {
       
   110     SMC_MOCK_METHOD2( QObjectList, QIODevice *, device, 
       
   111         bool *, ok )
       
   112     }
       
   113 
       
   114 
       
   115 // -----------------------------------------------------------------------------
       
   116 // HbDocumentLoader::findWidget
       
   117 // -----------------------------------------------------------------------------
       
   118 //
       
   119 QGraphicsWidget * HbDocumentLoader::findWidget( 
       
   120         const QString & name ) const
       
   121     {
       
   122     SMC_MOCK_METHOD1( QGraphicsWidget *, const QString &, name )
       
   123     }
       
   124 
       
   125 
       
   126 // -----------------------------------------------------------------------------
       
   127 // HbDocumentLoader::findObject
       
   128 // -----------------------------------------------------------------------------
       
   129 //
       
   130 QObject * HbDocumentLoader::findObject( 
       
   131         const QString & name ) const
       
   132     {
       
   133     SMC_MOCK_METHOD1( QObject *, const QString &, name )
       
   134     }
       
   135 
       
   136 
       
   137 // -----------------------------------------------------------------------------
       
   138 // HbDocumentLoader::setObjectTree
       
   139 // -----------------------------------------------------------------------------
       
   140 //
       
   141 bool HbDocumentLoader::setObjectTree( 
       
   142         QObjectList roots )
       
   143     {
       
   144     SMC_MOCK_METHOD1( bool, QObjectList, roots )
       
   145     }
       
   146 
       
   147 
       
   148 // -----------------------------------------------------------------------------
       
   149 // HbDocumentLoader::reset
       
   150 // -----------------------------------------------------------------------------
       
   151 //
       
   152 void HbDocumentLoader::reset(  )
       
   153     {
       
   154     SMC_MOCK_METHOD0( void )
       
   155     }
       
   156 
       
   157 
       
   158 // -----------------------------------------------------------------------------
       
   159 // HbDocumentLoader::version
       
   160 // -----------------------------------------------------------------------------
       
   161 //
       
   162 QString HbDocumentLoader::version(  )
       
   163     {
       
   164     SMC_MOCK_METHOD0( QString )
       
   165     }
       
   166 
       
   167 
       
   168 // -----------------------------------------------------------------------------
       
   169 // HbDocumentLoader::createObject
       
   170 // -----------------------------------------------------------------------------
       
   171 //
       
   172 QObject * HbDocumentLoader::createObject( 
       
   173         const QString & type,
       
   174         const QString & name )
       
   175     {
       
   176     SMC_MOCK_METHOD2( QObject *, const QString &, type, 
       
   177         const QString &, name )
       
   178     }
       
   179 
       
   180