Skip to content
API Documentation
BastionGuard™
AlertWindowRealtime.hpp
Go to the documentation of this file.
1/*
2 * BastionGuard™
3 * Copyright (C) 2025–2026 Calogero Scarnà
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 *
17 * BastionGuard™ is a trademark of Calogero Scarnà.
18 * The BastionGuard™ name and branding are not licensed under the GPL.
19 */
20
21#pragma once
22#include <gtkmm.h>
23#include <string>
24
25class AlertWindowRealtime : public Gtk::Window {
26public:
27 AlertWindowRealtime(const std::string& file,
28 const std::string& family,
29 size_t pending = 0);
30
31 sigc::signal<void()> signal_ignore_all;
32
33private:
34 std::string filePath;
35
36 Gtk::Box vbox;
37 Gtk::Label titleLabel;
38 Gtk::Label messageLabel;
39 Gtk::Label pendingLabel;
40
41 Gtk::Button quarantineButton;
42 Gtk::Button ignoreButton;
43 Gtk::Button ignoreAllButton;
44
45 void move_to_quarantine();
46};
AlertWindowRealtime(const std::string &file, const std::string &family, size_t pending=0)
sigc::signal< void()> signal_ignore_all