logsui/logsengine/tsrc/stubs/xqaiwrequest.h
changeset 19 e4c884866116
child 21 2f0af9ba7665
equal deleted inserted replaced
16:c5af8598d22c 19:e4c884866116
       
     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 
       
    19 #ifndef XQAIWREQUEST_H_
       
    20 #define XQAIWREQUEST_H_
       
    21 
       
    22 
       
    23 #include <QObject>
       
    24 #include <QList>
       
    25 #include <QVariant>
       
    26 #include <xqaiwinterfacedescriptor.h>
       
    27 
       
    28 
       
    29 class XQAiwRequest : public QObject
       
    30     {
       
    31     Q_OBJECT
       
    32 
       
    33 public:
       
    34 
       
    35     XQAiwRequest(const XQAiwInterfaceDescriptor &descriptor, const QString &operation, bool embedded = true);
       
    36     virtual ~XQAiwRequest();
       
    37 
       
    38 public slots:
       
    39         
       
    40     void setArguments(const QList<QVariant> &arguments);
       
    41     const XQAiwInterfaceDescriptor &descriptor() const;
       
    42 
       
    43     bool send();
       
    44 
       
    45     const QString &operation() const;
       
    46 
       
    47     void setSynchronous(bool synchronous);
       
    48     
       
    49     
       
    50 signals:
       
    51 
       
    52     void requestOk(const QVariant& result);
       
    53     void requestError(int errorCode, const QString& errorMessage);
       
    54 
       
    55     };
       
    56 
       
    57 #endif /* XQAIWREQUEST_H_ */