akregator/src
progressmanager.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 #ifndef AKREGATOR_PROGRESSMANAGER_H
00026 #define AKREGATOR_PROGRESSMANAGER_H
00027
00028 namespace Akregator
00029 {
00030
00031 class Feed;
00032 class TreeNode;
00033 class ProgressItemHandler;
00036 class ProgressManager : public TQObject
00037 {
00038 Q_OBJECT
00039
00040 public:
00041
00042 static ProgressManager* self();
00043
00044 ProgressManager();
00045 virtual ~ProgressManager();
00046
00048 void setFeedList(FeedList* feedList);
00049
00050 protected slots:
00051
00052 void slotNodeAdded(TreeNode* node);
00053 void slotNodeRemoved(TreeNode* node);
00054 void slotNodeDestroyed(TreeNode* node);
00055
00056 private:
00057
00058 static ProgressManager* m_self;
00059
00060 class ProgressManagerPrivate;
00061 ProgressManagerPrivate* d;
00062 };
00063
00067 class ProgressItemHandler : public TQObject
00068 {
00069 Q_OBJECT
00070
00071 public:
00072 ProgressItemHandler(Feed* feed);
00073 virtual ~ProgressItemHandler();
00074
00075 public slots:
00076
00077 void slotFetchStarted();
00078 void slotFetchCompleted();
00079 void slotFetchAborted();
00080 void slotFetchError();
00081
00082 private:
00083 class ProgressItemHandlerPrivate;
00084 ProgressItemHandlerPrivate* d;
00085 };
00086
00087 }
00088
00089 #endif // AKREGATOR_PROGRESSMANAGER_H
|