File: PSKReporter.h

package info (click to toggle)
js8call 2.5.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 24,720 kB
  • sloc: cpp: 562,651; sh: 898; python: 132; ansic: 102; makefile: 4
file content (43 lines) | stat: -rwxr-xr-x 934 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef PSK_REPORTER_HPP_
#define PSK_REPORTER_HPP_

#include "JS8_Include/pimpl_h.h"
#include "JS8_Main/Radio.h"
#include <QObject>

class QString;
class Configuration;
class Bands;

class PSKReporter final : public QObject {
    Q_OBJECT

  public:
    explicit PSKReporter(Configuration const *, QString const &program_info);

    ~PSKReporter();

    void start();

    void reconnect();

    void setLocalStation(QString const &call, QString const &grid,
                         QString const &antenna);

    void addRemoteStation(QString const &call, QString const &grid,
                          Radio::Frequency freq, QString const &mode, int snr,
                          QDateTime const &utcTimestamp);

    //
    // Flush any pending spots to PSK Reporter
    //
    void sendReport(bool last = false);

    Q_SIGNAL void errorOccurred(QString const &reason);

  private:
    class impl;
    pimpl<impl> m_;
};

#endif