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

kget

  • sources
  • kde-4.14
  • kdenetwork
  • kget
  • plasma
  • runner
kgetrunner.h
Go to the documentation of this file.
1 /*
2  * This file is part of the KDE project.
3  *
4  * Copyright (C) 2009 Tomas Van Verrewegen <tomasvanverrewegen@telenet.be>
5  * Copyright (C) 2009 Lukas Appelhans <l.appelhans@gmx.de>
6  * Copyright (C) 2010 Matthias Fuchs <mat69@gmx.net>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published
10  * by the Free Software Foundation; either version 2 of the License,
11  * or (at your option) any later version.
12  */
13 
14 #ifndef KGETRUNNER_H
15 #define KGETRUNNER_H
16 
17 #include "kget_interface.h"
18 
19 #include <Plasma/AbstractRunner>
20 #include <KIcon>
21 
22 class QDBusConnectionInterface;
23 class QDBusPendingCallWatcher;
24 
25 
26 class KGetRunner
27  : public Plasma::AbstractRunner
28 {
29  Q_OBJECT
30 
31  public:
32  KGetRunner(QObject* parent, const QVariantList& args);
33  ~KGetRunner();
34 
35  void match(Plasma::RunnerContext& context);
36  void run(const Plasma::RunnerContext& context, const Plasma::QueryMatch& match);
37 
38  protected slots:
39  void init();
40 
41  private slots:
42  void showNewTransferDialog();
43  void callFinished(QDBusPendingCallWatcher* call);
44 
45  private:
46  QStringList parseUrls(const QString& text) const;
47 
48  private:
49  QDBusConnectionInterface *m_interface;
50  OrgKdeKgetMainInterface *m_kget;
51  KIcon m_icon;
52  QStringList m_urls;
53 };
54 
55 
56 K_EXPORT_PLASMA_RUNNER(kget, KGetRunner)
57 
58 
59 #endif
KGetRunner::~KGetRunner
~KGetRunner()
Definition: kgetrunner.cpp:36
KGetRunner::init
void init()
Definition: kgetrunner.cpp:40
QDBusPendingCallWatcher
KGetRunner::run
void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match)
Definition: kgetrunner.cpp:66
KGetRunner::KGetRunner
KGetRunner(QObject *parent, const QVariantList &args)
Definition: kgetrunner.cpp:28
QObject
QDBusConnectionInterface
QString
QStringList
KGetRunner::match
void match(Plasma::RunnerContext &context)
Definition: kgetrunner.cpp:46
KGetRunner
Definition: kgetrunner.h:26
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

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