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

KMIME Library

kmime_newsarticle.h
00001 /*
00002     kmime_newsarticle.h
00003 
00004     KMime, the KDE Internet mail/usenet news message library.
00005     Copyright (c) 2001 the KMime authors.
00006     See file AUTHORS for details
00007 
00008     This library is free software; you can redistribute it and/or
00009     modify it under the terms of the GNU Library General Public
00010     License as published by the Free Software Foundation; either
00011     version 2 of the License, or (at your option) any later version.
00012 
00013     This library is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016     Library General Public License for more details.
00017 
00018     You should have received a copy of the GNU Library General Public License
00019     along with this library; see the file COPYING.LIB.  If not, write to
00020     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00021     Boston, MA 02110-1301, USA.
00022 */
00023 #ifndef __KMIME_NEWSARTICLE_H__
00024 #define __KMIME_NEWSARTICLE_H__
00025 
00026 #include "kmime_export.h"
00027 #include "kmime_message.h"
00028 #include <kpimutils/supertrait.h>
00029 
00030 namespace KMime {
00031 
00032 class NewsArticlePrivate;
00033 
00034 class KMIME_EXPORT NewsArticle : public Message
00035 {
00036   public:
00040     typedef boost::shared_ptr<NewsArticle> Ptr;
00041 
00045     NewsArticle();
00046 
00050     ~NewsArticle();
00051 
00052     /* reimpl */
00053     virtual void parse();
00054 
00055     /* reimpl */
00056     virtual void clear();
00057 
00058     /* reimpl */
00059     virtual KDE_DEPRECATED KMime::Headers::Base * getHeaderByType( const char *type );
00060 
00061     /* reimpl */
00062     virtual KMime::Headers::Base * headerByType( const char *type );
00063 
00064     /* reimpl */
00065     virtual void setHeader( KMime::Headers::Base *h );
00066 
00067     /* reimpl */
00068     virtual bool removeHeader( const char *type );
00069 
00074     virtual KMime::Headers::Control *control( bool create = true );
00075 
00080     virtual KMime::Headers::Supersedes *supersedes( bool create = true );
00081 
00086     virtual KMime::Headers::MailCopiesTo *mailCopiesTo( bool create = true );
00087 
00092     virtual KMime::Headers::Newsgroups *newsgroups( bool create = true );
00093 
00098     virtual KMime::Headers::FollowUpTo *followUpTo( bool create = true );
00099 
00104     virtual KMime::Headers::Lines *lines( bool create = true );
00105 
00106   protected:
00107     /* reimpl */
00108     virtual QByteArray assembleHeaders();
00109 
00110   private:
00111     Q_DECLARE_PRIVATE( NewsArticle )
00112 
00113 }; // class NewsArticle
00114 
00115 } // namespace KMime
00116 
00117 
00118 //@cond PRIVATE
00119 // super class trait specialization
00120 namespace KPIMUtils {
00121   template <> struct SuperClass<KMime::NewsArticle> : public SuperClassTrait<KMime::Message>{};
00122 }
00123 //@endcond
00124 
00125 #endif // __KMIME_NEWSARTICLE_H__
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 7 2012 23:55:59 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KMIME Library

Skip menu "KMIME Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • 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