|
Q3270
A Qt-based 3270 Terminal Emulator
|
Public Slots | |
| void | connectMainframe (const QString &address, quint16 port, const QString luName, ProcessDataStream *d) |
| SocketConnection::connectMainframe - called when the user connects to a host. | |
| void | disconnectMainframe () |
| SocketConnection::disconnectMainframe - slot called when the connection is terminated. | |
| void | opened () |
| SocketConnection::opened - successful open of socket. | |
| void | closed () |
| SocketConnection::closed - socket has been closed. | |
Signals | |
| void | connectionStarted () |
| void | connectionEnded (QString message="") |
| void | dataStreamComplete (QByteArray &b, bool tn3270e) |
| void | encryptedConnection (Q3270::Encryption e) |
Public Member Functions | |
| SocketConnection (int modelType) | |
| SocketConnection::SocketConnection - handle incoming TCPIP data. | |
| ~SocketConnection () | |
| SocketConnection::~SocketConnection - destructor. | |
| void | setSecure (bool s) |
| SocketConnection::setSecure - indicate that this connection should be secured. | |
| void | setVerify (bool v) |
| SocketConnection::setVerify - indicate that the certificates should be verified for a secure connection. | |
| void | sendResponse (QByteArray &b) |
| SocketConnection::sendResponse - send data back to the host. | |
| QList< QSslCertificate > | getCertDetails () |
| SocketConnection::getCertDetails() | |
|
explicit |
SocketConnection::SocketConnection - handle incoming TCPIP data.
| modelType | - the terminal model type |
When a TCPIP connection is started, this routine handles the negotiation with the host. The terminal type is used when negotiating the capability of the host.
Signals are connected for when the socket is successfully opened, closed and when there is data to be read.
| SocketConnection::~SocketConnection | ( | ) |
SocketConnection::~SocketConnection - destructor.
Disconnect the signals that were established and delete the socket.
|
slot |
SocketConnection::closed - socket has been closed.
Slot called when the socket has been closed.
|
slot |
SocketConnection::connectMainframe - called when the user connects to a host.
| address | - the target IP address |
| port | - the target port |
| luName | - the target LU name (may be empty) |
| d | - the ProcessDataStream object |
Called when the user connects to a host. The address, port are used to establish the connection and the LU name is stored for later in the negotiation sequence. The ProcessDataStream object is passed so that the ProcessDataStream can pass data back to the host.
|
slot |
SocketConnection::disconnectMainframe - slot called when the connection is terminated.
Called when the user closes the connection.
| QList< QSslCertificate > SocketConnection::getCertDetails | ( | ) |
SocketConnection::getCertDetails()
Called to fetch certificate details for Certificate Display dialog
|
slot |
SocketConnection::opened - successful open of socket.
Slot called when the socket is successfully opened.
| void SocketConnection::sendResponse | ( | QByteArray & | b | ) |
SocketConnection::sendResponse - send data back to the host.
| b | - the byte array containing the data |
Send data back to the host. This may be prefixed with a TN3270E header if TN3270E negotiation happened earlier.
| void SocketConnection::setSecure | ( | bool | s | ) |
SocketConnection::setSecure - indicate that this connection should be secured.
Signalled when the user selects the 'Secure Connection' option in the dialog
| void SocketConnection::setVerify | ( | bool | v | ) |
SocketConnection::setVerify - indicate that the certificates should be verified for a secure connection.
Signalled when the user selects the 'Verfiy Certficates' option in the dialog