• 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
  • plasma
  • engine
kgetengine.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU Library General Public License version 2 as
4  * published by the Free Software Foundation
5  *
6  * Copyright (C) 2007 by Javier Goday <jgoday@gmail.com>
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details
12  *
13  * You should have received a copy of the GNU Library General Public
14  * License along with this program; if not, write to the
15  * Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  */
18 
19 #ifndef KGETENGINE_H
20 #define KGETENGINE_H
21 
22 #include <plasma/dataengine.h>
23 
24 #include <QtDBus/QDBusConnectionInterface>
25 
26 class OrgKdeKgetMainInterface;
27 
28 class KGetEngine : public Plasma::DataEngine
29 {
30  Q_OBJECT
31 
32  public:
33  KGetEngine(QObject* parent, const QVariantList& args);
34  ~KGetEngine();
35 
36  QStringList sources() const;
37 
38  protected:
39  bool sourceRequestEvent(const QString &name);
40  bool updateSourceEvent(const QString& source);
41 
42  private slots:
43  void getKGetData(const QString &name);
44  void updateData();
45  void slotTransfersAdded(const QStringList &urls, const QStringList &dBusObjectPaths);
46  void slotTransfersRemoved(const QStringList &urls, const QStringList &dBusObjectPaths);
47 
48  private:
49  void transferAdded(const QString &url, const QString &dBusObjectPath);
50  void transferRemoved(const QString &url, const QString &dBusObjectPath);
51  bool isDBusServiceRegistered();
52 
53  private:
54  QDBusConnectionInterface *interface;
55  OrgKdeKgetMainInterface *m_kget;
56  static const quint16 MINIMUM_UPDATE_INTERVAL;
57  static const QString KGET_DBUS_SERVICE;
58  static const QString KGET_DBUS_PATH;
59 };
60 
61 K_EXPORT_PLASMA_DATAENGINE(kget, KGetEngine)
62 
63 #endif
KGetEngine::sources
QStringList sources() const
Definition: kgetengine.cpp:45
KGetEngine
Definition: kgetengine.h:28
QObject
KGetEngine::KGetEngine
KGetEngine(QObject *parent, const QVariantList &args)
Definition: kgetengine.cpp:31
KGetEngine::updateSourceEvent
bool updateSourceEvent(const QString &source)
Definition: kgetengine.cpp:58
KGetEngine::~KGetEngine
~KGetEngine()
Definition: kgetengine.cpp:41
KGetEngine::sourceRequestEvent
bool sourceRequestEvent(const QString &name)
Definition: kgetengine.cpp:53
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