mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 04:11:16 -05:00
873b1d1c43
Includes a new settings facility with the highlighting being contrled by a new model class and a modified QListView to display the data for editing. Edits include enable and disable check boxes, a contextual pop-up menu to adjust backkground and foreground colours. Still to be implemented are priorities for highlighting categories. This will be adjustable by drag and drop in the Colors settings panel, it is already implemented by the priority order has no effect on highlighting of decodes yet. The LotW users data file fetch and time since user's last upload is now controled from the settings dialog. This change also drops support for Qt versions before 5.5 so that many workarounds for earlier versions can be removed. Debug trace is slightly modified to make better use of the Qt built in facilities to format and synchronize cross thread messaging.
42 lines
900 B
C++
42 lines
900 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 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 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
|