akregator
akregatorstorageexporter.cpp
Go to the documentation of this file.
75 Element( const QString& ns_, const QString& name_ ) : ns( ns_ ), name( name_ ), qualifiedName( ns + QLatin1Char(':') + name )
177 void writeAttributeIfNotEmpty( const QString& ns, const QString& element, const QVariant& value, QXmlStreamWriter& writer )
185 void writeAttributeIfNotEmpty( const QString& element, const QVariant& value, QXmlStreamWriter& writer )
193 void writeEnclosure( const QString& url, const QString& type, int length, QXmlStreamWriter& writer )
214 void writeAuthor( const QString& name, const QString& uri, const QString& email, QXmlStreamWriter& writer )
298 Elements::instance.title.write( QString::fromLatin1("Akregator Export for %1").arg( url ), writer, Html );
313 QString::fromLatin1( "[X-KDE-akregator-framework-version] == %1 and [X-KDE-akregator-plugintype] == 'storage' and [X-KDE-akregator-rank] > 0" ).arg( QString::number( AKREGATOR_PLUGIN_INTERFACE_VERSION ) ) );
351 const QString url = KUrl::fromEncoded( base64 ? QByteArray::fromBase64( argv[pos] ) : QByteArray( argv[pos] ) ).toString();
357 const StorageFactory* const storageFactory = StorageFactoryRegistry::self()->getFactory( backend );
QString toString(Qt::DateFormat format) const
virtual uint hash(const QString &guid) const =0
virtual QStringList articles(const QString &tagID=QString()) const =0
returns the guids of all articles in this storage.
void writeNamespace(const QString &namespaceUri, const QString &prefix)
virtual int status(const QString &guid) const =0
virtual QString authorName(const QString &guid) const =0
QString errorString() const
virtual bool guidIsHash(const QString &guid) const =0
Storage is the main interface to the article archive.
Definition: storage.h:43
void setAutoFormattingIndent(int spacesOrTabs)
static StorageFactoryRegistry * self()
Definition: storagefactoryregistry.cpp:43
Definition: plugin.h:41
article was fetched in the last fetch of it's feed and not read yet.
Definition: types.h:33
virtual QString content(const QString &guid) const =0
QDateTime fromTime_t(uint seconds)
QString number(int n, int base)
virtual QString title(const QString &guid) const =0
virtual int comments(const QString &guid) const =0
bool isEmpty() const
Definition: feedstorage.h:66
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
StorageFactory * getFactory(const QString &typestr)
Definition: storagefactoryregistry.cpp:64
virtual uint pubDate(const QString &guid) const =0
virtual bool guidIsPermaLink(const QString &guid) const =0
virtual void enclosure(const QString &guid, bool &hasEnclosure, QString &url, QString &type, int &length) const =0
virtual Storage * createStorage(const QStringList ¶ms) const =0
creates a storage object with given parameters
void writeAttribute(const QString &qualifiedName, const QString &value)
virtual QString authorUri(const QString &guid) const =0
QByteArray fromBase64(const QByteArray &base64)
void setAutoFormatting(bool enable)
virtual QString authorEMail(const QString &guid) const =0
virtual FeedStorage * archiveFor(const QString &url)=0
void writeEndDocument()
virtual QString commentsLink(const QString &guid) const =0
QString fromLatin1(const char *str, int size)
virtual QString link(const QString &guid) const =0
void writeStartDocument()
void writeCharacters(const QString &text)
void writeDefaultNamespace(const QString &namespaceUri)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
QString toString() const
virtual QString description(const QString &guid) const =0
void writeEndElement()
void writeStartElement(const QString &qualifiedName)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.