Changeset View
Changeset View
Standalone View
Standalone View
src/kde_terminal_interface.h
Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Line(s) | 87 | public: | |||
---|---|---|---|---|---|
120 | virtual QString foregroundProcessName() = 0; | 120 | virtual QString foregroundProcessName() = 0; | ||
121 | 121 | | |||
122 | /** | 122 | /** | ||
123 | * Returns the current working directory | 123 | * Returns the current working directory | ||
124 | */ | 124 | */ | ||
125 | virtual QString currentWorkingDirectory() const = 0; | 125 | virtual QString currentWorkingDirectory() const = 0; | ||
126 | }; | 126 | }; | ||
127 | 127 | | |||
128 | class TerminalInterfaceV2 : public TerminalInterface { | ||||
129 | public: | ||||
130 | /** | ||||
131 | * Returns the names of available profiles. | ||||
132 | */ | ||||
133 | virtual QStringList availableProfiles() const = 0; | ||||
134 | | ||||
135 | /** | ||||
136 | * Returns the name of the currently active profile. | ||||
137 | */ | ||||
138 | virtual QString currentProfileName() const = 0; | ||||
139 | | ||||
140 | /** | ||||
141 | * Changes the currently active profile to @p profileName. | ||||
142 | * @returns Returns true if setting the profile was successful | ||||
143 | */ | ||||
144 | virtual bool setCurrentProfile(const QString &profileName) = 0; | ||||
145 | | ||||
146 | /** | ||||
147 | * Returns the property @p profileProperty of the currently active profile. | ||||
148 | */ | ||||
149 | virtual QVariant profileProperty(const QString &profileProperty) const = 0; | ||||
150 | }; | ||||
151 | | ||||
152 | Q_DECLARE_INTERFACE(TerminalInterfaceV2, "org.kde.TerminalInterfaceV2") | ||||
128 | Q_DECLARE_INTERFACE(TerminalInterface, "org.kde.TerminalInterface") | 153 | Q_DECLARE_INTERFACE(TerminalInterface, "org.kde.TerminalInterface") | ||
129 | 154 | | |||
130 | #endif | 155 | #endif |