kget
kgetrunner.cpp
Go to the documentation of this file.
32 addSyntax(Plasma::RunnerSyntax(":q:", i18n("Find all links in :q: and download them with KGet.")));
42 m_kget = new OrgKdeKgetMainInterface(KGET_DBUS_SERVICE, KGET_DBUS_PATH, QDBusConnection::sessionBus(), this);
59 match.setText(i18np("Download %1 link with KGet.", "Download %1 links with KGet.", m_urls.size()));
66 void KGetRunner::run(const Plasma::RunnerContext& /*context*/, const Plasma::QueryMatch& /*match*/)
79 i18n("<p>KGet Runner could not communicate with KGet.</p><p style=\"font-size: small;\">Response from DBus:<br/>%1</p>", connection->lastError().message()),
94 QObject::connect(watcher, SIGNAL(finished(QDBusPendingCallWatcher*)), this, SLOT(callFinished(QDBusPendingCallWatcher*)));
103 // TODO Remove the check for QDBusError::NoReply when NewTransferDialog is fixed to show asynchronously.
107 i18n("<p>KGet Runner could not communicate with KGet.</p><p style=\"font-size: small;\">Response from DBus:<br/>%1</p>", reply.error().message()),
void clear()
QDBusReply< void > startService(const QString &name)
QDBusConnectionInterface * interface() const
ErrorType type() const
QString message() const
QDBusConnection sessionBus()
QDBusReply< bool > isServiceRegistered(const QString &serviceName) const
int size() const
void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match)
Definition: kgetrunner.cpp:66
KGetRunner(QObject *parent, const QVariantList &args)
Definition: kgetrunner.cpp:28
bool isEmpty() const
T & first()
QDBusError error() const
bool isValid() const
QDBusError lastError() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.