blob: 72130a0762dba489824ffa69d875340011d69ca3 (
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
29
30
31
32
33
34
35
36
37
38
39
40
|
#ifndef MAP65_DECODE_DISPLAY_FILTER_H
#define MAP65_DECODE_DISPLAY_FILTER_H
#include <QString>
#include <QVector>
class Map65DecodeDisplayFilter
{
public:
bool handleControlLine(QString const& line);
bool shouldDisplay(QString const& decodeLine);
void completeEarlyPass();
void completeCycle();
private:
enum class Pass
{
Unknown,
Early,
Final,
Manual,
Disk
};
struct Identity
{
bool q65;
int utc;
int frequencyHz;
QString message;
};
static bool parseIdentity(QString const& line, Identity * identity);
static bool matches(Identity const& left, Identity const& right);
Pass pass_ {Pass::Unknown};
QVector<Identity> earlyDecodes_;
};
#endif
|