• 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
  • dbus
dbuskgetwrapper.h
Go to the documentation of this file.
1 /**************************************************************************
2 * Copyright (C) 2006 - 2008 Urs Wolfer <uwolfer @ kde.org> *
3 * Copyright (C) 2006 Dario Massarin <nekkar@libero.it> *
4 * Copyright (C) 2008 - 2009 Lukas Appelhans <l.appelhans@gmx.de> *
5 * Copyright (C) 2009 Matthias Fuchs <mat69@gmx.net> *
6 * *
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
11 * *
12 * This program is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License *
18 * along with this program; if not, write to the *
19 * Free Software Foundation, Inc., *
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
21 ***************************************************************************/
22 
23 #ifndef DBUSKGETWRAPPER
24 #define DBUSKGETWRAPPER
25 
26 #include <QObject>
27 #include <QVariantMap>
28 
29 class MainWindow;
30 class TransferHandler;
31 
32 class DBusKGetWrapper : public QObject
33 {
34  Q_OBJECT
35 
36  public:
37  DBusKGetWrapper(MainWindow *parent);
38  ~DBusKGetWrapper();
39 
40  QStringList addTransfer(const QString& src, const QString& destDir = QString(), bool start = false);
41  bool delTransfer(const QString& dbusObjectPath);
42  void showNewTransferDialog(const QStringList &urls);
43  bool dropTargetVisible() const;
44  void setDropTargetVisible(bool setVisible);
45  void setOfflineMode(bool online);
46  bool offlineMode() const;
47  QVariantMap transfers() const;
48  int transfersSpeed() const;
49  void importLinks(const QList <QString> &links);
50  bool isSupported(const QString &url) const;
51 
52  signals:
53  void transferAddedRemoved();
54  void transfersAdded(const QStringList &urls, const QStringList &dBusObjectPaths);
55  void transfersRemoved(const QStringList &urls, const QStringList &dbusObjectPaths);
56 
57  private slots:
58  void slotTransfersAdded(const QList<TransferHandler*> &transfers);
59  void slotTransfersRemoved(const QList<TransferHandler*> &transfers);
60 
61  private:
62  MainWindow *m_mainWindow;
63  QHash<TransferHandler*, QPair<QString, QString> > m_transfers;
64 };
65 
66 #endif
DBusKGetWrapper::~DBusKGetWrapper
~DBusKGetWrapper()
Definition: dbuskgetwrapper.cpp:51
TransferHandler
Class TransferHandler:
Definition: transferhandler.h:48
DBusKGetWrapper::DBusKGetWrapper
DBusKGetWrapper(MainWindow *parent)
Definition: dbuskgetwrapper.cpp:37
QObject
DBusKGetWrapper::setOfflineMode
void setOfflineMode(bool online)
Definition: dbuskgetwrapper.cpp:100
DBusKGetWrapper::delTransfer
bool delTransfer(const QString &dbusObjectPath)
Definition: dbuskgetwrapper.cpp:70
DBusKGetWrapper::transfersRemoved
void transfersRemoved(const QStringList &urls, const QStringList &dbusObjectPaths)
DBusKGetWrapper::addTransfer
QStringList addTransfer(const QString &src, const QString &destDir=QString(), bool start=false)
Definition: dbuskgetwrapper.cpp:55
DBusKGetWrapper::dropTargetVisible
bool dropTargetVisible() const
Definition: dbuskgetwrapper.cpp:88
DBusKGetWrapper::importLinks
void importLinks(const QList< QString > &links)
Definition: dbuskgetwrapper.cpp:155
DBusKGetWrapper::transferAddedRemoved
void transferAddedRemoved()
DBusKGetWrapper::transfers
QVariantMap transfers() const
Definition: dbuskgetwrapper.cpp:110
DBusKGetWrapper::showNewTransferDialog
void showNewTransferDialog(const QStringList &urls)
Definition: dbuskgetwrapper.cpp:83
DBusKGetWrapper::transfersAdded
void transfersAdded(const QStringList &urls, const QStringList &dBusObjectPaths)
DBusKGetWrapper
Definition: dbuskgetwrapper.h:32
DBusKGetWrapper::setDropTargetVisible
void setDropTargetVisible(bool setVisible)
Definition: dbuskgetwrapper.cpp:93
DBusKGetWrapper::isSupported
bool isSupported(const QString &url) const
Definition: dbuskgetwrapper.cpp:162
DBusKGetWrapper::transfersSpeed
int transfersSpeed() const
Definition: dbuskgetwrapper.cpp:149
DBusKGetWrapper::offlineMode
bool offlineMode() const
Definition: dbuskgetwrapper.cpp:105
MainWindow
The main window of KGet.
Definition: mainwindow.h:41
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