Add Kyber to algorithm strings.
[qpwmc.git] / editShortcutDialog.h
blob3b871bd6ef59bae6c436e7cf65302802a43ec1b1
1 /*
2 Copyright (C) 2010-2024 Ben Kibbey <bjk@luxsci.net>
4 This file is part of qpwmc.
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with this library; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
19 USA
21 #ifndef EDITSHORTCUTDIALOG_H
22 #define EDITSHORTCUTDIALOG_H
24 #include "ui_editShortcutDialog.h"
25 #include <libpwmd.h>
27 class EditShortcutDialog : public QDialog
29 Q_OBJECT
30 public:
31 EditShortcutDialog ();
32 ~EditShortcutDialog ();
34 signals:
35 void knownHostRc (gpg_error_t);
37 private slots:
38 void slotNewShortcut ();
39 void slotRemoveShortcut ();
40 void slotShortcutItemChanged (QListWidgetItem *, QListWidgetItem *);
41 void slotShortcutFilenameChanged (const QString &);
42 void slotShortcutNameChanged (const QString &);
43 void slotShortcutSubMenuChanged (const QString &);
44 void slotShortcutPathChanged (const QString &);
45 void slotShortcutSocketChanged (const QString &);
46 void slotChooseElement ();
47 void slotCancelled ();
48 void slotUp ();
49 void slotDown ();
50 void slotChooseSocket ();
51 void slotKnownHostCallback (void *data, const char *host, const char *key,
52 size_t len);
54 private:
55 Ui::EditShortcutDialog ui;
56 bool cancelled;
59 class EditShortcut
61 public:
62 EditShortcut () { };
63 EditShortcut (const QString & f, const QString & n, const QString & p,
64 const QString & s = 0, const QString &sub = 0)
66 _file = f;
67 _name = n;
68 _path = p;
69 _socket = s;
70 _subMenu = sub;
73 ~EditShortcut () { };
75 QString socket ()
77 return _socket;
80 QString filename ()
82 return _file;
85 QString name ()
87 return _name;
90 void setName (const QString & n)
92 _name = n;
95 QString path ()
97 return _path;
100 void setPath (const QString & p)
102 _path = p;
105 void setFilename (const QString & f)
107 _file = f;
110 void setSocket (const QString & s)
112 _socket = s;
115 void setSubMenu(const QString &s)
117 _subMenu = s;
120 QString subMenu()
122 return _subMenu;
125 private:
126 QString _socket;
127 QString _file;
128 QString _name;
129 QString _path;
130 QString _subMenu;
133 Q_DECLARE_METATYPE (EditShortcut);
135 #endif