24 lines
543 B
C++
24 lines
543 B
C++
#pragma once
|
|
|
|
#include <map>
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
#include "components/mediaPlayer.hpp"
|
|
#include "connection/dbus/mpris.hpp"
|
|
|
|
#include "gtkmm/box.h"
|
|
|
|
class MediaWidget : public Gtk::Box {
|
|
public:
|
|
MediaWidget();
|
|
|
|
private:
|
|
Gtk::Box container;
|
|
|
|
std::shared_ptr<MprisController> mprisController = MprisController::getInstance();
|
|
void addPlayerWidget(const std::string &bus_name);
|
|
void removePlayerWidget(const std::string &bus_name);
|
|
|
|
std::map<std::string, std::unique_ptr<MediaPlayer>> mediaWidgets;
|
|
}; |