setup ci
Some checks failed
ci / build (push) Failing after 0s

This commit is contained in:
2026-02-01 16:47:22 +01:00
parent 178a4451d4
commit d8becfaf0b
10 changed files with 83 additions and 21 deletions

View File

@@ -1,7 +1,9 @@
#pragma once
#include <giomm.h>
#include <sigc++/sigc++.h>
#include <vector>
#include "services/dbus/messages.hpp"
class MprisController {
public:
@@ -12,12 +14,15 @@ class MprisController {
void next_song();
void previous_song();
sigc::signal<void(const MprisPlayer2Message &)> &signal_mpris_updated();
private:
Glib::RefPtr<Gio::DBus::Connection> m_connection;
Glib::RefPtr<Gio::DBus::Proxy> m_proxy;
sigc::signal<void(const MprisPlayer2Message &)> mprisUpdatedSignal;
void on_bus_connected(const Glib::RefPtr<Gio::AsyncResult> &result);
void launchNotification();
void signalNotification();
// Called when the song changes
void on_properties_changed(const Gio::DBus::Proxy::MapChangedProperties &changed_properties,

View File

@@ -101,7 +101,7 @@ class HyprlandService {
int socketFd;
///
void bindSocket();
void bindHyprlandSocket();
void init();

View File

@@ -1,16 +1,17 @@
#pragma once
#pragma once
#include <memory>
#include <type_traits>
#include "services/dbus/messages.hpp"
#include "widgets/notification/baseNotification.hpp"
#include "gtkmm/box.h"
#include "gtkmm/centerbox.h"
class SpotifyNotification : public BaseNotification {
public:
SpotifyNotification(std::shared_ptr<Gdk::Monitor> monitor, MprisPlayer2Message message);
virtual ~SpotifyNotification() = default;
private:
std::unique_ptr<Gtk::CenterBox> createButtonBox(MprisPlayer2Message mpris);
private:
std::unique_ptr<Gtk::CenterBox> createButtonBox(MprisPlayer2Message mpris);
};