Q3270
A Qt-based 3270 Terminal Emulator
Loading...
Searching...
No Matches
ManageAutoStartDialog.h
1/*
2 * Q3270 Terminal Emulator
3 *
4 * Copyright (c) 2020–2025 Andy Styles
5 * SPDX-License-Identifier: BSD-3-Clause
6 *
7 * This file is part of Q3270.
8 * See the LICENSE file in the project root for full license information.
9 */
10
11#ifndef MANAGEAUTOSTARTDIALOG_H
12#define MANAGEAUTOSTARTDIALOG_H
13
14#include <QDialog>
15#include <QListWidget>
16
17#include "Stores/SessionStore.h"
18
19namespace Ui {
21}
22
23class ManageAutoStartDialog : public QDialog
24{
25 Q_OBJECT
26
27public:
28 explicit ManageAutoStartDialog(SessionStore &store, QWidget *parent = nullptr);
30
31private slots:
32 void handleAddButtonClicked();
33 void handleRemoveButtonClicked();
34
35 void onAvailableRowClicked(QListWidgetItem *item);
36 void onAutoStartRowClicked(QListWidgetItem *item);
37
38 void onAccept();
39
40private:
41 void refreshLists();
42 void populateList(QListWidget *listWidget, const QList<Session> &sessions);
43
44 Ui::ManageAutoStartDialog *ui;
45 SessionStore &store;
46
47 QList<Session> allSessions;
48 QStringList autoStartSessions;
49};
50
51#endif // MANAGEAUTOSTARTDIALOG_H
Definition ManageAutoStartDialog.h:24
~ManageAutoStartDialog()
ManageAutoStartDialog destructor.
Definition ManageAutoStartDialog.cpp:48
Definition SessionStore.h:19