00001
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 <tqobject.h>
00017
00018 class TQDomNode;
00019
00020 namespace TDEIO
00021 {
00022 class Job;
00023 }
00024 class KURL;
00025
00026 namespace RSS
00027 {
00034 class KDE_EXPORT Image : public TQObject
00035 {
00036 Q_OBJECT
00037
00038 public:
00042 Image();
00043
00048 Image(const Image &other);
00049
00055 Image(const TQDomNode &node);
00056
00062 Image &operator=(const Image &other);
00063
00071 bool operator==(const Image &other) const;
00072
00078 bool operator!=(const Image &other) const { return !operator==(other); }
00079
00083 virtual ~Image();
00084
00090 TQString title() const;
00091
00101 const KURL &url() const;
00102
00111 const KURL &link() const;
00112
00120 TQString description() const;
00121
00132 unsigned int height() const;
00133
00143 unsigned int width() const;
00144
00150 void getPixmap();
00151 void abort();
00152
00153 signals:
00161 void gotPixmap(const TQPixmap &pixmap);
00162
00163 private slots:
00164 void slotData(TDEIO::Job *job, const TQByteArray &data);
00165 void slotResult(TDEIO::Job *job);
00166
00167 private:
00168 struct Private;
00169 Private *d;
00170 };
00171 }
00172
00173 #endif // LIBRSS_IMAGE_H
00174