Konsole
SessionManager.cpp
Go to the documentation of this file.
158 void SessionManager::applyProfile(Session* session, const Profile::Ptr profile , bool modifiedPropertiesOnly)
(HistoryModeEnum) Specifies the storage type used for keeping the output produced by terminal session...
Definition: Profile.h:137
Represents a terminal session consisting of a pseudo-teletype and a terminal emulation.
Definition: Session.h:78
void restoreSession(KConfigGroup &group)
Definition: Session.cpp:1434
void setSessionProfile(Session *session, Profile::Ptr profile)
Sets the profile associated with a session.
Definition: SessionManager.cpp:145
Q_SCRIPTABLE void setEnvironment(const QStringList &environment)
Sets the environment for this session.
Definition: Session.cpp:889
void sessionUpdated(Session *session)
Emitted when a session's settings are updated to match its current profile.
SessionManager()
Constructs a new session manager and loads information about the available profiles.
Definition: SessionManager.cpp:44
Parses an input string consisting of property names and assigned values and returns a table of proper...
Definition: Profile.h:681
Manages profiles which specify various settings for terminal sessions and their displays.
Definition: ProfileManager.h:48
(bool) Specifies whether the flow control keys (typically Ctrl+S, Ctrl+Q) have any effect...
Definition: Profile.h:165
Definition: History.h:348
QObject * sender() const
void setPreferredSize(const QSize &size)
Definition: Session.cpp:1303
(QString) The format used for tab titles when the session is running a remote command (eg...
Definition: Profile.h:116
const QList< Session * > sessions() const
Returns a list of active sessions.
Definition: SessionManager.cpp:83
Definition: History.h:373
(int) Specifies the threshold of detected silence in seconds.
Definition: Profile.h:232
void setProgram(const QString &program)
Sets the program to be executed when run() is called.
Definition: Session.cpp:267
Represents a terminal set-up which can be used to set the initial state of new terminal sessions or a...
Definition: Profile.h:60
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
Profile::Ptr sessionProfile(Session *session) const
Returns the profile associated with a session.
Definition: SessionManager.cpp:141
(QString) The initial working directory for sessions created using this profile.
Definition: Profile.h:108
void saveSessions(KConfig *config)
Definition: SessionManager.cpp:273
void setHistoryType(const HistoryType &type)
Sets the type of history store used by this session.
Definition: Session.cpp:1067
(QString) The command to execute ( excluding arguments ) when creating a new terminal session using t...
Definition: Profile.h:93
Profile::Ptr defaultProfile() const
Returns a Profile object describing the default profile.
Definition: ProfileManager.cpp:308
int getRestoreId(Session *session)
Definition: SessionManager.cpp:295
void setTabTitleFormat(TabTitleContext context, const QString &format)
Sets the format used by this session for tab titles.
Definition: Session.cpp:588
const char * name() const
void setMapping(QObject *sender, int id)
QString number(int n, int base)
static ProfileManager * instance()
Returns the profile manager instance.
Definition: ProfileManager.cpp:114
Utility class to simplify code in SessionManager::applyProfile().
Definition: SessionManager.h:141
bool isEmpty() const
void setTitle(TitleRole role, const QString &title)
Sets the session's title for the specified role to title.
Definition: Session.cpp:909
(QStringList) The arguments which are passed to the program specified by the Command property when cr...
Definition: Profile.h:98
void setIconName(const QString &iconName)
Sets the name of the icon associated with this session.
Definition: Session.cpp:1044
void setInitialWorkingDirectory(const QString &dir)
Sets the initial working directory for the session when it is run This has no effect once the session...
Definition: Session.cpp:277
(QString) The name of the icon associated with this profile.
Definition: Profile.h:89
Tab title format used session currently contains a connection to a remote computer (via SSH) ...
Definition: Session.h:166
void deleteLater()
void setKeyBindings(const QString &name)
Sets the key bindings used by this session.
Definition: Session.cpp:904
QHash< Profile::Property, QVariant > parse(const QString &input)
Parses an input string consisting of property names and assigned values and returns a table of proper...
Definition: Profile.cpp:305
Definition: History.h:359
(int) Specifies the number of lines of output to remember in terminal sessions using this profile...
Definition: Profile.h:143
void sessionTerminated(QObject *session)
Called to inform the manager that a session has finished executing.
Definition: SessionManager.cpp:121
All output is remembered for the duration of the session.
Definition: Enumeration.h:51
QTextCodec * codecForName(const QByteArray &name)
void setArguments(const QStringList &arguments)
Sets the command line arguments which the session's program will be passed when run() is called...
Definition: Session.cpp:272
A fixed number of lines of output are remembered.
Definition: Enumeration.h:46
Q_SCRIPTABLE void setFlowControlEnabled(bool enabled)
Sets whether flow control is enabled for this terminal session.
Definition: Session.cpp:1153
Session * createSession(Profile::Ptr profile=Profile::Ptr())
Creates a new session using the settings specified by the specified profile.
Definition: SessionManager.cpp:88
Profile::Ptr loadProfile(const QString &path)
Loads a profile from the specified path and registers it with the ProfileManager. ...
Definition: ProfileManager.cpp:119
void addProfile(Profile::Ptr type)
Registers a new type of session.
Definition: ProfileManager.cpp:369
(QString) The format used for tab titles when running normal commands.
Definition: Profile.h:112
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
Q_SCRIPTABLE void setMonitorSilenceSeconds(int seconds)
See setMonitorSilence()
Definition: Session.cpp:1130
void restoreSessions(KConfig *config)
Definition: SessionManager.cpp:300
(QStringList) Additional environment variables (in the form of NAME=VALUE pairs) which are passed to ...
Definition: Profile.h:104
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.