blob: d1941b0a6076e6d2bd8bb0acc73aa6a7969eb7ad (
plain)
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
|
#ifndef QMAP_LIVE_CQ_PARSER_H
#define QMAP_LIVE_CQ_PARSER_H
#include <QDateTime>
#include <QString>
#include <QStringList>
namespace QMapLiveCQ
{
struct Record
{
QString callsign;
QString grid;
QString message;
int receiveFrequency {0};
int scheduledFrequency {0};
};
bool parse(QStringList const& tokens, int frequencyOffset, Record& record);
// UTC date and time of a decode whose time is given as "hhmmss" or "hhmm".
// The date is today's (from nowUtc), or yesterday's when that would put the
// decode more than a minute in the future (a period that began before
// midnight). Invalid if the time is malformed.
QDateTime spotTime(QString const& decodeTime, QDateTime const& nowUtc);
}
#endif
|