18 #ifndef DBCOMPLETIONDATA_H
19 #define DBCOMPLETIONDATA_H
29 AirportIdentifierICAO,
30 AirportIdentifierIATA,
61 void updateAirports();
64 QHash<int, QString> pilotsIdMap;
65 QHash<int, QString> tailsIdMap;
66 QHash<int, QString> airportIcaoIdMap;
67 QHash<int, QString> airportIataIdMap;
68 QHash<int, QString> airportNameIdMap;
70 QStringList pilotList;
71 QStringList tailsList;
72 QStringList airportList;
Provides data for QCompleters and QHashs.
Definition: dbcompletiondata.h:48
void init()
init Retrieves Data and populates Lists and Maps
Definition: dbcompletiondata.cpp:24
static const QHash< int, QString > getIdMap(CompleterTarget target)
returns a QHash of a human-readable database value and its row id. Used in the Dialogs to map user in...
Definition: dbcompletiondata.cpp:124
static const QStringList getCompletionList(CompleterTarget target)
getCompletionList returns a QStringList of values for a QCompleter based on database values
Definition: dbcompletiondata.cpp:81
void update()
updates data from the user modifiable tables
Definition: dbcompletiondata.cpp:50
A namespace to collect constants and enums used throughout the application.
Definition: paths.cpp:3
CompleterTarget
The DatabaseTarget enum lists database items that are used by completers, for content matching or nee...
Definition: dbcompletiondata.h:28