• 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
remotecontrolmanager_p.h
Go to the documentation of this file.
1 /*
2  Copyright (C) <2011> Michael Zanetti <mzanetti@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License along
15  with this program; if not, write to the Free Software Foundation, Inc.,
16  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 
18 */
19 
20 #ifndef REMOTECONTROLMANAGER_P_H
21 #define REMOTECONTROLMANAGER_P_H
22 
23 #include <QObject>
24 #include <QMap>
25 #include <QPair>
26 
27 #include "ifaces/remotecontrolmanagerinterface.h"
28 #include "remotecontrolmanager.h"
29 #include "remotecontrol.h"
30 
31 class RemoteControlManagerPrivate : public RemoteControlManager::Notifier
32 {
33  Q_OBJECT
34 public:
35  RemoteControlManagerPrivate();
36  ~RemoteControlManagerPrivate();
37 
38  RemoteControlList allRemotes();
39  RemoteControl *findRemoteControl(const QString &name);
40 
41  bool connected();
42 
43 private Q_SLOTS:
44  void _k_remoteControlAdded(const QString &name);
45  void _k_remoteControlRemoved(const QString &name);
46  void _k_statusChanged(bool connected);
47  void _k_destroyed(QObject *object);
48 
49 private:
50  void loadBackends(const char *serviceName);
51  bool m_connected;
52  QList<Iface::RemoteControlManager*> m_backendList;
53 
54  RemoteControlList buildDeviceList(const QStringList &remoteList);
55  QPair<RemoteControl *, Iface::RemoteControl *> findRegisteredRemoteControl(const QString &name);
56 
57  QMap<QString, QPair<RemoteControl *, Iface::RemoteControl *> > m_remoteControlMap;
58 // RemoteControl m_invalidDevice;
59 };
60 
61 #endif
RemoteControlManager::Notifier
Definition: remotecontrolmanager.h:45
RemoteControlManagerPrivate::RemoteControlManagerPrivate
RemoteControlManagerPrivate()
Definition: remotecontrolmanager.cpp:47
RemoteControlManagerPrivate::findRemoteControl
RemoteControl * findRemoteControl(const QString &name)
Definition: remotecontrolmanager.cpp:181
QObject
remotecontrolmanagerinterface.h
RemoteControl
Definition: remotecontrol.h:35
RemoteControlManagerPrivate::connected
bool connected()
Definition: remotecontrolmanager.cpp:103
RemoteControlManagerPrivate::allRemotes
RemoteControlList allRemotes()
Definition: remotecontrolmanager.cpp:167
RemoteControlManagerPrivate
Definition: remotecontrolmanager_p.h:31
RemoteControlList
QList< RemoteControl * > RemoteControlList
Definition: remotecontrol.h:110
remotecontrol.h
remotecontrolmanager.h
RemoteControlManagerPrivate::~RemoteControlManagerPrivate
~RemoteControlManagerPrivate()
Definition: remotecontrolmanager.cpp:52
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