summaryrefslogtreecommitdiffstats
path: root/kget/kget_plug_in/kget_linkview.h
diff options
context:
space:
mode:
Diffstat (limited to 'kget/kget_plug_in/kget_linkview.h')
-rw-r--r--kget/kget_plug_in/kget_linkview.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/kget/kget_plug_in/kget_linkview.h b/kget/kget_plug_in/kget_linkview.h
new file mode 100644
index 00000000..a6d7961c
--- /dev/null
+++ b/kget/kget_plug_in/kget_linkview.h
@@ -0,0 +1,54 @@
+/****************************************************************************
+** $Id$
+**
+** Copyright (C) 2002 Carsten Pfeiffer <[email protected]>
+**
+****************************************************************************/
+
+#ifndef KGET_LINKVIEW_H
+#define KGET_LINKVIEW_H
+
+#include <qptrlist.h>
+
+#include <klistview.h>
+#include <kmainwindow.h>
+#include <kurl.h>
+
+#include "links.h"
+
+class LinkViewItem : public QListViewItem
+{
+public:
+ LinkViewItem( QListView *parent, const LinkItem * lnk );
+ const LinkItem *link;
+};
+
+
+class KGetLinkView : public KMainWindow
+{
+ Q_OBJECT
+
+public:
+ KGetLinkView( QWidget *parent = 0L, const char *name = 0L );
+ ~KGetLinkView();
+
+ void setLinks( QPtrList<LinkItem>& links );
+ void setPageURL( const QString& url );
+
+signals:
+ void leechURLs( const KURL::List& urls );
+
+private slots:
+ void slotStartLeech();
+ void slotSelectAll();
+
+private:
+ void showLinks( const QPtrList<LinkItem>& links );
+
+ QPtrList<LinkItem> m_links;
+
+ KListView *m_view;
+
+};
+
+#endif // KGET_LINKVIEW_H