34 lines
779 B
C++
34 lines
779 B
C++
#pragma once
|
|
|
|
#include <spdlog/spdlog.h>
|
|
|
|
#include "connection/dbus/messages.hpp"
|
|
#include "widgets/notification/baseNotification.hpp"
|
|
#include "gtkmm/box.h"
|
|
|
|
class CopyNotification : public BaseNotification {
|
|
enum class CopyType {
|
|
TEXT,
|
|
IMAGE
|
|
};
|
|
|
|
public:
|
|
CopyNotification(uint64_t id,
|
|
std::shared_ptr<Gdk::Monitor> monitor,
|
|
NotifyMessage notify);
|
|
virtual ~CopyNotification() = default;
|
|
|
|
protected:
|
|
private:
|
|
CopyType type;
|
|
std::string copiedText;
|
|
Glib::RefPtr<Gdk::Pixbuf> copiedImage;
|
|
Gtk::Box mainBox;
|
|
|
|
std::string title;
|
|
|
|
void createImageNotification(NotifyMessage notify);
|
|
void createTextNotification(NotifyMessage notify);
|
|
|
|
void setupTitle(std::string title);
|
|
}; |