From f674e179d602d3ccb9818d28fe06f371059449dc Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Sun, 22 Jun 2025 16:54:02 +0200 Subject: parse and insert feeds and items --- src/atomchannelimage.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/atomchannelimage.h (limited to 'src/atomchannelimage.h') diff --git a/src/atomchannelimage.h b/src/atomchannelimage.h new file mode 100644 index 0000000..8c43034 --- /dev/null +++ b/src/atomchannelimage.h @@ -0,0 +1,32 @@ +#pragma once + +#include +#include +#include + +class QXmlStreamReader; + +struct AtomChannelImage +{ + // TODO: move to interface + static inline const QString tag{"image"}; + + // TODO: remove, use shared_ptr in AtomChannel + AtomChannelImage() = default; + explicit AtomChannelImage(QXmlStreamReader *xmlReader); + + /*! + * \brief url - url of image file + */ + QUrl url; + QString title; + + /*! + * \brief link - link to website + */ + QUrl link; + size_t width{0}; + size_t height{0}; +}; + +QDebug operator<<(QDebug debug, const AtomChannelImage &image); -- cgit v1.2.3-70-g09d2