
Former-commit-id: bbd3fe3c0438b9f8d2188b8d1f5ffc70616a789f Former-commit-id: d19da520563adeb80996df92c65ba5e1e6785596
34 lines
491 B
C++
34 lines
491 B
C++
#ifndef AIRCRAFTDATA_H
|
|
#define AIRCRAFTDATA_H
|
|
|
|
#include "dump1090.h"
|
|
#include "view1090.h"
|
|
#include "structs.h"
|
|
|
|
#include "AircraftList.h"
|
|
|
|
class AircraftData {
|
|
private:
|
|
//from view1090.c
|
|
|
|
int setupConnection(struct client *c);
|
|
|
|
//
|
|
|
|
struct client *c;
|
|
int fd;
|
|
char pk_buf[8];
|
|
|
|
public:
|
|
void initialize();
|
|
void connect();
|
|
void disconnect();
|
|
void update();
|
|
AircraftData();
|
|
|
|
AircraftList aircraftList;
|
|
Aircraft *selectedAircraft;
|
|
Modes modes;
|
|
};
|
|
|
|
#endif |