openPilotLog
acompletiondata.h
1 #ifndef ACOMPLETIONDATA_H
2 #define ACOMPLETIONDATA_H
3 #include "src/database/adatabase.h"
4 
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  QMap<RowId_T, QString> pilotsIdMap;
29  QMap<RowId_T, QString> tailsIdMap;
30  QMap<RowId_T, QString> airportIcaoIdMap;
31  QMap<RowId_T, QString> airportIataIdMap;
32  QMap<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
The ACompletionData class provides data to QCompleters and QMaps used for mapping user input to datab...
Definition: acompletiondata.h:12
void update()
updates data from the user modifiable tables
Definition: acompletiondata.cpp:31
void init()
init Retrieves Data and populates Lists and Maps
Definition: acompletiondata.cpp:3
The UserDateState struct caches the current number of entries in relevant database tables for fast ac...
Definition: adatabase.h:97