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