akregator/src/librss
image.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef LIBRSS_IMAGE_H
00012 #define LIBRSS_IMAGE_H
00013
00014 #include "global.h"
00015
00016 #include <qobject.h>
00017
00018 class QDomNode;
00019
00020 namespace KIO
00021 {
00022 class Job;
00023 }
00024 class KURL;
00025
00026 namespace RSS
00027 {
00034 class KDE_EXPORT Image : public QObject
00035 {
00036 Q_OBJECT
00037 public:
00041 Image();
00042
00047 Image(const Image &other);
00048
00054 Image(const QDomNode &node);
00055
00061 Image &operator=(const Image &other);
00062
00070 bool operator==(const Image &other) const;
00071
00077 bool operator!=(const Image &other) const { return !operator==(other); }
00078
00082 virtual ~Image();
00083
00089 QString title() const;
00090
00100 const KURL &url() const;
00101
00110 const KURL &link() const;
00111
00119 QString description() const;
00120
00131 unsigned int height() const;
00132
00142 unsigned int width() const;
00143
00149 void getPixmap();
00150 void abort();
00151
00152 signals:
00160 void gotPixmap(const QPixmap &pixmap);
00161
00162 private slots:
00163 void slotData(KIO::Job *job, const QByteArray &data);
00164 void slotResult(KIO::Job *job);
00165
00166 private:
00167 struct Private;
00168 Private *d;
00169 };
00170 }
00171
00172 #endif // LIBRSS_IMAGE_H
00173
|