• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

kioslave/nntp

Public Member Functions | Protected Member Functions | List of all members
NNTPProtocol Class Reference

#include <nntp.h>

Inherits KIO::TCPSlaveBase.

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 33 of file nntp.h.

Constructor & Destructor Documentation

◆ NNTPProtocol()

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

Default Constructor.

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

Definition at line 62 of file nntp.cpp.

◆ ~NNTPProtocol()

NNTPProtocol::~NNTPProtocol ( )
virtual

Definition at line 73 of file nntp.cpp.

Member Function Documentation

◆ get()

void NNTPProtocol::get ( const KUrl & url)
virtual

Definition at line 96 of file nntp.cpp.

◆ listDir()

void NNTPProtocol::listDir ( const KUrl & url)
virtual

Definition at line 314 of file nntp.cpp.

◆ nntp_close()

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 722 of file nntp.cpp.

◆ nntp_open()

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 731 of file nntp.cpp.

◆ post_article()

bool NNTPProtocol::post_article ( )
protected

Post article.

Invoked by special() and put()

Definition at line 202 of file nntp.cpp.

◆ put()

void NNTPProtocol::put ( const KUrl & url,
int permissions,
KIO::JobFlags flags )
virtual

Definition at line 178 of file nntp.cpp.

◆ sendCommand()

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

Send a command to the server.

Returns the response code and the response line

Parameters
cmdthe command to send to server

Definition at line 793 of file nntp.cpp.

◆ setHost()

void NNTPProtocol::setHost ( const QString & host,
quint16 port,
const QString & user,
const QString & pass )
virtual

Definition at line 80 of file nntp.cpp.

◆ special()

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.

Parameters
datathe special command for article
Deprecated
use put() for posting

Definition at line 186 of file nntp.cpp.

◆ stat()

void NNTPProtocol::stat ( const KUrl & url)
virtual

Definition at line 268 of file nntp.cpp.


The documentation for this class was generated from the following files:
  • nntp.h
  • nntp.cpp
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.

kioslave/nntp

Skip menu "kioslave/nntp"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal