• 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
remotecontrolbutton.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 REMOTECONTROLBUTTON_H
21 #define REMOTECONTROLBUTTON_H
22 
23 #include <QtCore/QString>
24 #include <QtCore/QSharedDataPointer>
25 
26 #include "kremotecontrol_export.h"
27 
28 class RemoteControlButtonPrivate;
29 
30 class KREMOTECONTROL_EXPORT RemoteControlButton
31 {
32 public:
33  enum ButtonId {
34  Unknown = -1,
35  // Numbers
36  Number0,
37  Number1,
38  Number2,
39  Number3,
40  Number4,
41  Number5,
42  Number6,
43  Number7,
44  Number8,
45  Number9,
46 
47  // Media control
48  Play,
49  Pause,
50  PlayPause,
51  Stop,
52  Forward,
53  Backward,
54  FastForward,
55  Rewind,
56  ChannelDown,
57  ChannelUp,
58  VolumeDown,
59  VolumeUp,
60  Mute,
61  Info,
62  Eject,
63  Power,
64 
65  // Navigation
66  Up,
67  Down,
68  Left,
69  Right,
70  Select,
71  Back,
72  Menu,
73 
74  // Jump points
75  Aux,
76  CD,
77  DVD,
78  EPG,
79  Favorites,
80  Help,
81  Home,
82  Music,
83  Text,
84  TV,
85 
86  // Colors
87  Blue,
88  Green,
89  Red,
90  Yellow
91  };
92 
101  RemoteControlButton(const QString &remoteName, ButtonId id, int repeatCounter = 0);
102 
111  RemoteControlButton(const QString &remoteName, const QString &name, int repeatCounter = 0);
112 
116  RemoteControlButton(const RemoteControlButton &other);
117 
121  ~RemoteControlButton();
122 
128  QString remoteName() const;
129 
136  ButtonId id() const;
137 
145  QString name() const;
146 
155  QString description() const;
156 
163  int repeatCounter() const;
164 
165 private:
166  QSharedDataPointer<RemoteControlButtonPrivate> d;
167 };
168 
169 class RemoteControlButtonPrivate: public QSharedData
170 {
171  public:
172  RemoteControlButtonPrivate() {
173  id = RemoteControlButton::Unknown;
174  remoteName.clear();
175  name.clear();
176  repeatCounter = -1;
177  };
178 
179  RemoteControlButtonPrivate(const RemoteControlButtonPrivate &other) : QSharedData(other)
180  , remoteName(other.remoteName), id(other.id), name(other.name), repeatCounter(other.repeatCounter) {};
181 
182  QString remoteName;
183  RemoteControlButton::ButtonId id;
184  QString name;
185  int repeatCounter;
186 };
187 
188 #endif // REMOTECONTROLBUTTON_H
RemoteControlButton::VolumeUp
Definition: remotecontrolbutton.h:59
RemoteControlButton::Number7
Definition: remotecontrolbutton.h:43
RemoteControlButton::EPG
Definition: remotecontrolbutton.h:78
kremotecontrol_export.h
RemoteControlButtonPrivate::RemoteControlButtonPrivate
RemoteControlButtonPrivate(const RemoteControlButtonPrivate &other)
Definition: remotecontrolbutton.h:179
RemoteControlButton::Pause
Definition: remotecontrolbutton.h:49
RemoteControlButton::Eject
Definition: remotecontrolbutton.h:62
RemoteControlButton::ChannelDown
Definition: remotecontrolbutton.h:56
RemoteControlButton::Stop
Definition: remotecontrolbutton.h:51
RemoteControlButton::TV
Definition: remotecontrolbutton.h:84
RemoteControlButton::Menu
Definition: remotecontrolbutton.h:72
RemoteControlButton::Info
Definition: remotecontrolbutton.h:61
RemoteControlButton::Forward
Definition: remotecontrolbutton.h:52
RemoteControlButtonPrivate::repeatCounter
int repeatCounter
Definition: remotecontrolbutton.h:185
RemoteControlButton::Play
Definition: remotecontrolbutton.h:48
KREMOTECONTROL_EXPORT
#define KREMOTECONTROL_EXPORT
Definition: kremotecontrol_export.h:37
RemoteControlButton::Down
Definition: remotecontrolbutton.h:67
RemoteControlButton::Right
Definition: remotecontrolbutton.h:69
RemoteControlButton::Number0
Definition: remotecontrolbutton.h:36
RemoteControlButton::Mute
Definition: remotecontrolbutton.h:60
RemoteControlButton::Aux
Definition: remotecontrolbutton.h:75
RemoteControlButton::VolumeDown
Definition: remotecontrolbutton.h:58
RemoteControlButtonPrivate::id
RemoteControlButton::ButtonId id
Definition: remotecontrolbutton.h:183
RemoteControlButton::Red
Definition: remotecontrolbutton.h:89
RemoteControlButton::Number9
Definition: remotecontrolbutton.h:45
RemoteControlButton::Number4
Definition: remotecontrolbutton.h:40
RemoteControlButton::CD
Definition: remotecontrolbutton.h:76
RemoteControlButton::Blue
Definition: remotecontrolbutton.h:87
RemoteControlButtonPrivate::name
QString name
Definition: remotecontrolbutton.h:184
RemoteControlButton::Number8
Definition: remotecontrolbutton.h:44
RemoteControlButton::PlayPause
Definition: remotecontrolbutton.h:50
RemoteControlButton::Home
Definition: remotecontrolbutton.h:81
RemoteControlButton::Music
Definition: remotecontrolbutton.h:82
RemoteControlButton::Number3
Definition: remotecontrolbutton.h:39
RemoteControlButton::ChannelUp
Definition: remotecontrolbutton.h:57
RemoteControlButton::Unknown
Definition: remotecontrolbutton.h:34
RemoteControlButton::Number1
Definition: remotecontrolbutton.h:37
RemoteControlButton::Favorites
Definition: remotecontrolbutton.h:79
RemoteControlButtonPrivate::remoteName
QString remoteName
Definition: remotecontrolbutton.h:180
RemoteControlButton::Green
Definition: remotecontrolbutton.h:88
RemoteControlButton::Up
Definition: remotecontrolbutton.h:66
RemoteControlButton::Back
Definition: remotecontrolbutton.h:71
QSharedData
RemoteControlButton::Rewind
Definition: remotecontrolbutton.h:55
RemoteControlButton::Left
Definition: remotecontrolbutton.h:68
RemoteControlButtonPrivate
Definition: remotecontrolbutton.h:169
RemoteControlButton::ButtonId
ButtonId
Definition: remotecontrolbutton.h:33
RemoteControlButton::Number5
Definition: remotecontrolbutton.h:41
RemoteControlButton::Backward
Definition: remotecontrolbutton.h:53
RemoteControlButton::Text
Definition: remotecontrolbutton.h:83
RemoteControlButton::Power
Definition: remotecontrolbutton.h:63
RemoteControlButtonPrivate::RemoteControlButtonPrivate
RemoteControlButtonPrivate()
Definition: remotecontrolbutton.h:172
RemoteControlButton::Help
Definition: remotecontrolbutton.h:80
RemoteControlButton
Definition: remotecontrolbutton.h:30
RemoteControlButton::DVD
Definition: remotecontrolbutton.h:77
RemoteControlButton::FastForward
Definition: remotecontrolbutton.h:54
RemoteControlButton::Number2
Definition: remotecontrolbutton.h:38
RemoteControlButton::Select
Definition: remotecontrolbutton.h:70
RemoteControlButton::Number6
Definition: remotecontrolbutton.h:42
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