Skip to content
API Documentation
BastionGuard™
ScanPromptWindow.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
24class ScanPromptWindow : public Gtk::Window {
25public:
26 ScanPromptWindow(const std::string& devnode);
27
28 sigc::signal<void()> signal_scan_requested() { return sig_scan_; }
29 sigc::signal<void()> signal_cancel_requested() { return sig_cancel_; }
30
31private:
32 sigc::signal<void()> sig_scan_;
33 sigc::signal<void()> sig_cancel_;
34
35 Gtk::Box vbox {Gtk::Orientation::VERTICAL, 15};
36 Gtk::Label titleLabel;
37 Gtk::Label messageLabel;
38 Gtk::Button scanButton;
39 Gtk::Button cancelButton;
40};
sigc::signal< void()> sig_scan_
sigc::signal< void()> sig_cancel_
ScanPromptWindow(const std::string &devnode)
sigc::signal< void()> signal_scan_requested()
sigc::signal< void()> signal_cancel_requested()