#pragma once #include #include class MprisController { public: MprisController(); void toggle_play(); void next_song(); void previous_song(); private: Glib::RefPtr m_connection; Glib::RefPtr m_proxy; void on_bus_connected(const Glib::RefPtr &result); void launchNotification(); // Called when the song changes void on_properties_changed(const Gio::DBus::Proxy::MapChangedProperties &changed_properties, const std::vector &invalidated_properties); };