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 "newsarticle.h"
12#include "util_p.h"
13
14using namespace KMime;
15
16namespace KMime
17{
18
19NewsArticle::NewsArticle() = default;
21
23{
24 // Create the mandatory Lines: field.
25 lines(true);
26
27 // Assemble all header fields.
29}
30
31// @cond PRIVATE
32#define kmime_mk_header_accessor( type, method ) \
33 Headers::type* NewsArticle::method( bool create ) { \
34 return header<Headers::type>( create ); \
35 } \
36 const Headers::type* NewsArticle::method() const { \
37 return header<Headers::type>(); \
38 }
39
40kmime_mk_header_accessor(Control, control)
41kmime_mk_header_accessor(Lines, lines)
42kmime_mk_header_accessor(Supersedes, supersedes)
43kmime_mk_header_accessor(MailCopiesTo, mailCopiesTo)
44kmime_mk_header_accessor(Newsgroups, newsgroups)
45kmime_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.
Definition message.cpp:22
QByteArray assembleHeaders() override
Reimplement this method if you need to assemble additional headers in a derived class.
const KMime::Headers::Lines * lines() const
Returns the Lines header.
NewsArticle()
Creates a NewsArticle object.
~NewsArticle() override
Destroys this NewsArticle.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Nov 6 2024 12:05:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.