
Former-commit-id: 5158d4459d5b43213803b859ae4491113cf765f9 Former-commit-id: cd1720a0ea9b781adbe21e052efb79b75bc137f1
36 lines
511 B
C++
36 lines
511 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;
|
|
|
|
char server[32];
|
|
};
|
|
|
|
#endif |