|
Q3270
A Qt-based 3270 Terminal Emulator
|
Public Member Functions | |
| SessionStore () | |
| SessionStore constructor. | |
| void | load () |
| load Loads sessions from persistent storage into the store. | |
| QList< Session > | listSessions () const |
| listSessions Lists all sessions in the store. | |
| Session | getSession (const QString &name) const |
| getSession Retrieves a session by name. | |
| QStringList | listSessionNames () const |
| listSessionNames Lists all session names in the store. | |
| bool | saveSession (const Session &session) |
| saveSession Saves a session to persistent storage. | |
| void | deleteSession (const QString &name) |
| deleteSession Deletes a session from persistent storage. | |
| QStringList | listAutoStartSessions () const |
| listAutoStartSessions Lists all auto-start session names. | |
| bool | saveAutoStartSessions (const QStringList &names) |
| saveAutoStartSessions Saves the list of auto-start session names. | |
| SessionStore::SessionStore | ( | ) |
SessionStore constructor.
Initializes the SessionStore with the application settings.
| void SessionStore::deleteSession | ( | const QString & | name | ) |
deleteSession Deletes a session from persistent storage.
| name | The name of the session to delete. |
This function removes the session with the given name from QSettings and the in-memory session map.
| Session SessionStore::getSession | ( | const QString & | name | ) | const |
| QStringList SessionStore::listAutoStartSessions | ( | ) | const |
listAutoStartSessions Lists all auto-start session names.
This function retrieves the list of sessions configured to auto-start from persistent storage.
| QStringList SessionStore::listSessionNames | ( | ) | const |
listSessionNames Lists all session names in the store.
This function retrieves the names of all sessions stored in persistent storage.
| QList< Session > SessionStore::listSessions | ( | ) | const |
listSessions Lists all sessions in the store.
This function returns a list of all sessions currently stored in memory.
| void SessionStore::load | ( | ) |
load Loads sessions from persistent storage into the store.
This function reads session data from QSettings and populates the in-memory session map.
| bool SessionStore::saveAutoStartSessions | ( | const QStringList & | list | ) |
saveAutoStartSessions Saves the list of auto-start session names.
| list | The QStringList of session names to set as auto-start. |
This function writes the provided list of session names to persistent storage as the auto-start configuration.
| bool SessionStore::saveSession | ( | const Session & | session | ) |
saveSession Saves a session to persistent storage.
| session | The Session object to save. |
This function writes the session data to QSettings and updates the in-memory session map.