• 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
profileactiontemplate.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 ACTIONTEMPLATE_H
21 #define ACTIONTEMPLATE_H
22 
23 #include "profileaction.h"
24 #include "prototype.h"
25 #include "kremotecontrol_export.h"
26 
27 #include "remotecontrolbutton.h"
28 
29 class ProfileActionTemplatePrivate;
30 
31 class KREMOTECONTROL_EXPORT ProfileActionTemplate
32 {
33  public:
34  ProfileActionTemplate(const QString &profile,
35  const QString &actionTemplateID,
36  const QString &actionName,
37  const QString &serviceName,
38  const QString &node,
39  const QString &interface,
40  const Prototype &function,
41  const ProfileAction::ActionDestination,
42  bool autostart,
43  bool repeat,
44  const QString &description = QString(),
45  const QString &buttonName = QString());
46 
47  ProfileActionTemplate();
48 
49  QString profileId() const;
50  QString actionTemplateId() const;
51  QString actionName() const;
52  QString service() const;
53  QString node() const;
54  QString interface() const;
55  Prototype function() const;
56  QString description() const;
57  ProfileAction::ActionDestination destination() const;
58  bool autostart() const;
59  bool repeat() const;
60  QString buttonName() const;
61 
62  ProfileAction *createAction(const RemoteControlButton &button) const;
63 
64  private:
65  QSharedDataPointer<ProfileActionTemplatePrivate> d;
66 
67 };
68 
69 class ProfileActionTemplatePrivate: public QSharedData
70 {
71  public:
72  ProfileActionTemplatePrivate(){};
73 
74  ProfileActionTemplatePrivate(const ProfileActionTemplatePrivate &other): QSharedData(other),
75  m_profileId(other.m_profileId),
76  m_actionTemplateId(other.m_actionTemplateId),
77  m_actionName(other.m_actionName),
78  m_serviceName(other.m_serviceName),
79  m_node(other.m_node),
80  m_interface(other.m_interface),
81  m_function(other.m_function),
82  m_description(other.m_description),
83  m_destination(other.m_destination),
84  m_autostart(other.m_autostart),
85  m_repeat(other.m_repeat),
86  m_buttonName(other.m_buttonName){};
87 
88  QString m_profileId; // e.g. multimedia
89  QString m_actionTemplateId; // e.g. amarokPlay
90  QString m_actionName; // e.g. Play
91  QString m_serviceName; // e.g. org.kde.amarok
92  QString m_node; // e.g. Player
93  QString m_interface; // e.g. org.mpris.Player
94  Prototype m_function; // play
95  QString m_description; // e.g. Start playing
96  ProfileAction::ActionDestination m_destination;
97  bool m_autostart;
98  bool m_repeat;
99  QString m_buttonName;
100 };
101 
102 Q_DECLARE_METATYPE(ProfileActionTemplate)
103 
104 #endif // ACTIONTEMPLATE_H
ProfileActionTemplate
Definition: profileactiontemplate.h:31
kremotecontrol_export.h
ProfileActionTemplatePrivate::m_profileId
QString m_profileId
Definition: profileactiontemplate.h:86
ProfileActionTemplatePrivate::m_repeat
bool m_repeat
Definition: profileactiontemplate.h:98
ProfileActionTemplatePrivate::m_destination
ProfileAction::ActionDestination m_destination
Definition: profileactiontemplate.h:96
ProfileActionTemplatePrivate::m_buttonName
QString m_buttonName
Definition: profileactiontemplate.h:99
KREMOTECONTROL_EXPORT
#define KREMOTECONTROL_EXPORT
Definition: kremotecontrol_export.h:37
remotecontrolbutton.h
Action::ActionDestination
ActionDestination
Definition: action.h:34
ProfileActionTemplatePrivate::m_description
QString m_description
Definition: profileactiontemplate.h:95
ProfileActionTemplatePrivate::m_interface
QString m_interface
Definition: profileactiontemplate.h:93
ProfileActionTemplatePrivate::m_actionTemplateId
QString m_actionTemplateId
Definition: profileactiontemplate.h:89
Prototype
Definition: prototype.h:28
ProfileActionTemplatePrivate::m_serviceName
QString m_serviceName
Definition: profileactiontemplate.h:91
prototype.h
ProfileActionTemplatePrivate::ProfileActionTemplatePrivate
ProfileActionTemplatePrivate(const ProfileActionTemplatePrivate &other)
Definition: profileactiontemplate.h:74
ProfileActionTemplatePrivate::ProfileActionTemplatePrivate
ProfileActionTemplatePrivate()
Definition: profileactiontemplate.h:72
ProfileActionTemplatePrivate::m_autostart
bool m_autostart
Definition: profileactiontemplate.h:97
profileaction.h
ProfileActionTemplatePrivate::m_node
QString m_node
Definition: profileactiontemplate.h:92
QSharedData
ProfileActionTemplatePrivate
Definition: profileactiontemplate.h:69
ProfileServer::profile
Profile * profile(const QString &profileId)
Definition: profileserver.cpp:93
ProfileActionTemplatePrivate::m_function
Prototype m_function
Definition: profileactiontemplate.h:94
ProfileAction
Definition: profileaction.h:26
RemoteControlButton
Definition: remotecontrolbutton.h:30
ProfileActionTemplatePrivate::m_actionName
QString m_actionName
Definition: profileactiontemplate.h:90
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