diff options
| author | Christoph Berg <christoph.berg@credativ.de> | 2022-08-23 10:23:16 +0200 |
|---|---|---|
| committer | Christoph Berg <christoph.berg@credativ.de> | 2022-08-23 10:23:16 +0200 |
| commit | 2d1068e60bce7ae1fff11623454900e8cee956b1 (patch) | |
| tree | acebe276e30466ef0ab91bc3da5e379bec0d7dc5 /Network/LotWUsers.hpp | |
| parent | 43bebfbad6e7ba026bd3d55720c7d9e12a7ef8ef (diff) | |
New upstream version 2.6.0~rc3+repackupstream/2.6.0_rc3+repack
Diffstat (limited to 'Network/LotWUsers.hpp')
| -rwxr-xr-x | Network/LotWUsers.hpp | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/Network/LotWUsers.hpp b/Network/LotWUsers.hpp index 238c5740..b3fd6601 100755 --- a/Network/LotWUsers.hpp +++ b/Network/LotWUsers.hpp @@ -1,41 +1,41 @@ -#ifndef LOTW_USERS_HPP_ -#define LOTW_USERS_HPP_ - -#include <boost/core/noncopyable.hpp> -#include <QObject> -#include "pimpl_h.hpp" - -class QString; -class QDate; -class QNetworkAccessManager; - -// -// LotWUsers - Lookup Logbook of the World users -// -class LotWUsers final - : public QObject -{ - Q_OBJECT - -public: - explicit LotWUsers (QNetworkAccessManager *, QObject * parent = 0); - ~LotWUsers (); - - void set_local_file_path (QString const&); - - Q_SLOT void load (QString const& url, bool fetch = true, bool force_download = false); - Q_SLOT void set_age_constraint (qint64 uploaded_since_days); - - // returns true if the specified call sign 'call' has uploaded their - // log to LotW in the last 'age_constraint_days' days - bool user (QString const& call) const; - - Q_SIGNAL void LotW_users_error (QString const& reason) const; - Q_SIGNAL void load_finished () const; - -private: - class impl; - pimpl<impl> m_; -}; - -#endif +#ifndef LOTW_USERS_HPP_
+#define LOTW_USERS_HPP_
+
+#include <boost/core/noncopyable.hpp>
+#include <QObject>
+#include "pimpl_h.hpp"
+
+class QString;
+class QDate;
+class QNetworkAccessManager;
+
+//
+// LotWUsers - Lookup Logbook of the World users
+//
+class LotWUsers final
+ : public QObject
+{
+ Q_OBJECT
+
+public:
+ explicit LotWUsers (QNetworkAccessManager *, QObject * parent = 0);
+ ~LotWUsers ();
+
+ void set_local_file_path (QString const&);
+
+ Q_SLOT void load (QString const& url, bool fetch = true, bool force_download = false);
+ Q_SLOT void set_age_constraint (qint64 uploaded_since_days);
+
+ // returns true if the specified call sign 'call' has uploaded their
+ // log to LotW in the last 'age_constraint_days' days
+ bool user (QString const& call) const;
+
+ Q_SIGNAL void LotW_users_error (QString const& reason) const;
+ Q_SIGNAL void load_finished () const;
+
+private:
+ class impl;
+ pimpl<impl> m_;
+};
+
+#endif
|
