KMime::NewsArticle
#include <newsarticle.h>
Public Types | |
typedef QSharedPointer< NewsArticle > | Ptr |
Public Types inherited from KMime::Message | |
typedef QSharedPointer< Message > | Ptr |
Public Types inherited from KMime::Content | |
enum | DecodedTextTrimOption { NoTrim , TrimNewlines , TrimSpaces } |
typedef QList< KMime::Content * > | List |
Protected Member Functions | |
QByteArray | assembleHeaders () override |
Protected Member Functions inherited from KMime::Message | |
Protected Member Functions inherited from KMime::Content |
Additional Inherited Members | |
Static Public Member Functions inherited from KMime::Message | |
static QString | mimeType () |
Detailed Description
NNTP news article.
Definition at line 21 of file newsarticle.h.
Member Typedef Documentation
◆ Ptr
A shared pointer to a news article.
Definition at line 27 of file newsarticle.h.
Constructor & Destructor Documentation
◆ NewsArticle()
|
default |
Creates a NewsArticle object.
◆ ~NewsArticle()
|
overridedefault |
Destroys this NewsArticle.
Member Function Documentation
◆ assembleHeaders()
|
overrideprotectedvirtual |
Reimplement this method if you need to assemble additional headers in a derived class.
Don't forget to call the implementation of the base class.
- Returns
- The raw, assembled headers.
Reimplemented from KMime::Message.
Definition at line 22 of file newsarticle.cpp.
◆ control() [1/2]
|
nodiscard |
Returns the Control header.
Can be nullptr
if the header doesn't exist.
- Since
- 24.08
◆ control() [2/2]
KMime::Headers::Control * KMime::NewsArticle::control | ( | bool | create = true | ) |
Returns the Control header.
- Parameters
-
create If true, create the header if it doesn't exist yet.
◆ followUpTo() [1/2]
|
nodiscard |
Returns the Follow-Up-To header.
Can be nullptr
if the header doesn't exist.
- Since
- 24.08
◆ followUpTo() [2/2]
KMime::Headers::FollowUpTo * KMime::NewsArticle::followUpTo | ( | bool | create = true | ) |
Returns the Follow-Up-To header.
- Parameters
-
create If true, create the header if it doesn't exist yet.
◆ lines() [1/2]
|
nodiscard |
Returns the Lines header.
Can be nullptr
if the header doesn't exist.
- Since
- 24.08
◆ lines() [2/2]
KMime::Headers::Lines * KMime::NewsArticle::lines | ( | bool | create = true | ) |
Returns the Lines header.
- Parameters
-
create If true, create the header if it doesn't exist yet.
◆ mailCopiesTo() [1/2]
|
nodiscard |
Returns the Mail-Copies-To header.
Can be nullptr
if the header doesn't exist.
- Since
- 24.08
◆ mailCopiesTo() [2/2]
KMime::Headers::MailCopiesTo * KMime::NewsArticle::mailCopiesTo | ( | bool | create = true | ) |
Returns the Mail-Copies-To header.
- Parameters
-
create If true, create the header if it doesn't exist yet.
◆ newsgroups() [1/2]
|
nodiscard |
Returns the Newsgroups header.
Can be nullptr
if the header doesn't exist.
- Since
- 24.08
◆ newsgroups() [2/2]
KMime::Headers::Newsgroups * KMime::NewsArticle::newsgroups | ( | bool | create = true | ) |
Returns the Newsgroups header.
- Parameters
-
create If true, create the header if it doesn't exist yet.
◆ supersedes() [1/2]
|
nodiscard |
Returns the Supersedes header.
Can be nullptr
if the header doesn't exist.
- Since
- 24.08
◆ supersedes() [2/2]
KMime::Headers::Supersedes * KMime::NewsArticle::supersedes | ( | bool | create = true | ) |
Returns the Supersedes header.
- Parameters
-
create If true, create the header if it doesn't exist yet.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:30:05 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.