#include <kde_terminal_interface.h>
Public Member Functions | |
virtual void | startProgram (const TQString &program, const TQStrList &args)=0 |
virtual void | showShellInDir (const TQString &dir)=0 |
virtual void | sendInput (const TQString &text)=0 |
Detailed Description
TerminalInterface is an interface implemented by KonsolePart to allow developers access to the KonsolePart in ways that are not possible through the normal KPart interface.
Note that besides the functions below here, KonsolePart also has some signals you can connect to. They aren't in this class cause we can't have signals without having a TQObject, which TerminalInterface is not. These are the signals you can connect to: void processExited( TDEProcess *process ); void receivedData( const TQString& s ); See the example code below for how to connect to these..
The process provided by processExited() is obviously exited, and is only guaranteed to be valid until you return from the slot connected to it!
Use it like this:
- Since
- 3.2
Definition at line 91 of file kde_terminal_interface.h.
Member Function Documentation
◆ sendInput()
|
pure virtual |
This sends.
- Parameters
-
text as input to the currently running program..
◆ showShellInDir()
|
pure virtual |
If a shell is currently shown, this sends it a cd command.
Otherwise, this starts a shell, and sends it a cd command too...
◆ startProgram()
|
pure virtual |
This starts program
, with arguments args
.
The documentation for this class was generated from the following file: