#include </home/clem/local/src/opie/core/apps/embeddedkonsole/MyPty.h>
Inheritance diagram for MyPty:


Public Slots | |
| void | send_bytes (const char *s, int len) |
| void | setSize (int lines, int columns) |
| void | error () |
| void | start () |
| int | run (const char *pgm, QStrList &args, const char *term, int addutmp) |
| bool | open () |
| void | close () |
| void | reload (const Profile &) |
| void | setSize (int lines, int columns) |
| void | error () |
| bool | isConnected () |
| void | send (const QByteArray &) |
Signals | |
| void | done (int status) |
| void | block_in (const char *s, int len) |
| void | done (int status) |
| void | received (const QByteArray &) |
Public Member Functions | |
| MyPty () | |
| ~MyPty () | |
| int | run (const char *pgm, QStrList &args, const char *term, int addutmp) |
| void | send_byte (char s) |
| const char * | deviceName () |
| MyPty (const Profile &) | |
| ~MyPty () | |
| QString | identifier () const |
| QString | name () const |
| QBitArray | supports () const |
Protected Slots | |
| void | readPty () |
| void | donePty () |
| void | readPty () |
| void | donePty () |
Private Member Functions | |
| int | openPty () |
| const char * | deviceName () |
| int | openPty () |
Private Attributes | |
| char | ptynam [16] |
| char | ttynam [16] |
| int | fd |
| int | cpid |
| char | m_ptynam [16] |
| char | m_ttynam [16] |
| int | m_fd |
| int | m_cpid |
| QSocketNotifier * | m_sn_e |
| QSocketNotifier * | m_sn_r |
| char * | m_term |
| QString | m_cmd |
| EnvironmentMap | m_env |
|
|
Create an instance. |
|
|
Destructor. Note that the related client program is not killed (yet) when a instance is deleted. Definition at line 245 of file MyPty.cpp. References donePty(). |
|
|
Create an instance. Definition at line 239 of file MyPty.cpp. References l, Profile::Linux, m_fd, m_sn_e, m_sn_r, m_term, openPty(), Profile::readNumEntry(), reload(), ProcCtl::self(), Profile::VT100, Profile::VT102, and Profile::XTerm. |
|
|
|
|
||||||||||||
|
emitted when a new block of data comes in.
Referenced by readPty(). |
|
|
close the io Implements IOLayer. Definition at line 286 of file MyPty.cpp. |
|
|
|
|
|
Definition at line 124 of file MyPty.cpp. References ttynam. |
|
|
emitted when the client program terminates.
|
|
|
emitted when the client program terminates.
Referenced by donePty(). |
|
|
|
|
|
Definition at line 108 of file MyPty.cpp. References close(), cpid, done(), and fd. Referenced by close(), error(), readPty(), run(), and ~MyPty(). |
|
|
|
|
|
Definition at line 130 of file MyPty.cpp. References donePty(). Referenced by run(). |
|
|
a small internal identifier Implements IOLayer. Definition at line 273 of file MyPty.cpp. References QString::fromLatin1(). Referenced by name(). |
|
|
Implements IOLayer. |
|
|
a short name Implements IOLayer. Definition at line 276 of file MyPty.cpp. References identifier(). Referenced by reload(). |
|
|
bool open Implements IOLayer. Definition at line 279 of file MyPty.cpp. |
|
|
|
|
|
Definition at line 198 of file MyPty.cpp. |
|
|
|
|
|
indicates that a block of data is received Definition at line 267 of file MyPty.cpp. References block_in(), buf, donePty(), fd, i, len, and printf. Referenced by run(). |
|
|
emitted when a new block of data comes in.
Reimplemented from IOLayer. |
|
|
closes and reloads the settings Implements IOLayer. Definition at line 290 of file MyPty.cpp. References QMap< Key, T >::clear(), QFile::encodeName(), QFile::exists(), i, QMap< Key, T >::insert(), QString::isEmpty(), m_cmd, m_env, name(), QString::number(), Profile::readEntry(), Profile::readNumEntry(), and QString::stripWhiteSpace(). Referenced by MyPty(). |
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
having a `run' separate from the constructor allows to make the necessary connections to the signals and slots of the instance before starting the execution of the client. Definition at line 140 of file MyPty.cpp. References close(), cpid, donePty(), error(), fd, QString::latin1(), open(), Opie::Core::perror(), readPty(), ttynam, and write(). Referenced by TESession::run(), and start(). |
|
|
sends len bytes through the line Implements IOLayer. |
|
|
|
|
||||||||||||
|
sends len bytes through the line |
|
||||||||||||
|
set the size needed for pty Reimplemented from IOLayer. |
|
||||||||||||
|
Informs the client program about the actual size of the window. Reimplemented from IOLayer. Definition at line 98 of file MyPty.cpp. References fd. Referenced by TESession::TESession(). |
|
|
having a `run' separate from the constructor allows to make the necessary connections to the signals and slots of the instance before starting the execution of the client. Definition at line 142 of file MyPty.cpp. References QString::latin1(), m_cmd, and run(). Referenced by open(). |
|
|
What does the IOLayer support? Bits are related to features Implements IOLayer. |
|
|
|
|
|
Definition at line 84 of file MyPty.h. Referenced by donePty(), MyPty(), readPty(), run(), send_bytes(), and setSize(). |
|
|
|
|
|
|
|
|
Definition at line 103 of file MyPty.h. Referenced by reload(). |
|
|
|
|
|
|
|
|
Definition at line 98 of file MyPty.h. Referenced by MyPty(). |
|
|
Definition at line 99 of file MyPty.h. Referenced by MyPty(). |
|
|
Definition at line 100 of file MyPty.h. Referenced by MyPty(). |
|
|
|
|
|
Definition at line 82 of file MyPty.h. Referenced by openPty(). |
|
|
Definition at line 83 of file MyPty.h. Referenced by deviceName(), openPty(), and run(). |
1.4.2