acurrencyentry.h 674 B

1234567891011121314151617181920212223242526272829
  1. #ifndef ACURRENCYENTRY_H
  2. #define ACURRENCYENTRY_H
  3. #include "src/classes/aentry.h"
  4. #include "src/database/adatabasetypes.h"
  5. struct ACurrencyEntry : public AEntry
  6. {
  7. public:
  8. enum class CurrencyName {
  9. Licence = 1,
  10. TypeRating = 2,
  11. LineCheck = 3,
  12. Medical = 4,
  13. Custom1 = 5,
  14. Custom2 = 6
  15. };
  16. ACurrencyEntry() = delete;
  17. ACurrencyEntry(CurrencyName name);
  18. ACurrencyEntry(CurrencyName name, QDate expiration_date);
  19. ACurrencyEntry(const ACurrencyEntry& te) = default;
  20. ACurrencyEntry& operator=(const ACurrencyEntry& te) = default;
  21. bool isValid() const;
  22. };
  23. #endif // ACURRENCYENTRY_H