openPilotLog
acurrencyentry.h
1 #ifndef ACURRENCYENTRY_H
2 #define ACURRENCYENTRY_H
3 
4 #include "src/classes/aentry.h"
5 #include "src/database/adatabasetypes.h"
6 
7 struct ACurrencyEntry : public AEntry
8 {
9 public:
10  enum class CurrencyName {
11  Licence = 1,
12  TypeRating = 2,
13  LineCheck = 3,
14  Medical = 4,
15  Custom1 = 5,
16  Custom2 = 6
17  };
18 
19  ACurrencyEntry() = delete;
20  ACurrencyEntry(CurrencyName name);
21  ACurrencyEntry(CurrencyName name, QDate expiration_date);
22 
23  ACurrencyEntry(const ACurrencyEntry& te) = default;
24  ACurrencyEntry& operator=(const ACurrencyEntry& te) = default;
25 
26  bool isValid() const;
27 };
28 
29 #endif // ACURRENCYENTRY_H
ACurrencyEntry::isValid
bool isValid() const
ACurrencyEntry::isValid returns true if the object holds a valid expiration date.
Definition: acurrencyentry.cpp:34
ACurrencyEntry
Definition: acurrencyentry.h:8
AEntry
The Entry class encapsulates table metadata(table name, row id) and data for new and existing entries...
Definition: aentry.h:40