You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
893 B
38 lines
893 B
|
|
#ifndef TERMINALCONFIG_H
|
|
#define TERMINALCONFIG_H
|
|
|
|
#include <QHash>
|
|
#include <QString>
|
|
#include <QVariant>
|
|
|
|
class TermWidget;
|
|
|
|
class TerminalConfig
|
|
{
|
|
public:
|
|
TerminalConfig(const QString & wdir, const QString & shell);
|
|
TerminalConfig(const TerminalConfig &cfg);
|
|
TerminalConfig();
|
|
|
|
QString getWorkingDirectory();
|
|
QString getShell();
|
|
|
|
void setWorkingDirectory(const QString &val);
|
|
void setShell(const QString &val);
|
|
void provideCurrentDirectory(const QString &val);
|
|
|
|
#ifdef HAVE_QDBUS
|
|
static TerminalConfig fromDbus(const QHash<QString,QVariant> &termArgs);
|
|
static TerminalConfig fromDbus(const QHash<QString,QVariant> &termArgs, TermWidget *toSplit);
|
|
#endif
|
|
|
|
|
|
private:
|
|
// True when
|
|
QString m_currentDirectory;
|
|
QString m_workingDirectory;
|
|
QString m_shell;
|
|
};
|
|
|
|
#endif |