refacor media widget, apply clang format rule
This commit is contained in:
24
include/widgets/controlCenter/mediaWidget.hpp
Normal file
24
include/widgets/controlCenter/mediaWidget.hpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include "components/mediaPlayer.hpp"
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#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;
|
||||
};
|
||||
Reference in New Issue
Block a user