• 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
mode.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 Michael Zanetti <michael_zanetti@gmx.net>
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 MODE_H
21 #define MODE_H
22 
23 #include "kremotecontrol_export.h"
24 
25 #include <QtCore/QString>
26 #include <QtCore/QMetaType>
27 #include <QtCore/QVector>
28 
29 class Action;
30 
31 class KREMOTECONTROL_EXPORT Mode
32 {
33  public:
34  explicit Mode(const QString &name = QString(), const QString &iconName = QLatin1String( "infrared-remote" ));
35  ~Mode();
36 
37  QString name() const;
38  QString iconName() const;
39  QString button() const;
40 
41 
42  void setName(const QString &name);
43  void setIconName(const QString &iconName);
44  void setButton(const QString &button);
45 
49  void addAction(Action *action);
50 
54  void removeAction(Action *action);
55  void moveActionUp(Action *action);
56  void moveActionDown(Action *action);
57 
58  QVector<Action*> actions() const;
59  QVector<Action*> actionsForButton(const QString& button) const;
60 
61  bool operator==(const Mode &mode) const;
62  bool doAfter();
63  protected:
64  QString m_name;
65  QString m_iconName;
66  QString m_button;
67  QVector<Action*> m_actionList;
68  bool m_doAfter;
69 };
70 
71 Q_DECLARE_METATYPE(Mode*)
72 
73 #endif
kremotecontrol_export.h
Mode
Definition: mode.h:31
Mode::m_name
QString m_name
Definition: mode.h:64
KREMOTECONTROL_EXPORT
#define KREMOTECONTROL_EXPORT
Definition: kremotecontrol_export.h:37
QVector
Mode::m_button
QString m_button
Definition: mode.h:66
Action
Definition: action.h:30
Mode::m_actionList
QVector< Action * > m_actionList
Definition: mode.h:67
Mode::m_doAfter
bool m_doAfter
Definition: mode.h:68
Mode::m_iconName
QString m_iconName
Definition: mode.h:65
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