23#ifndef SYNDICATION_ATOM_CONTENT_H
24#define SYNDICATION_ATOM_CONTENT_H
26#include <syndication/elementwrapper.h>
28#include <QtCore/QString>
30#include <boost/shared_ptr.hpp>
35namespace Syndication {
46class SYNDICATION_EXPORT
Content :
public ElementWrapper
72 static Format mapTypeToFormat(
const QString& type,
73 const QString& src=QString());
86 explicit Content(
const QDomElement& element);
114 QString type()
const;
139 QString asString()
const;
147 QByteArray asByteArray()
const;
152 Format format()
const;
159 bool isContained()
const;
172 bool isBinary()
const;
178 bool isPlainText()
const;
184 bool isEscapedHTML()
const;
192 QString debugInfo()
const;
195 class ContentPrivate;
196 boost::shared_ptr<ContentPrivate> d;
The content element either contains or links the content of an entry.
Content()
creates a null content object.
Format
format of the content.
@ XML
the content is embedded XML
@ EscapedHTML
the content is escaped HTML, (i.e., "<", ">" etc.
@ PlainText
the content is plain text (i.e.
@ Binary
the content is base64-encoded binary content
Atom parser and model classes, representing Atom 1.0 documents (Atom 0.3 documents are converted by t...
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.