• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.10.5 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 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 34 of file nntp.h.

Constructor & Destructor Documentation

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 63 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 723 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 732 of file nntp.cpp.

bool NNTPProtocol::post_article ( )
protected

Post article.

Invoked by special() and put()

Definition at line 203 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 794 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 187 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-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:25:36 by doxygen 1.8.3.1 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.10.5 API Reference

Skip menu "kdepimlibs-4.10.5 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