Skip to content
API Documentation
BastionGuard™
PasswordSearchRow.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
23#include <gtkmm.h>
24#include "PasswordEntry.hpp"
25
26class PasswordSearchRow : public Gtk::Frame {
27public:
28 explicit PasswordSearchRow(const PasswordEntry& entry);
29
30 sigc::signal<void(const PasswordEntry&)> signal_reveal();
31 sigc::signal<void(const PasswordEntry&)> signal_edit();
32 sigc::signal<void(const PasswordEntry&)> signal_delete();
33
34private:
36
37 Gtk::Box rootBox;
38 Gtk::Box headerBox;
39 Gtk::Box bodyBox;
40 Gtk::Revealer revealer;
41
42 Gtk::Label titleLabel;
43 Gtk::Label expandIconLabel;
44 Gtk::Label usernameLabel;
45 Gtk::Label urlLabel;
46 Gtk::Label updatedLabel;
47
48 Gtk::Box actionsBox;
49 Gtk::Button revealButton;
50 Gtk::Button editButton;
51 Gtk::Button deleteButton;
52
53 sigc::signal<void(const PasswordEntry&)> signalReveal_;
54 sigc::signal<void(const PasswordEntry&)> signalEdit_;
55 sigc::signal<void(const PasswordEntry&)> signalDelete_;
56
57 void buildUi();
58 void connectSignals();
59 void toggleExpanded();
60};
sigc::signal< void(const PasswordEntry &)> signal_delete()
sigc::signal< void(const PasswordEntry &)> signalDelete_
sigc::signal< void(const PasswordEntry &)> signalReveal_
sigc::signal< void(const PasswordEntry &)> signal_edit()
PasswordSearchRow(const PasswordEntry &entry)
sigc::signal< void(const PasswordEntry &)> signalEdit_
sigc::signal< void(const PasswordEntry &)> signal_reveal()