You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
934 B
31 lines
934 B
#ifndef AIRMAP_QT_TELEMETRY_H_ |
|
#define AIRMAP_QT_TELEMETRY_H_ |
|
|
|
#include <airmap/client.h> |
|
#include <Airmap/qt/dispatcher.h> |
|
#include <airmap/telemetry.h> |
|
|
|
#include <memory> |
|
|
|
namespace airmap { |
|
namespace qt { |
|
|
|
class Telemetry : public airmap::Telemetry, public std::enable_shared_from_this<Telemetry> { |
|
public: |
|
static std::shared_ptr<Telemetry> create(const std::shared_ptr<Dispatcher>& dispatcher, |
|
const std::shared_ptr<airmap::Client>& client); |
|
|
|
void submit_updates(const Flight& flight, const std::string& key, |
|
const std::initializer_list<Update>& updates) override; |
|
|
|
private: |
|
explicit Telemetry(const std::shared_ptr<Dispatcher>& dispatcher, const std::shared_ptr<airmap::Client>& client); |
|
|
|
std::shared_ptr<Dispatcher> dispatcher_; |
|
std::shared_ptr<airmap::Client> client_; |
|
}; |
|
|
|
} // namespace qt |
|
} // namespace airmap |
|
|
|
#endif // AIRMAP_QT_TELEMETRY_H_
|
|
|