summaryrefslogtreecommitdiff
path: root/src/location/places/provider/qplacedetailsreplyimpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/places/provider/qplacedetailsreplyimpl.h')
-rw-r--r--src/location/places/provider/qplacedetailsreplyimpl.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/location/places/provider/qplacedetailsreplyimpl.h b/src/location/places/provider/qplacedetailsreplyimpl.h
new file mode 100644
index 00000000..9f6f70b0
--- /dev/null
+++ b/src/location/places/provider/qplacedetailsreplyimpl.h
@@ -0,0 +1,37 @@
+#ifndef QPLACEDETAILSREPLYIMPL_H
+#define QPLACEDETAILSREPLYIMPL_H
+
+#include <QObject>
+#include <QHash>
+
+#include "../qplacedetailsreply.h"
+#include "qplacerestreply.h"
+#include "qplacejsondetailsparser.h"
+
+namespace QT_PLACES_NAMESPACE {
+
+class QPlaceDetailsReplyImpl : public QPlaceDetailsReply
+{
+ Q_OBJECT
+public:
+ explicit QPlaceDetailsReplyImpl(QPlaceRestReply *reply, QObject *parent = 0);
+ ~QPlaceDetailsReplyImpl();
+ void abort();
+
+Q_SIGNALS:
+ void processingFinished(QPlaceReply *reply);
+ void processingError(QPlaceReply *reply, const Error &error, const QString &errorMessage);
+
+private slots:
+ void restError(QPlaceRestReply::Error error);
+ void predictionsReady(const QPlaceJSonDetailsParser::Error &error,
+ const QString &errorMessage);
+
+private:
+ QPlaceRestReply *restReply;
+ QPlaceJSonDetailsParser *parser;
+};
+
+} // QT_PLACES_NAMESPACE
+
+#endif // QPLACEDETAILSREPLYIMPL_H