nice spotify notification
This commit is contained in:
@@ -2,8 +2,10 @@
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include "services/dbus/mpris.hpp"
|
||||
|
||||
#include "gdkmm/monitor.h"
|
||||
#include "gtkmm/window.h"
|
||||
class NotificationController {
|
||||
static std::shared_ptr<NotificationController> instance;
|
||||
|
||||
@@ -15,9 +17,11 @@ class NotificationController {
|
||||
return NotificationController::instance;
|
||||
}
|
||||
|
||||
void showSpotifyNotification(const std::string &title, const std::string &message, const std::string &artwork_url);
|
||||
void showSpotifyNotification(MprisController::MprisPlayer2Message mpris);
|
||||
void showNotificationOnAllMonitors(const std::string &title, const std::string &message);
|
||||
private:
|
||||
NotificationController();
|
||||
std::vector<std::shared_ptr<Gdk::Monitor>> activeMonitors;
|
||||
|
||||
void baseWindowSetup(std::shared_ptr<Gtk::Window> win, std::shared_ptr<Gdk::Monitor> monitor);
|
||||
};
|
||||
Reference in New Issue
Block a user