videocollection/tsrc/stubs/src/xqaiwrequest.cpp
changeset 67 72c709219fcd
equal deleted inserted replaced
66:adb51f74b890 67:72c709219fcd
       
     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 
       
    18 #include "xqaiwrequeststub.h"
       
    19 
       
    20 int XQAiwRequest::mSetArgumentsCallCount = 0;
       
    21 int XQAiwRequest::mLastErrorReturnValue = 0;
       
    22 int XQAiwRequest::mLastErrorCallCount = 0;
       
    23 int XQAiwRequest::mSendCallCount = 0;
       
    24 bool XQAiwRequest::mSendFails = false;
       
    25 int XQAiwRequest::mSetEmbeddedCallCount = 0;
       
    26 
       
    27 XQAiwRequest::XQAiwRequest()
       
    28 {
       
    29     
       
    30 }
       
    31 
       
    32 XQAiwRequest::~XQAiwRequest()
       
    33 {
       
    34     
       
    35 }
       
    36 
       
    37 void XQAiwRequest::setArguments(const QList<QVariant> &arguments)
       
    38 {
       
    39     Q_UNUSED(arguments);
       
    40     mSetArgumentsCallCount++;
       
    41 }
       
    42 
       
    43 int XQAiwRequest::lastError() const
       
    44 {
       
    45     mLastErrorCallCount++;
       
    46     return mLastErrorReturnValue;
       
    47 }
       
    48 
       
    49 bool XQAiwRequest::send()
       
    50 {
       
    51     mSendCallCount++;
       
    52     return !mSendFails;
       
    53 }
       
    54 
       
    55 void XQAiwRequest::setEmbedded(bool embedded)
       
    56 {
       
    57     Q_UNUSED(embedded);
       
    58     mSetEmbeddedCallCount++;
       
    59 }