phoneengine/phoneservices/tsrc/shared/mock_xqserviceprovider.cpp
changeset 46 bc5a64e5bc3c
equal deleted inserted replaced
45:6b911d05207e 46:bc5a64e5bc3c
       
     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 <xqserviceprovider.h>
       
    20 #include <xqrequestinfo.h>
       
    21 
       
    22 // ============================ MEMBER FUNCTIONS ===============================
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // XQServiceProvider::XQServiceProvider
       
    26 // -----------------------------------------------------------------------------
       
    27 //
       
    28 XQServiceProvider::XQServiceProvider( 
       
    29         const QString & service,
       
    30         QObject * parent )
       
    31     :
       
    32     QObject(parent)
       
    33     {
       
    34     Q_UNUSED(service)
       
    35     }
       
    36 
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // XQServiceProvider::~XQServiceProvider
       
    40 // -----------------------------------------------------------------------------
       
    41 //
       
    42 XQServiceProvider::~XQServiceProvider(  )
       
    43     {
       
    44     
       
    45     }
       
    46 
       
    47 
       
    48 // -----------------------------------------------------------------------------
       
    49 // XQServiceProvider::SetPlugin
       
    50 // -----------------------------------------------------------------------------
       
    51 //
       
    52 void XQServiceProvider::SetPlugin( 
       
    53         QObject * impl_plugin )
       
    54     {
       
    55     SMC_MOCK_METHOD1( void, QObject *, impl_plugin )
       
    56     }
       
    57 
       
    58 
       
    59 // -----------------------------------------------------------------------------
       
    60 // XQServiceProvider::publishAll
       
    61 // -----------------------------------------------------------------------------
       
    62 //
       
    63 void XQServiceProvider::publishAll(  )
       
    64     {
       
    65     SMC_MOCK_METHOD0( void )
       
    66     }
       
    67 
       
    68 
       
    69 // -----------------------------------------------------------------------------
       
    70 // XQServiceProvider::setCurrentRequestAsync
       
    71 // -----------------------------------------------------------------------------
       
    72 //
       
    73 int XQServiceProvider::setCurrentRequestAsync(  )
       
    74     {
       
    75     SMC_MOCK_METHOD0( int )
       
    76     }
       
    77 
       
    78 
       
    79 // -----------------------------------------------------------------------------
       
    80 // XQServiceProvider::completeRequest
       
    81 // -----------------------------------------------------------------------------
       
    82 //
       
    83 bool XQServiceProvider::completeRequest( 
       
    84         int index,
       
    85         const QVariant & retValue )
       
    86     {
       
    87     SMC_MOCK_METHOD2( bool, int, index, 
       
    88         const QVariant &, retValue )
       
    89     }
       
    90 
       
    91 
       
    92 // -----------------------------------------------------------------------------
       
    93 // XQServiceProvider::requestInfo
       
    94 // -----------------------------------------------------------------------------
       
    95 //
       
    96 XQRequestInfo XQServiceProvider::requestInfo(  ) const
       
    97     {
       
    98     SMC_MOCK_METHOD0( XQRequestInfo )
       
    99     }
       
   100 
       
   101