• 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
  • core
linkimporter.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2 
3  Copyright (C) 2008 Javier Goday <jgoday @ gmail.com>
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 #ifndef LINKIMPORTER_H
11 #define LINKIMPORTER_H
12 
13 #include "kget_export.h"
14 
15 #include <QList>
16 #include <QThread>
17 
18 #include <KUrl>
19 
20 class KLocalizedString;
21 
25 class KGET_EXPORT LinkImporter : public QThread
26 {
27 Q_OBJECT
28 public:
29  LinkImporter(const KUrl &source, QObject *parent);
30  LinkImporter(QObject *parent);
31  ~LinkImporter();
32 
36  void checkClipboard(const QString &clipboardContent);
37 
41  void run();
42 
46  void copyRemoteFile();
47 
51  QList <QString> links()
52  {
53  return m_transfers;
54  };
55 
56 signals:
57  void error(const KLocalizedString &);
58  void progress(int progress);
59 
60 private slots:
61  void slotReadFile(const QUrl &url);
62 
63 private:
67  void addTransfer(QString &link);
68 
69 private:
70  KUrl m_url;
71  QList <QString> m_transfers;
72  QString m_tempFile;
73 };
74 #endif
LinkImporter::links
QList< QString > links()
Returns a list with the links of the selected url m_url.
Definition: linkimporter.h:51
QObject
kget_export.h
LinkImporter
Import a list of urls from a file (local or remote)
Definition: linkimporter.h:25
KGET_EXPORT
#define KGET_EXPORT
Definition: kget_export.h:24
QThread
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