diff -r acd4e87b24b4 -r 2f0af9ba7665 logsui/logsengine/tsrc/stubs/xqservicerequest.h --- a/logsui/logsengine/tsrc/stubs/xqservicerequest.h Fri Sep 17 16:47:32 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,64 +0,0 @@ -/* -* Copyright (c) 2009 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: -* -*/ - -#ifndef XQSERVICEREQUEST_H -#define XQSERVICEREQUEST_H - -#include -#include -#include - -class XQServiceRequest : public QObject -{ - Q_OBJECT -public: - - XQServiceRequest(); - XQServiceRequest(const QString& fullServiceName, const QString& message, const bool& synchronous = true); - virtual ~XQServiceRequest(); - - bool send(QVariant& retValue) ; - - void setSynchronous(const bool &synchronous); - bool isSynchronous() const; - - QString service() const; - QString message() const; - - void setArguments(const QList &arguments); - - template - inline XQServiceRequest &operator<< (const T &var) - { - QVariant v = qVariantFromValue(var); - addArg(v); - return *this; - } - - void setInfo(const XQRequestInfo &info); - XQRequestInfo info() const; - -signals: - void requestCompleted(const QVariant& value) ; - void requestError(int err); - -private: - void addArg(const QVariant& v); -}; - - -#endif