NNTPProtocol Class Reference

NNTP KIO slave. More...

#include <nntp.h>

Inherits KIO::TCPSlaveBase.

List of all members.

Public Member Functions

 NNTPProtocol (const QByteArray &pool, const QByteArray &app, bool isSSL)
virtual void get (const KUrl &url)
virtual void listDir (const KUrl &url)
virtual void put (const KUrl &url, int permissions, KIO::JobFlags flags)
virtual void setHost (const QString &host, quint16 port, const QString &user, const QString &pass)
virtual void special (const QByteArray &data)
virtual void stat (const KUrl &url)

Protected Member Functions

void nntp_close ()
bool nntp_open ()
bool post_article ()
int sendCommand (const QString &cmd)

Detailed Description

NNTP KIO slave.

References
  • RFC 850: Standard for interchange of USENET messages
  • RFC 2980: Common NNTP Extensions (updated by RFC 3977)
  • RFC 3977: Network News Transfer Protocol
  • RFC 4643: Network News Transfer Protocol (NNTP) Extension for Authentication

Definition at line 34 of file nntp.h.


Constructor & Destructor Documentation

NNTPProtocol::NNTPProtocol ( const QByteArray &  pool,
const QByteArray &  app,
bool  isSSL 
)

Default Constructor.

Parameters:
isSSL is a true or false to indicate whether ssl is to be used

Definition at line 61 of file nntp.cpp.


Member Function Documentation

void NNTPProtocol::nntp_close (  )  [protected]

Attempt to properly shut down the NNTP connection by sending "QUIT\r\n" before closing the socket.

Definition at line 721 of file nntp.cpp.

bool NNTPProtocol::nntp_open (  )  [protected]

Attempt to initiate a NNTP connection via a TCP socket, if no existing connection could be reused.

Definition at line 730 of file nntp.cpp.

bool NNTPProtocol::post_article (  )  [protected]

Post article.

Invoked by special() and put()

Definition at line 201 of file nntp.cpp.

int NNTPProtocol::sendCommand ( const QString &  cmd  )  [protected]

Send a command to the server.

Returns the response code and the response line

Definition at line 792 of file nntp.cpp.

void NNTPProtocol::special ( const QByteArray &  data  )  [virtual]

Special command: 1 = post article it takes no other args, the article data are requested by dataReq() and should be valid as in RFC850.

It's not checked for correctness here.

Deprecated:
use put() for posting

Definition at line 185 of file nntp.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys