blob: 9b8ce86f56ea43f17f4e37357e630e3eba523f98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#ifndef FEEDBROWSER_H
#define FEEDBROWSER_H
#include <tqobject.h>
#include <dcopobject.h>
#include <kdialogbase.h>
#include <klistview.h>
class DCOPRSSIface : public TQObject, public DCOPObject
{
K_DCOP
Q_OBJECT
public:
DCOPRSSIface( TQObject *parent, const char *name = 0 );
k_dcop:
void slotGotCategories( const TQStringList &categories );
public slots:
void getCategories( const TQString &cat = "Top" );
signals:
void gotCategories( const TQStringList &categories );
};
class CategoryItem : public TQObject, public KListViewItem
{
Q_OBJECT
public:
CategoryItem( KListView *parent, const TQString &category );
CategoryItem( KListViewItem *parent, const TQString &category );
virtual void setOpen( bool open );
private slots:
void gotCategories( const TQStringList &categories );
private:
void populate();
void init();
TQString m_category;
bool m_populated;
DCOPRSSIface *m_dcopIface;
};
class FeedBrowserDlg : public KDialogBase
{
Q_OBJECT
friend class CategoryItem;
public:
FeedBrowserDlg( TQWidget *parent, const char *name = 0 );
private slots:
void itemSelected( TQListViewItem *item );
void gotTopCategories( const TQStringList &categories );
private:
void getTopCategories();
DCOPRSSIface *m_dcopIface;
KListView *m_feedList;
};
#endif // FEEDBROWSER_H
// vim:ts=4:sw=4:noet
|