knode
KNProtocolClient Class Reference
#include <knprotocolclient.h>

Detailed Description
Definition at line 33 of file knprotocolclient.h.
Member Enumeration Documentation
- Enumerator:
Definition at line 36 of file knprotocolclient.h.
Constructor & Destructor Documentation
| KNProtocolClient::KNProtocolClient | ( | int | NfdPipeIn, | |
| int | NfdPipeOut | |||
| ) |
Definition at line 37 of file knprotocolclient.cpp.
| KNProtocolClient::~KNProtocolClient | ( | ) |
Definition at line 49 of file knprotocolclient.cpp.
Member Function Documentation
| bool KNProtocolClient::checkNextResponse | ( | int | rep | ) | [protected] |
checks return code and calls handleErrors() if necessary
Definition at line 424 of file knprotocolclient.cpp.
| void KNProtocolClient::closeConnection | ( | ) | [protected, virtual] |
| int KNProtocolClient::getByteCount | ( | ) | const [inline] |
| char* KNProtocolClient::getCurrentLine | ( | ) | [inline, protected] |
| bool KNProtocolClient::getMsg | ( | Q3StrList & | msg | ) | [protected] |
| bool KNProtocolClient::getNextLine | ( | ) | [protected] |
| bool KNProtocolClient::getNextResponse | ( | int & | rep | ) | [protected] |
| int KNProtocolClient::getProgressValue | ( | ) | const [inline] |
Definition at line 51 of file knprotocolclient.h.
| void KNProtocolClient::handleErrors | ( | ) | [protected, virtual] |
interprets error code, generates error message and closes the connection
Reimplemented in KNNntpClient.
Definition at line 438 of file knprotocolclient.cpp.
| void KNProtocolClient::insertJob | ( | KNJobData * | newJob | ) |
Definition at line 69 of file knprotocolclient.cpp.
| bool KNProtocolClient::isConnected | ( | ) | [inline, protected] |
Definition at line 66 of file knprotocolclient.h.
| bool KNProtocolClient::isInByteCountMode | ( | ) | const [inline] |
Definition at line 54 of file knprotocolclient.h.
| bool KNProtocolClient::openConnection | ( | ) | [protected, virtual] |
connect, handshake and authorization
Reimplemented in KNNntpClient.
Definition at line 189 of file knprotocolclient.cpp.
| void KNProtocolClient::processJob | ( | ) | [protected, virtual] |
examines the job and calls the suitable handling method
Reimplemented in KNNntpClient.
Definition at line 184 of file knprotocolclient.cpp.
| void KNProtocolClient::removeJob | ( | ) |
Definition at line 75 of file knprotocolclient.cpp.
| void KNProtocolClient::run | ( | ) | [virtual] |
| bool KNProtocolClient::sendCommand | ( | const QByteArray & | cmd, | |
| int & | rep | |||
| ) | [protected, virtual] |
sends a command (one line), return code is written to rep
Reimplemented in KNNntpClient.
Definition at line 253 of file knprotocolclient.cpp.
| bool KNProtocolClient::sendCommandWCheck | ( | const QByteArray & | cmd, | |
| int | rep | |||
| ) | [protected] |
checks return code and calls handleErrors() if necessary
Definition at line 264 of file knprotocolclient.cpp.
| bool KNProtocolClient::sendMsg | ( | const QByteArray & | msg | ) | [protected] |
| void KNProtocolClient::sendSignal | ( | threadSignal | s | ) | [protected] |
Definition at line 449 of file knprotocolclient.cpp.
| void KNProtocolClient::terminateClient | ( | ) | [inline] |
Definition at line 56 of file knprotocolclient.h.
| void KNProtocolClient::updatePercentage | ( | int | percent | ) |
Definition at line 81 of file knprotocolclient.cpp.
| void KNProtocolClient::waitForWork | ( | ) | [protected] |
main loop, maintains connection and waits for next job
Definition at line 90 of file knprotocolclient.cpp.
Member Data Documentation
KNServerInfo KNProtocolClient::account [protected] |
Definition at line 94 of file knprotocolclient.h.
bool KNProtocolClient::byteCountMode [protected] |
Definition at line 98 of file knprotocolclient.h.
int KNProtocolClient::doneLines [protected] |
Definition at line 97 of file knprotocolclient.h.
QString KNProtocolClient::errorPrefix [protected] |
handleErrors() adds this string to the error message
Definition at line 96 of file knprotocolclient.h.
KNJobData* KNProtocolClient::job [protected] |
Definition at line 93 of file knprotocolclient.h.
int KNProtocolClient::predictedLines [protected] |
Definition at line 97 of file knprotocolclient.h.
int KNProtocolClient::progressValue [protected] |
Definition at line 97 of file knprotocolclient.h.
The documentation for this class was generated from the following files:
KDE 4.1 API Reference