diff -r 6bcf277166c1 -r 451b2e1545b2 radiohswidget/stub/xqaiwrequest.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/radiohswidget/stub/xqaiwrequest.h Thu Jul 22 16:33:45 2010 +0100 @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Stub for FM Radio home screen widget unit testing. +* +*/ + +#ifndef XQAIWREQUEST_H +#define XQAIWREQUEST_H + +// System includes +#include +#include +#include + +// User includes +#include + +class XQAiwRequest : public QObject +{ + Q_OBJECT + +public: + XQAiwRequest(const QString &interface, const QString &operation, bool isEmbedded); + ~XQAiwRequest(); + + void replyRequestOk(const QVariantList &reply); + +public slots: + void setOperation(const QString &operation); + void setSynchronous(bool synchronous); + void setEmbedded(bool embedded); + bool send(); + void setInfo(const XQRequestInfo &info); + +signals: + void requestOk(const QVariant& result); + void requestError(int errorCode, const QString& errorMessage); + +private: + bool replyAfterDelay(); + + +private: // data + QString mOperation; + QStringList pendingRequests; + int mRequestCount; + +}; + +#endif // XQAIWREQUEST_H