12 #include "app_config.h"
19 #include "utilities/fgx_gzlib.h"
20 #include "utilities/workThread.h"
25 typedef QList<AD_WINDSOCK> SOCKLIST;
32 typedef QList<AD_COMMS> COMMLIST;
35 double lat,lon, hdgt, lenft;
38 typedef QList<AD_RUNWAY> RUNWAYLIST;
45 double tlat,tlon,televft;
54 typedef QList<PAD_AIRPORT> AIRPORTLIST;
55 typedef AIRPORTLIST * PAIRPORTLIST;
56 #define INITPAP(a) a->got_tower = false
62 AIRPORTLIST * pAirList;
71 #define lf_noAddTax 0x00000001
72 #define lf_noSkipOOR 0x00000002 // SKIP out-of-range values, else FIX
73 #define lf_noFixName 0x00000004 // fix case of name
74 #define lf_ForceLoad 0x00000008 // force a load, even if the SAME file
83 bool loadDirect(QString file,
int flag = 0);
84 int loadOnThread(QString file,
int flag = 0);
85 PAIRPORTLIST getAirListPtr();
86 PAIRPORTLIST setAirListPtr(PAIRPORTLIST);
87 void clear_list(PAIRPORTLIST pal = 0);
88 int getAirportCount();
91 int getLoadTime() {
return loadTime_ms; }
92 PAD_AIRPORT findAirportByICAO(QString);
93 QString findNameByICAO(QString icao,
int flag = 0);
94 QString getAiportStg(PAD_AIRPORT pad,
int flag = 0);
95 AIRPORTLIST *getNearestAiportList(PAD_AIRPORT pad,
int flag = 0);
96 bool isThreadInFunction();
98 bool isFileLoaded(QString zf);
104 void thread_done(
int,
int);
107 PAIRPORTLIST pAirList;
108 static void _loadStatic(
void *vp);
115 extern void sortByICAO(AIRPORTLIST *pal);
118 #endif // LOADAPTDAT_H