WSJT-X/LotWUsers.hpp

36 lines
710 B
C++

#ifndef LOTW_USERS_HPP_
#define LOTW_USERS_HPP_
#include <boost/core/noncopyable.hpp>
#include <QObject>
#include "pimpl_h.hpp"
class QString;
class QDate;
class Configuration;
//
// LotWUsers - Lookup Logbook of the World users
//
class LotWUsers final
: public QObject
{
Q_OBJECT
public:
LotWUsers (Configuration const * configuration, QObject * parent = 0);
~LotWUsers ();
// returns true if the specified call sign 'call' has uploaded their
// log to LotW in the last 'uploaded_since_days' days
Q_SLOT bool user (QString const& call, qint64 uploaded_since_days) const;
Q_SIGNAL void LotW_users_error (QString const& reason) const;
private:
class impl;
pimpl<impl> m_;
};
#endif