KMime

kmime_newsarticle.cpp
1 /*
2  kmime_newsarticle.cpp
3 
4  KMime, the KDE Internet mail/usenet news message library.
5  SPDX-FileCopyrightText: 2001 the KMime authors.
6  See file AUTHORS for details
7 
8  SPDX-License-Identifier: LGPL-2.0-or-later
9 */
10 
11 #include "kmime_newsarticle.h"
12 #include "kmime_util_p.h"
13 
14 using namespace KMime;
15 
16 namespace KMime
17 {
18 
20 {
21 }
22 
24 {
25 }
26 
28 {
29  // Create the mandatory Lines: field.
30  lines(true);
31 
32  // Assemble all header fields.
33  return Message::assembleHeaders();
34 }
35 
36 // @cond PRIVATE
37 #define kmime_mk_header_accessor( type, method ) \
38  Headers::type* NewsArticle::method( bool create ) { \
39  return header<Headers::type>( create ); \
40  }
41 
42 kmime_mk_header_accessor(Control, control)
43 kmime_mk_header_accessor(Lines, lines)
44 kmime_mk_header_accessor(Supersedes, supersedes)
45 kmime_mk_header_accessor(MailCopiesTo, mailCopiesTo)
46 kmime_mk_header_accessor(Newsgroups, newsgroups)
47 kmime_mk_header_accessor(FollowUpTo, followUpTo)
48 
49 #undef kmime_mk_header_accessor
50 // @endcond
51 
52 } // namespace KMime
QByteArray assembleHeaders() override
Reimplement this method if you need to assemble additional headers in a derived class.
NewsArticle()
Creates a NewsArticle object.
KMime::Headers::Supersedes * supersedes(bool create=true)
Returns the Supersedes header.
KMime::Headers::Control * control(bool create=true)
Returns the Control header.
KMime::Headers::FollowUpTo * followUpTo(bool create=true)
Returns the Follow-Up-To header.
~NewsArticle() override
Destroys this NewsArticle.
KMime::Headers::MailCopiesTo * mailCopiesTo(bool create=true)
Returns the Mail-Copies-To header.
Represents a (email) message.
Definition: kmime_message.h:66
QByteArray assembleHeaders() override
Reimplement this method if you need to assemble additional headers in a derived class.
KMime::Headers::Newsgroups * newsgroups(bool create=true)
Returns the Newsgroups header.
KMime::Headers::Lines * lines(bool create=true)
Returns the Lines header.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Sep 27 2021 23:15:57 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.