phoneengine/parserrecognizer/tsrc/ut_parserrecognizer/xqservicerequest.h
changeset 30 ebdbd102c78a
parent 21 92ab7f8d0eab
equal deleted inserted replaced
27:2f8f8080a020 30:ebdbd102c78a
    21 #include <QVariant>
    21 #include <QVariant>
    22 #include <QString>
    22 #include <QString>
    23 
    23 
    24 class XQServiceRequest : public QObject
    24 class XQServiceRequest : public QObject
    25 {
    25 {
    26 Q_OBJECT
    26     Q_OBJECT
       
    27 
    27 public:
    28 public:
    28     XQServiceRequest(QString const& api, QString const& method, bool const& sync = true);
    29     XQServiceRequest(QString const& api, QString const& method, bool const& sync = true);
    29     ~XQServiceRequest();
    30     ~XQServiceRequest();
       
    31     bool send();
    30     bool send(QVariant& retValue);
    32     bool send(QVariant& retValue);
       
    33     void setSynchronous(const bool &synchronous);
       
    34 
       
    35 signals:
       
    36     void requestCompleted(const QVariant& value) ;
       
    37     void requestError(int err);
    31 };
    38 };
    32 #endif
    39 #endif