diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | bcb704366cb5e333a626c18c308c7e0448a8e69f (patch) | |
tree | f0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /dcoprss/feedbrowser.h | |
download | tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'dcoprss/feedbrowser.h')
-rw-r--r-- | dcoprss/feedbrowser.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/dcoprss/feedbrowser.h b/dcoprss/feedbrowser.h new file mode 100644 index 00000000..829ecd5e --- /dev/null +++ b/dcoprss/feedbrowser.h @@ -0,0 +1,66 @@ +#ifndef FEEDBROWSER_H +#define FEEDBROWSER_H + +#include <qobject.h> +#include <dcopobject.h> +#include <kdialogbase.h> +#include <klistview.h> + +class DCOPRSSIface : public QObject, public DCOPObject +{ + K_DCOP + Q_OBJECT + public: + DCOPRSSIface( QObject *parent, const char *name = 0 ); + + k_dcop: + void slotGotCategories( const QStringList &categories ); + + public slots: + void getCategories( const QString &cat = "Top" ); + + signals: + void gotCategories( const QStringList &categories ); +}; + +class CategoryItem : public QObject, public KListViewItem +{ + Q_OBJECT + public: + CategoryItem( KListView *parent, const QString &category ); + CategoryItem( KListViewItem *parent, const QString &category ); + + virtual void setOpen( bool open ); + + private slots: + void gotCategories( const QStringList &categories ); + + private: + void populate(); + void init(); + + QString m_category; + bool m_populated; + DCOPRSSIface *m_dcopIface; +}; + +class FeedBrowserDlg : public KDialogBase +{ + Q_OBJECT + friend class CategoryItem; + public: + FeedBrowserDlg( QWidget *parent, const char *name = 0 ); + + private slots: + void itemSelected( QListViewItem *item ); + void gotTopCategories( const QStringList &categories ); + + private: + void getTopCategories(); + + DCOPRSSIface *m_dcopIface; + KListView *m_feedList; +}; + +#endif // FEEDBROWSER_H +// vim:ts=4:sw=4:noet |