summaryrefslogtreecommitdiff
path: root/Network/Cloudlog.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'Network/Cloudlog.hpp')
-rwxr-xr-xNetwork/Cloudlog.hpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/Network/Cloudlog.hpp b/Network/Cloudlog.hpp
new file mode 100755
index 00000000..c35f7947
--- /dev/null
+++ b/Network/Cloudlog.hpp
@@ -0,0 +1,36 @@
+#ifndef CLOUDLOG_HPP_
+#define CLOUDLOG_HPP_
+
+#include <boost/core/noncopyable.hpp>
+#include <QObject>
+#include "pimpl_h.hpp"
+
+class QString;
+class QNetworkAccessManager;
+class Configuration;
+
+//
+// Cloudlog
+//
+class Cloudlog final
+ : public QObject
+{
+ Q_OBJECT
+
+public:
+ explicit Cloudlog (Configuration const *, QNetworkAccessManager *, QObject * parent = 0);
+ ~Cloudlog ();
+
+ void logQso(QByteArray ADIF);
+ Q_SLOT void testApi (QString const& url, QString const& apiKey);
+
+ Q_SIGNAL void apikey_ok () const;
+ Q_SIGNAL void apikey_ro () const;
+ Q_SIGNAL void apikey_invalid () const;
+
+private:
+ class impl;
+ pimpl<impl> m_;
+};
+
+#endif