• 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
remotecontrol.h
Go to the documentation of this file.
1 /*************************************************************************
2  * Copyright (C) 2011 by Michael Zanetti <mzanetti@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 #ifndef REMOTECONTROL_H
21 #define REMOTECONTROL_H
22 
23 #include "remotecontrol_p.h"
24 #include "remotecontrolbutton.h"
25 #include "kremotecontrol_export.h"
26 
27 #include <QtCore/QObject>
28 #include <QtCore/QStringList>
29 
30 
31 #include "kremotecontrol_export.h"
32 
33 class RemoteControlPrivate;
34 
35 class KREMOTECONTROL_EXPORT RemoteControl: public QObject
36 {
37  Q_OBJECT
38  Q_DECLARE_PRIVATE(RemoteControl)
39 
40 public:
41  RemoteControl(const QString &name);
42 
46  static QStringList allRemoteNames();
47 
51  static QList<RemoteControl *> allRemotes();
52 
58  explicit RemoteControl(Iface::RemoteControl *backendObject);
59 
65  RemoteControl(const RemoteControl &remoteControl);
66 
70  virtual ~RemoteControl();
71 
72 
78  QString name() const;
79 
85  QList<RemoteControlButton> buttons() const;
86 
87 Q_SIGNALS:
93  void buttonPressed(const RemoteControlButton &button);
94 
95 protected:
99  RemoteControl(RemoteControlPrivate &dd, QObject *backendObject);
100 
104  RemoteControl(RemoteControlPrivate &dd, const RemoteControl &name);
105 
106  RemoteControlPrivate *d_ptr;
107  friend class RemoteControlManagerPrivate;
108 };
109 
110 typedef QList<RemoteControl *> RemoteControlList;
111 
112 #endif // REMOTECONTROL_H
kremotecontrol_export.h
KREMOTECONTROL_EXPORT
#define KREMOTECONTROL_EXPORT
Definition: kremotecontrol_export.h:37
remotecontrolbutton.h
QObject
Iface::RemoteControl
Definition: remotecontrolinterface.h:30
RemoteControl
Definition: remotecontrol.h:35
RemoteControl::d_ptr
RemoteControlPrivate * d_ptr
Definition: remotecontrol.h:106
RemoteControlManagerPrivate
Definition: remotecontrolmanager_p.h:31
RemoteControlList
QList< RemoteControl * > RemoteControlList
Definition: remotecontrol.h:110
RemoteControlPrivate
Definition: remotecontrol_p.h:31
remotecontrol_p.h
RemoteControlButton
Definition: remotecontrolbutton.h:30
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