akregator/src/librss

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 <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 // vim: noet:ts=4
KDE Home | KDE Accessibility Home | Description of Access Keys