openPilotLog
acompletiondata.h
1 #ifndef ACOMPLETIONDATA_H
2 #define ACOMPLETIONDATA_H
3 #include "src/database/database.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  QHash<int, QString> pilotsIdMap;
29  QHash<int, QString> tailsIdMap;
30  QHash<int, QString> airportIcaoIdMap;
31  QHash<int, QString> airportIataIdMap;
32  QHash<int, 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 QHashs used for mapping user input to data...
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