akregator/src

progressmanager.h
1/*
2 This file is part of Akregator.
3
4 Copyright (C) 2005 Frank Osterfeld <frank.osterfeld at kdemail.net>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
20 As a special exception, permission is given to link this program
21 with any edition of TQt, and distribute the resulting executable,
22 without including the source code for TQt in the source distribution.
23*/
24
25#ifndef AKREGATOR_PROGRESSMANAGER_H
26#define AKREGATOR_PROGRESSMANAGER_H
27
28namespace Akregator
29{
30
31class Feed;
32class TreeNode;
33class ProgressItemHandler;
36class ProgressManager : public TQObject
37{
38 TQ_OBJECT
39
40 public:
41
42 static ProgressManager* self();
43
45 virtual ~ProgressManager();
46
48 void setFeedList(FeedList* feedList);
49
50 protected slots:
51
52 void slotNodeAdded(TreeNode* node);
53 void slotNodeRemoved(TreeNode* node);
54 void slotNodeDestroyed(TreeNode* node);
55
56 private:
57
58 static ProgressManager* m_self;
59
60 class ProgressManagerPrivate;
61 ProgressManagerPrivate* d;
62};
63
67class ProgressItemHandler : public TQObject
68{
69 TQ_OBJECT
70
71 public:
73 virtual ~ProgressItemHandler();
74
75 public slots:
76
77 void slotFetchStarted();
78 void slotFetchCompleted();
79 void slotFetchAborted();
80 void slotFetchError();
81
82 private:
83 class ProgressItemHandlerPrivate;
84 ProgressItemHandlerPrivate* d;
85};
86
87} // namespace Akregator
88
89#endif // AKREGATOR_PROGRESSMANAGER_H
The model of a feed tree, represents an OPML document.
Definition: feedlist.h:45
represents a feed
Definition: feed.h:63
this class handles the creation and deletion of progress items for one feed.
This class manages the progress items for all feeds.
void setFeedList(FeedList *feedList)
sets the feed list to be managed
Abstract base class for all kind of elements in the feed tree, like feeds and feed groups (and search...
Definition: treenode.h:52