• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kget

  • sources
  • kde-4.12
  • kdenetwork
  • kget
  • ui
  • linkview
kget_linkview.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2 
3  Copyright (C) 2002 Carsten Pfeiffer <pfeiffer@kde.org>
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 */
10 
11 #ifndef KGET_LINKVIEW_H
12 #define KGET_LINKVIEW_H
13 
14 #include "../../core/basedialog.h"
15 #include <KLocale>
16 
17 #include "ui_importlinkdialog.h"
18 
19 class QAction;
20 class QModelIndex;
21 class LinkImporter;
22 class KGetSortFilterProxyModel;
23 
24 
25 class KGetLinkView : public KGetSaveSizeDialog
26 {
27  Q_OBJECT
28 
29 public:
30  KGetLinkView(QWidget *parent = 0);
31  ~KGetLinkView();
32 
33  // void setLinks( QList<LinkItem*>& links );
34  void setLinks(const QStringList &links);
35  void setPageUrl( const QString& url );
36  void importUrl(const QString &url = QString());
37 
38 signals:
39  void leechUrls( const KUrl::List& urls );
40 
41 private slots:
42  void slotMimeTypeChanged(int index);
43  void slotFilterModeChanged(int index);
44  void slotFilterColumn(QAction*);
45  void slotStartLeech();
46  void selectionChanged();
47  void setTextFilter(const QString &text = QString());
48  void checkAll();
49  void uncheckAll();
50  void uncheckItem(const QModelIndex &index);
51  void slotCheckSelected();
52  void slotInvertSelection();
53  void updateSelectionButtons();
54  void contextMenuDisplayed(QMenu *menu);
55  void wildcardPatternToggled(bool enabled);
56 
57  // import links slots
58  void slotStartImport();
59  void slotImportProgress(int progress);
60  void slotImportFinished();
61  void updateImportButtonStatus(const QString &text);
62 
63 private:
64  void checkClipboard();
65  void showLinks(const QStringList &links, bool urlRequestVisible);
66 
67 private:
68  enum PatternSyntax {
69  Wildcard = 0,
70  RegExp
71  };
72  Ui::ImportLinkDialog ui;
73  KGetSortFilterProxyModel *m_proxyModel;
74  QStringList m_links;
75  LinkImporter *m_linkImporter;
76  QMenu *m_patternSyntaxMenu;
77  QAction *m_nameAction;
78  QAction *m_urlAction;
79 };
80 
81 #endif // KGET_LINKVIEW_H
KGetSortFilterProxyModel
Definition: kget_sortfilterproxymodel.h:25
QWidget
KGetLinkView::setPageUrl
void setPageUrl(const QString &url)
Definition: kget_linkview.cpp:268
KGetLinkView::KGetLinkView
KGetLinkView(QWidget *parent=0)
Definition: kget_linkview.cpp:36
KGetLinkView
Definition: kget_linkview.h:25
LinkImporter
Import a list of urls from a file (local or remote)
Definition: linkimporter.h:25
KGetLinkView::~KGetLinkView
~KGetLinkView()
Definition: kget_linkview.cpp:130
KGetLinkView::importUrl
void importUrl(const QString &url=QString())
Definition: kget_linkview.cpp:273
KGetSaveSizeDialog
Subclass to make sure that the size of the dialog is automatically stored and restored.
Definition: basedialog.h:32
KGetLinkView::setLinks
void setLinks(const QStringList &links)
Definition: kget_linkview.cpp:150
KGetLinkView::leechUrls
void leechUrls(const KUrl::List &urls)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal