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

kremotecontrol

  • sources
  • kde-4.12
  • kdeutils
  • kremotecontrol
  • libkremotecontrol
dbusinterface.h
Go to the documentation of this file.
1 /*************************************************************************
2  * Copyright (C) 2009 Michael Zanetti <michael_zanetti@gmx.net> *
3  * *
4  * This program is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU General Public License as *
6  * published by the Free Software Foundation; either version 2 of *
7  * the License or (at your option) version 3 or any later version *
8  * accepted by the membership of KDE e.V. (or its successor approved *
9  * by the membership of KDE e.V.), which shall act as a proxy *
10  * defined in Section 14 of version 3 of the license. *
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, see <http://www.gnu.org/licenses/>. *
19  *************************************************************************/
20 /*
21  * dbusinterface.h
22  *
23  * Created on: 14.02.2009
24  * Author: Michael Zanetti
25  */
26 
27 #ifndef DBUSINTERFACE_H
28 #define DBUSINTERFACE_H
29 
30 #include "dbusaction.h"
31 
32 #include <QtCore/QStringList>
33 #include <QDBusMessage>
34 #include <QDBusInterface>
35 
36 class KREMOTECONTROL_EXPORT DBusInterface: public QObject
37 {
38  Q_OBJECT
39 
40  private:
41  DBusInterface();
42 
43  QStringList allRegisteredPrograms();
44  bool searchForProgram(const DBusAction *action, QStringList &programs);
45  QStringList getNodes(const QString &interface, const QString &node);
46  public:
47 
48  static DBusInterface *getInstance();
49  ~DBusInterface();
50 
51  bool isProgramRunning(const QString &program);
52  bool isUnique(const QString &program);
53 
54  QStringList registeredPrograms();
55  QStringList nodes(const QString &program);
56  QMultiMap<QString, Prototype> functions(const QString &program, const QString &object);
57 
58  QStringList configuredRemotes();
59  void ignoreButtonEvents(const QString &remoteName);
60  void considerButtonEvents(const QString &remoteName);
61  void reloadRemoteControlDaemon();
62 
63  void executeAction(const DBusAction *action);
64  QStringList modesForRemote(const QString &remoteName);
65  void changeMode(const QString &remoteName, const QString &modeName);
66  QString currentMode(const QString &remoteName);
67  QString modeIcon(const QString &remoteName, const QString &modeName);
68  bool eventsIgnored(const QString &remoteName);
69 
70  bool isKdedModuleRunning();
71 
75  bool loadKdedModule();
76 
80  bool unloadKdedModule();
81 };
82 
83 class QScriptEngine;
84 
85 class QDBusIfaceWrapper: public QObject
86 {
87  Q_OBJECT
88 public:
89  QDBusIfaceWrapper(const QString &program, const QString &path);
90 
91 public slots:
92  int call(const QString &method);
93  int call(const QString &method, int);
94  int call(const QString &method, const QString &);
95 
96 private:
97  QString m_program;
98  QString m_path;
99 };
100 
101 #endif
QDBusIfaceWrapper
Definition: dbusinterface.h:85
QDBusIfaceWrapper::call
int call(const QString &method)
Definition: dbusinterface.cpp:595
ExecutionEngine::executeAction
void executeAction(Action *action)
Definition: executionengine.cpp:50
DBusInterface
Definition: dbusinterface.h:36
KREMOTECONTROL_EXPORT
#define KREMOTECONTROL_EXPORT
Definition: kremotecontrol_export.h:37
QDBusIfaceWrapper::QDBusIfaceWrapper
QDBusIfaceWrapper(const QString &program, const QString &path)
Definition: dbusinterface.cpp:588
dbusaction.h
QObject
DBusAction
Definition: dbusaction.h:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kremotecontrol

Skip menu "kremotecontrol"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

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