Q3270
A Qt-based 3270 Terminal Emulator
Loading...
Searching...
No Matches
Session.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 SESSION_H
12#define SESSION_H
13
14#include <QString>
15#include <QFont>
16#include <QSettings>
17
18#include "Q3270.h"
19#include "ActiveSettings.h"
20
21struct Session {
22 QString name;
23 QString description;
24 QString hostName;
25 QString hostLU;
26 int hostPort;
27 QString colourTheme;
28 QString keyboardTheme;
29 QString terminalModel;
30 int terminalX;
31 int terminalY;
32 bool cursorBlink;
33 int cursorBlinkSpeed;
34 bool cursorInheritColour;
35 bool ruler;
36 Q3270::RulerStyle rulerStyle;
37 QFont font;
38 bool screenStretch;
39 QString codepage;
40 bool secureConnection;
41 bool verifyCertificate;
42 bool backspaceStop;
43 Q3270::FontTweak tweaks;
44
45 static Session fromActiveSettings(const ActiveSettings &settings);
46 void toActiveSettings(ActiveSettings &settings) const;
47};
48
49#endif // SESSION_H
Definition ActiveSettings.h:20
Definition Session.h:21