image.h
00001 /* 00002 * image.h 00003 * 00004 * Copyright (c) 2001, 2002, 2003 Frerich Raabe <raabe@kde.org> 00005 * 00006 * This program is distributed in the hope that it will be useful, but WITHOUT 00007 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00008 * FOR A PARTICULAR PURPOSE. For licensing and distribution details, check the 00009 * accompanying file 'COPYING'. 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 KIO 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 TQ_OBJECT 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(KIO::Job *job, const TQByteArray &data); 00165 void slotResult(KIO::Job *job); 00166 00167 private: 00168 struct Private; 00169 Private *d; 00170 }; 00171 } 00172 00173 #endif // LIBRSS_IMAGE_H 00174 // vim: noet:ts=4