#ifndef AIRMAP_QT_TELEMETRY_H_ #define AIRMAP_QT_TELEMETRY_H_ #include #include #include #include namespace airmap { namespace qt { class Telemetry : public airmap::Telemetry, public std::enable_shared_from_this { public: static std::shared_ptr create(const std::shared_ptr& dispatcher, const std::shared_ptr& client); void submit_updates(const Flight& flight, const std::string& key, const std::initializer_list& updates) override; private: explicit Telemetry(const std::shared_ptr& dispatcher, const std::shared_ptr& client); std::shared_ptr dispatcher_; std::shared_ptr client_; }; } // namespace qt } // namespace airmap #endif // AIRMAP_QT_TELEMETRY_H_