akregator/src
feediconmanager.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef FEEDICONMGR_H
00027 #define FEEDICONMGR_H
00028
00029 #include <dcopobject.h>
00030
00031 #include <qobject.h>
00032
00033 class QPixmap;
00034 class QString;
00035
00036 class DCOPClient;
00037 class KURL;
00038
00039
00040 namespace Akregator
00041 {
00042 class Feed;
00043 class TreeNode;
00044
00045 class FeedIconManager:public QObject, public DCOPObject
00046 {
00047 Q_OBJECT
00048 K_DCOP
00049
00050 public:
00051
00052 FeedIconManager(QObject * = 0L, const char * = 0L);
00053 ~FeedIconManager();
00054
00055 static FeedIconManager *self();
00056
00057 void fetchIcon(Feed* feed);
00058
00059 QString iconLocation(const KURL &) const;
00060
00061 k_dcop:
00062 void slotIconChanged(bool, const QString&, const QString&);
00063
00064 signals:
00065 void signalIconChanged(const QString &, const QPixmap &);
00066
00067 public slots:
00068 void slotFeedDestroyed(TreeNode* node);
00069
00070 protected:
00071
00074 QString getIconURL(const KURL& url);
00075
00076 void loadIcon(const QString &);
00077
00078 private:
00079 static FeedIconManager *m_instance;
00080
00081 class FeedIconManagerPrivate;
00082 FeedIconManagerPrivate* d;
00083 };
00084 }
00085
00086 #endif
|