telutils/dialpad/tsrc/unit/shared/mock_xqaiwrequest.cpp
branchRCL_3
changeset 19 7d48bed6ce0c
equal deleted inserted replaced
18:594d59766373 19:7d48bed6ce0c
       
     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 <qglobal.h>
       
    19 #include <smcmockclassincludes.h>
       
    20 #include "xqaiwrequest.h"
       
    21 
       
    22 // ============================ MEMBER FUNCTIONS ===============================
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // XQAiwRequest::XQAiwRequest
       
    26 // -----------------------------------------------------------------------------
       
    27 //
       
    28 XQAiwRequest::XQAiwRequest( 
       
    29         const XQAiwInterfaceDescriptor & descriptor,
       
    30         const QString & operation,
       
    31         bool embedded )
       
    32     :
       
    33     QObject()
       
    34     {
       
    35     
       
    36     }
       
    37 
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 // XQAiwRequest::XQAiwRequest
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 XQAiwRequest::XQAiwRequest( 
       
    44         const QUrl & uri,
       
    45         const XQAiwInterfaceDescriptor & descriptor,
       
    46         const QString & operation )
       
    47     :
       
    48     QObject( )
       
    49     {
       
    50     
       
    51     }
       
    52 
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // XQAiwRequest::XQAiwRequest
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 XQAiwRequest::XQAiwRequest( 
       
    59         const QFile & file,
       
    60         const XQAiwInterfaceDescriptor & descriptor,
       
    61         const QString & operation )
       
    62     :
       
    63     QObject()
       
    64     {
       
    65     
       
    66     }
       
    67 
       
    68 
       
    69 // -----------------------------------------------------------------------------
       
    70 // XQAiwRequest::XQAiwRequest
       
    71 // -----------------------------------------------------------------------------
       
    72 //
       
    73 XQAiwRequest::XQAiwRequest( 
       
    74         const XQSharableFile & file,
       
    75         const XQAiwInterfaceDescriptor & descriptor,
       
    76         const QString & operation )
       
    77     :
       
    78     QObject()
       
    79     {
       
    80     
       
    81     }
       
    82 
       
    83 
       
    84 // -----------------------------------------------------------------------------
       
    85 // XQAiwRequest::~XQAiwRequest
       
    86 // -----------------------------------------------------------------------------
       
    87 //
       
    88 XQAiwRequest::~XQAiwRequest(  )
       
    89     {
       
    90     
       
    91     }
       
    92 
       
    93 
       
    94 // -----------------------------------------------------------------------------
       
    95 // XQAiwRequest::createAction
       
    96 // -----------------------------------------------------------------------------
       
    97 //
       
    98 QAction * XQAiwRequest::createAction(  )
       
    99     {
       
   100     SMC_MOCK_METHOD0( QAction * )
       
   101     }
       
   102 
       
   103 
       
   104 // -----------------------------------------------------------------------------
       
   105 // XQAiwRequest::setArguments
       
   106 // -----------------------------------------------------------------------------
       
   107 //
       
   108 void XQAiwRequest::setArguments( 
       
   109         const QList<QVariant> & arguments )
       
   110     {
       
   111     SMC_MOCK_METHOD1( void, const QList<QVariant> &, arguments )
       
   112     }
       
   113 
       
   114 
       
   115 // -----------------------------------------------------------------------------
       
   116 // XQAiwRequest::lastError
       
   117 // -----------------------------------------------------------------------------
       
   118 //
       
   119 int XQAiwRequest::lastError(  ) const
       
   120     {
       
   121     SMC_MOCK_METHOD0( int )
       
   122     }
       
   123 
       
   124 
       
   125 // -----------------------------------------------------------------------------
       
   126 // XQAiwRequest::lastErrorMessage
       
   127 // -----------------------------------------------------------------------------
       
   128 //
       
   129 const QString & XQAiwRequest::lastErrorMessage(  ) const
       
   130     {
       
   131     SMC_MOCK_METHOD0( const QString & )
       
   132     }
       
   133 
       
   134 
       
   135 // -----------------------------------------------------------------------------
       
   136 // XQAiwRequest::descriptor
       
   137 // -----------------------------------------------------------------------------
       
   138 //
       
   139 const XQAiwInterfaceDescriptor & XQAiwRequest::descriptor(  ) const
       
   140     {
       
   141     SMC_MOCK_METHOD0( const XQAiwInterfaceDescriptor & )
       
   142     }
       
   143 
       
   144 
       
   145 // -----------------------------------------------------------------------------
       
   146 // XQAiwRequest::send
       
   147 // -----------------------------------------------------------------------------
       
   148 //
       
   149 bool XQAiwRequest::send(  )
       
   150     {
       
   151     SMC_MOCK_METHOD0( bool )
       
   152     }
       
   153 
       
   154 
       
   155 // -----------------------------------------------------------------------------
       
   156 // XQAiwRequest::send
       
   157 // -----------------------------------------------------------------------------
       
   158 //
       
   159 bool XQAiwRequest::send( 
       
   160         QVariant & returnValue )
       
   161     {
       
   162     SMC_MOCK_METHOD1( bool, QVariant &, returnValue )
       
   163     }
       
   164 
       
   165 
       
   166 // -----------------------------------------------------------------------------
       
   167 // XQAiwRequest::setEmbedded
       
   168 // -----------------------------------------------------------------------------
       
   169 //
       
   170 void XQAiwRequest::setEmbedded( 
       
   171         bool embedded )
       
   172     {
       
   173     SMC_MOCK_METHOD1( void, bool, embedded )
       
   174     }
       
   175 
       
   176 
       
   177 // -----------------------------------------------------------------------------
       
   178 // XQAiwRequest::isEmbedded
       
   179 // -----------------------------------------------------------------------------
       
   180 //
       
   181 bool XQAiwRequest::isEmbedded(  ) const
       
   182     {
       
   183     SMC_MOCK_METHOD0( bool )
       
   184     }
       
   185 
       
   186 
       
   187 // -----------------------------------------------------------------------------
       
   188 // XQAiwRequest::setOperation
       
   189 // -----------------------------------------------------------------------------
       
   190 //
       
   191 void XQAiwRequest::setOperation( 
       
   192         const QString & operation )
       
   193     {
       
   194     SMC_MOCK_METHOD1( void, const QString &, operation )
       
   195     }
       
   196 
       
   197 
       
   198 // -----------------------------------------------------------------------------
       
   199 // XQAiwRequest::operation
       
   200 // -----------------------------------------------------------------------------
       
   201 //
       
   202 const QString & XQAiwRequest::operation(  ) const
       
   203     {
       
   204     SMC_MOCK_METHOD0( const QString & )
       
   205     }
       
   206 
       
   207 
       
   208 // -----------------------------------------------------------------------------
       
   209 // XQAiwRequest::setSynchronous
       
   210 // -----------------------------------------------------------------------------
       
   211 //
       
   212 void XQAiwRequest::setSynchronous( 
       
   213         bool synchronous )
       
   214     {
       
   215     SMC_MOCK_METHOD1( void, bool, synchronous )
       
   216     }
       
   217 
       
   218 
       
   219 // -----------------------------------------------------------------------------
       
   220 // XQAiwRequest::isSynchronous
       
   221 // -----------------------------------------------------------------------------
       
   222 //
       
   223 bool XQAiwRequest::isSynchronous(  ) const
       
   224     {
       
   225     SMC_MOCK_METHOD0( bool )
       
   226     }
       
   227 
       
   228 
       
   229 // -----------------------------------------------------------------------------
       
   230 // XQAiwRequest::setBackground
       
   231 // -----------------------------------------------------------------------------
       
   232 //
       
   233 void XQAiwRequest::setBackground( 
       
   234         bool background )
       
   235     {
       
   236     SMC_MOCK_METHOD1( void, bool, background )
       
   237     }
       
   238 
       
   239 
       
   240 // -----------------------------------------------------------------------------
       
   241 // XQAiwRequest::isBackground
       
   242 // -----------------------------------------------------------------------------
       
   243 //
       
   244 bool XQAiwRequest::isBackground(  ) const
       
   245     {
       
   246     SMC_MOCK_METHOD0( bool )
       
   247     }
       
   248 
       
   249 
       
   250 // -----------------------------------------------------------------------------
       
   251 // XQAiwRequest::setInfo
       
   252 // -----------------------------------------------------------------------------
       
   253 //
       
   254 void XQAiwRequest::setInfo( 
       
   255         const XQRequestInfo & requestInfo )
       
   256     {
       
   257     SMC_MOCK_METHOD1( void, const XQRequestInfo &, requestInfo )
       
   258     }
       
   259 
       
   260 
       
   261 // -----------------------------------------------------------------------------
       
   262 // XQAiwRequest::info
       
   263 // -----------------------------------------------------------------------------
       
   264 //
       
   265 XQRequestInfo XQAiwRequest::info(  ) const
       
   266     {
       
   267     SMC_MOCK_METHOD0( XQRequestInfo )
       
   268     }
       
   269 
       
   270 
       
   271 // -----------------------------------------------------------------------------
       
   272 // XQAiwRequest::results
       
   273 // -----------------------------------------------------------------------------
       
   274 //
       
   275 const QVariant & XQAiwRequest::results(  ) const
       
   276     {
       
   277     SMC_MOCK_METHOD0( const QVariant & )
       
   278     }
       
   279 
       
   280 
       
   281 // -----------------------------------------------------------------------------
       
   282 // XQAiwRequest::sendExecute
       
   283 // -----------------------------------------------------------------------------
       
   284 //
       
   285 bool XQAiwRequest::sendExecute(  )
       
   286     {
       
   287     SMC_MOCK_METHOD0( bool )
       
   288     }
       
   289 
       
   290 
       
   291 // -----------------------------------------------------------------------------
       
   292 // XQAiwRequest::handleAsyncResponse
       
   293 // -----------------------------------------------------------------------------
       
   294 //
       
   295 void XQAiwRequest::handleAsyncResponse(const QVariant& value)
       
   296 {
       
   297     Q_UNUSED(value);
       
   298 }
       
   299 
       
   300 
       
   301 // -----------------------------------------------------------------------------
       
   302 // XQAiwRequest::sendFromAction
       
   303 // -----------------------------------------------------------------------------
       
   304 //
       
   305 void XQAiwRequest::sendFromAction(bool checked)
       
   306 {
       
   307     Q_UNUSED(checked);
       
   308 }
       
   309 
       
   310 
       
   311 // -----------------------------------------------------------------------------
       
   312 // XQAiwRequest::handleAsyncError
       
   313 // -----------------------------------------------------------------------------
       
   314 //
       
   315 void XQAiwRequest::handleAsyncError(int err)
       
   316 {
       
   317     Q_UNUSED(err);    
       
   318 }