vibed a cached downloader for images

This commit is contained in:
2026-02-01 00:57:16 +01:00
parent 13278d518a
commit caca94bc6a
10 changed files with 376 additions and 24 deletions

View File

@@ -0,0 +1,23 @@
#pragma once
#include <memory>
#include <vector>
#include "gdkmm/monitor.h"
class NotificationController {
static std::shared_ptr<NotificationController> instance;
public:
static std::shared_ptr<NotificationController> getInstance() {
if (!NotificationController::instance) {
NotificationController::instance = std::shared_ptr<NotificationController>(new NotificationController());
}
return NotificationController::instance;
}
void showSpotifyNotification(const std::string &title, const std::string &message, const std::string &artwork_url);
void showNotificationOnAllMonitors(const std::string &title, const std::string &message);
private:
NotificationController();
std::vector<std::shared_ptr<Gdk::Monitor>> activeMonitors;
};