kioslave/nntp
15#include <kio/tcpslavebase.h>
17#define MAX_PACKET_LEN 8192
40 NNTPProtocol (
const QByteArray & pool,
const QByteArray & app,
bool isSSL );
43 virtual void get(
const KUrl& url );
44 virtual void put(
const KUrl& url,
int permissions, KIO::JobFlags flags );
45 virtual void stat(
const KUrl& url );
46 virtual void listDir(
const KUrl& url );
47 virtual void setHost(
const QString& host, quint16 port,
48 const QString& user,
const QString& pass);
58 virtual void special(
const QByteArray& data);
88 QString mHost, mUser, mPass;
89 quint16 m_port, m_defaultPort;
90 bool postingAllowed, isAuthenticated;
91 char readBuffer[MAX_PACKET_LEN];
92 ssize_t readBufferLen;
94 QString mCurrentGroup;
102 void fetchGroups(
const QString &since,
bool desc );
112 bool fetchGroup ( QString &group,
unsigned long first = 0,
unsigned long max = 0 );
119 bool fetchGroupRFC977(
unsigned long first );
130 bool fetchGroupXOVER(
unsigned long first,
bool ¬Supported );
132 void fillUDSEntry ( KIO::UDSEntry & entry,
const QString & name,
long size,
133 bool is_article,
long access = 0 );
135 void unexpected_response (
int res_code,
const QString & command );
141 int evalResponse (
char *data, ssize_t &len );
virtual void special(const QByteArray &data)
Special command: 1 = post article it takes no other args, the article data are requested by dataReq()...
bool nntp_open()
Attempt to initiate a NNTP connection via a TCP socket, if no existing connection could be reused.
void nntp_close()
Attempt to properly shut down the NNTP connection by sending "QUIT\r\n" before closing the socket.
int sendCommand(const QString &cmd)
Send a command to the server.
NNTPProtocol(const QByteArray &pool, const QByteArray &app, bool isSSL)
Default Constructor.
bool post_article()
Post article.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.