
Former-commit-id: 0915c6c04f958bbf233b02981320be626aae7d31 Former-commit-id: d63cf3baf92d2b35e462b324ce47bea8225ed39a
43 lines
646 B
C++
43 lines
646 B
C++
#ifndef APPDATA_H
|
|
#define APPDATA_H
|
|
|
|
#include "view1090.h" //for Modes
|
|
|
|
#include "AircraftList.h"
|
|
|
|
class AppData {
|
|
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();
|
|
void updateStatus();
|
|
AppData();
|
|
|
|
AircraftList aircraftList;
|
|
Modes modes;
|
|
|
|
char server[32];
|
|
|
|
int numVisiblePlanes;
|
|
int numPlanes;
|
|
double maxDist;
|
|
int totalCount;
|
|
double avgSig;
|
|
double sigAccumulate;
|
|
double msgRate;
|
|
double msgRateAccumulate;
|
|
};
|
|
|
|
#endif |