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 
23 NewsArticle::~NewsArticle() = default;
24 
26 {
27  // Create the mandatory Lines: field.
28  lines(true);
29 
30  // Assemble all header fields.
31  return Message::assembleHeaders();
32 }
33 
34 // @cond PRIVATE
35 #define kmime_mk_header_accessor( type, method ) \
36  Headers::type* NewsArticle::method( bool create ) { \
37  return header<Headers::type>( create ); \
38  }
39 
40 kmime_mk_header_accessor(Control, control)
41 kmime_mk_header_accessor(Lines, lines)
42 kmime_mk_header_accessor(Supersedes, supersedes)
43 kmime_mk_header_accessor(MailCopiesTo, mailCopiesTo)
44 kmime_mk_header_accessor(Newsgroups, newsgroups)
45 kmime_mk_header_accessor(FollowUpTo, followUpTo)
46 
47 #undef kmime_mk_header_accessor
48 // @endcond
49 
50 } // namespace KMime
QByteArray assembleHeaders() override
Reimplement this method if you need to assemble additional headers in a derived class.
QByteArray assembleHeaders() override
Reimplement this method if you need to assemble additional headers in a derived class.
NewsArticle()
Creates a NewsArticle object.
KMime::Headers::Lines * lines(bool create=true)
Returns the Lines header.
~NewsArticle() override
Destroys this NewsArticle.
Represents a (email) message.
Definition: kmime_message.h:66
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Oct 6 2022 04:13:08 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.