/* * \brief Sends one time GET requests to server. * * \copyright Copyright (c) 2014-2017 Governikus GmbH & Co. KG, Germany */ #pragma once #include #include #include #include #include #include namespace governikus { class HttpServerRequestor : public QObject { Q_OBJECT private: QEventLoop mEventLoop; QTimer mTimer; QScopedPointer mReply; public: HttpServerRequestor(); virtual ~HttpServerRequestor(); QPointer request(const QUrl& pUrl, int pTimeOut = 2000); static QUrl createUrl(const QString& pQuery, int pPort, const QHostAddress& pHost = QHostAddress::LocalHost, const QString& pPath = QStringLiteral("/eID-Client")); private Q_SLOTS: void finished(); }; } /* namespace governikus */