| openPilotLog

acompletiondata.h
1 #ifndef ACOMPLETIONDATA_H
2 #define ACOMPLETIONDATA_H
3 #include "src/database/adatabase.h"
4
11 class ACompletionData
12 {
13 public:
17 void init();
18
22 void update();
23 void updateTails();
24 void updatePilots();
25
26
27 // Maps for input mapping DB key - user input
28 QHash<RowId_T, QString> pilotsIdMap;
29 QHash<RowId_T, QString> tailsIdMap;
30 QHash<RowId_T, QString> airportIcaoIdMap;
31 QHash<RowId_T, QString> airportIataIdMap;
32 QHash<RowId_T, QString> airportNameIdMap;
33 // Lists for QCompleter
34 QStringList pilotList;
35 QStringList tailsList;
36 QStringList airportList;
37 // User Data State to trigger update if needed
38 UserDataState current_state;
39 };
40
41 #endif // ACOMPLETIONDATA_H
ACompletionData
The ACompletionData class provides data to QCompleters and QHashs used for mapping user input to data...
Definition: acompletiondata.h:12
ACompletionData::update
void update()
updates data from the user modifiable tables
Definition: acompletiondata.cpp:31
ACompletionData::init
void init()
init Retrieves Data and populates Lists and Maps
Definition: acompletiondata.cpp:3
UserDataState
The UserDateState struct caches the current number of entries in relevant database tables for fast ac...
Definition: adatabase.h:97