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

KMIME Library

  • kmime
kmime_newsarticle.h
1/*
2 kmime_newsarticle.h
3
4 KMime, the KDE Internet mail/usenet news message library.
5 Copyright (c) 2001 the KMime authors.
6 See file AUTHORS for details
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either
11 version 2 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details.
17
18 You should have received a copy of the GNU Library General Public License
19 along with this library; see the file COPYING.LIB. If not, write to
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA.
22*/
23#ifndef __KMIME_NEWSARTICLE_H__
24#define __KMIME_NEWSARTICLE_H__
25
26#include "kmime_export.h"
27#include "kmime_message.h"
28#include <kpimutils/supertrait.h>
29
30namespace KMime {
31
32class NewsArticlePrivate;
33
34class KMIME_EXPORT NewsArticle : public Message
35{
36 public:
40 typedef boost::shared_ptr<NewsArticle> Ptr;
41
45 NewsArticle();
46
50 ~NewsArticle();
51
52 /* reimpl */
53 virtual void parse();
54
55 /* reimpl */
56 virtual void clear();
57
58 /* reimpl */
59 virtual KMIME_DEPRECATED KMime::Headers::Base * getHeaderByType( const char *type );
60
61 /* reimpl */
62 virtual KMime::Headers::Base * headerByType( const char *type );
63
64 /* reimpl */
65 virtual void setHeader( KMime::Headers::Base *h );
66
67 /* reimpl */
68 virtual bool removeHeader( const char *type );
69
74 virtual KMime::Headers::Control *control( bool create = true );
75
80 virtual KMime::Headers::Supersedes *supersedes( bool create = true );
81
86 virtual KMime::Headers::MailCopiesTo *mailCopiesTo( bool create = true );
87
92 virtual KMime::Headers::Newsgroups *newsgroups( bool create = true );
93
98 virtual KMime::Headers::FollowUpTo *followUpTo( bool create = true );
99
104 virtual KMime::Headers::Lines *lines( bool create = true );
105
106 protected:
107 /* reimpl */
108 virtual QByteArray assembleHeaders();
109
110 private:
111 Q_DECLARE_PRIVATE( NewsArticle )
112
113}; // class NewsArticle
114
115} // namespace KMime
116
117
118//@cond PRIVATE
119// super class trait specialization
120namespace KPIMUtils {
121 template <> struct SuperClass<KMime::NewsArticle> : public SuperClassTrait<KMime::Message>{};
122}
123//@endcond
124
125#endif // __KMIME_NEWSARTICLE_H__
KMime::Headers::Base
Baseclass of all header-classes.
Definition: kmime_headers.h:125
KMime::Headers::Control
Represents a "Control" header.
Definition: kmime_headers.h:1308
KMime::Headers::FollowUpTo
Represents a "Followup-To" header.
Definition: kmime_headers.h:1434
KMime::Headers::Lines
Represents a "Lines" header.
Definition: kmime_headers.h:1449
KMime::Headers::MailCopiesTo
Represents a "Mail-Copies-To" header.
Definition: kmime_headers.h:845
KMime::Headers::Newsgroups
Represents a "Newsgroups" header.
Definition: kmime_headers.h:1394
KMime::Headers::Supersedes
Represents a "Supersedes" header.
Definition: kmime_headers.h:999
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KMIME Library

Skip menu "KMIME Library"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • 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