12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- #ifndef DBSUMMARY_H
- #define DBSUMMARY_H
- #include "src/database/database.h"
- namespace OPL {
- enum class DbSummaryKey {
- total_flights,
- total_tails,
- total_pilots,
- last_flight,
- total_time,
- };
- class DbSummary : public QObject
- {
- public:
- DbSummary() = default;
-
- static const QMap<DbSummaryKey, QString> databaseSummary(const QString& db_path);
-
- static const QString summaryString(const QString& db_path);
- private:
- Q_OBJECT
- inline const static QString SQLITE_DRIVER = QStringLiteral("QSQLITE");
- };
- }
- #endif // DBSUMMARY_H
|