You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libsdr/cmd/aprsapplication.hh

30 lines
582 B
C++

#ifndef __SDR_APRS_APRSAPPLICATION_HH__
#define __SDR_APRS_APRSAPPLICATION_HH__
#include "http.hh"
#include "aprs.hh"
namespace sdr {
class APRSApplication: public APRS
{
public:
APRSApplication(http::Server &server);
~APRSApplication();
bool spots(const http::JSON &request, http::JSON &response);
void update(const http::Request &request, http::Response &response);
void handleAPRSMessage(const Message &message);
protected:
http::Server &_server;
std::list<Message> _messages;
std::list<http::Connection> _clients;
};
}
#endif // APRSAPPLICATION_HH