#pragma once #include #include "playback.h" class DBusAPI { friend class DBusAPISender; static const char *serviceName; static const char *objectPath; static const char *interfaceName; std::unique_ptr connection; std::unique_ptr api; public: Playback *playback; DBusAPI(Playback *playback); }; class DBusAPISender { std::unique_ptr proxy; std::unique_ptr connection; bool connected = true; public: void playFile(std::string file); void setPitch(double pitch); void setTempo(double tempo); void setSpeed(double speed); bool isOnlyInstance(); DBusAPISender(); };