summaryrefslogtreecommitdiff
path: root/qmap/livecq_parser.h
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-10-09 14:12:35 +0200
committerChristoph Berg <myon@debian.org>2026-10-09 14:12:35 +0200
commitffc62c792c9a5196cb4ce7a353287dfe20db6524 (patch)
tree1269efa852935b183daae4bb33a58d1b4d2ffb53 /qmap/livecq_parser.h
parent059831534c7e884f0a607ed86b582fd00d821731 (diff)
New upstream version 3.3.0~beta1+dfsgupstream/3.3.0_beta1+dfsg
Diffstat (limited to 'qmap/livecq_parser.h')
-rw-r--r--qmap/livecq_parser.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/qmap/livecq_parser.h b/qmap/livecq_parser.h
index aa80bb10..d1941b0a 100644
--- a/qmap/livecq_parser.h
+++ b/qmap/livecq_parser.h
@@ -1,6 +1,7 @@
#ifndef QMAP_LIVE_CQ_PARSER_H
#define QMAP_LIVE_CQ_PARSER_H
+#include <QDateTime>
#include <QString>
#include <QStringList>
@@ -16,6 +17,12 @@ namespace QMapLiveCQ
};
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