• 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
profile.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 PROFILE_H
21 #define PROFILE_H
22 
23 #include "profileactiontemplate.h"
24 #include "kremotecontrol_export.h"
25 
26 class KREMOTECONTROL_EXPORT Profile
27 {
28 
29  private:
30  class ProfileVersion {
31 
32  private:
33  int m_major;
34  int m_minor;
35 
36  public:
37  ProfileVersion(){
38  m_major = 0;
39  m_minor = 0;
40  };
41 
42  ProfileVersion(const QString &version);
43  int operator==(const ProfileVersion &other) const;
44  QString toString() const;
45  };
46 
47  public:
48  Profile();
49 
50  Profile(const QString &profileId, const QString &name, const QString &version, const QString &author, const QString &description);
51 
52  QString name() const;
53  QString author() const;
54  QString version() const;
55  QString description() const;
56  QString profileId() const;
57  QList<ProfileActionTemplate> actionTemplates() const;
58  ProfileActionTemplate actionTemplateByButton(const QString &buttonName) const;
59 
60  void setName(const QString &name);
61  void setAuthor(const QString &author);
62  void setVersion(const QString &version);
63  void setDescription(const QString & description);
64  void setProfileId(const QString & profileId);
65  void setActionTemplates(const QList< ProfileActionTemplate >& actionTemplates);
66  ProfileActionTemplate actionTemplate(const QString& actionTemplateId);
67  void addTemplate(const ProfileActionTemplate &actionTemplate);
68  int compareVersion(Profile* other) const;
69 
70  private:
71  QString m_profileId;
72  QString m_name;
73  ProfileVersion m_version;
74  QString m_author;
75  QString m_description;
76  QList<ProfileActionTemplate> m_actionTemplates;
77 };
78 
79 Q_DECLARE_METATYPE(Profile*)
80 
81 #endif // PROFILE_H
ProfileActionTemplate
Definition: profileactiontemplate.h:31
kremotecontrol_export.h
profileactiontemplate.h
KREMOTECONTROL_EXPORT
#define KREMOTECONTROL_EXPORT
Definition: kremotecontrol_export.h:37
Profile
Definition: profile.h:26
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