• 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
  • kcmremotecontrol
selectprofile.h
Go to the documentation of this file.
1 /*
2  Copyright (C) <2009> <Frank Scheffold (fscheffold@googlemail.com)>
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 
21 #ifndef SELECTPROFILE_H
22 #define SELECTPROFILE_H
23 
24 #include "profileserver.h"
25 
26 #include <QtGui/QWidget>
27 #include <QtGui/QTreeWidget>
28 #include <QtGui/QLabel>
29 #include <QtGui/QVBoxLayout>
30 
31 #include <KTextEdit>
32 #include <KDialog>
33 
34 class SelectProfileWidget : public QWidget
35 {
36  public:
37  QTreeWidget *profilesWidget;
38  QLabel *selectionLabel;
39  QVBoxLayout *layout;
40 
41  SelectProfileWidget (QWidget *parent = 0);
42 
43 };
44 
45 
46 class SelectProfile : public KDialog
47 {
48  Q_OBJECT
49 
50  private:
51  SelectProfileWidget *selectProfileWidget;
52 
53 
54  public:
55  explicit SelectProfile(Remote *remote, QWidget *parent = 0, const bool &modal = false);
56  Profile *getSelectedProfile();
57 
58  public Q_SLOTS:
59  void checkForUpdate(QTreeWidgetItem*, int);
60 };
61 
62 class ProfileWrapper
63 {
64  private:
65  Profile *profile;
66  ProfileServer::ProfileSupportedByRemote supported;
67 
68  public:
69  ProfileWrapper()
70  : profile(0)
71  {
72  qRegisterMetaType<ProfileWrapper>("ProfileWrapper");
73  }
74 
75  ProfileWrapper( Profile * pProfile, ProfileServer::ProfileSupportedByRemote pSupported){
76  ProfileWrapper();
77 
78  profile = pProfile;
79  supported = pSupported;
80  }
81 
82  Profile *getProfile() {
83  return profile;
84  }
85 
86  ProfileServer::ProfileSupportedByRemote getSupported() const {
87  return supported;
88  }
89 };
90 
91 Q_DECLARE_METATYPE(ProfileWrapper)
92 
93 #endif // SELECTPROFILE_H
ProfileWrapper::ProfileWrapper
ProfileWrapper()
Definition: selectprofile.h:69
SelectProfileWidget::selectionLabel
QLabel * selectionLabel
Definition: selectprofile.h:38
QWidget
SelectProfile::SelectProfile
SelectProfile(Remote *remote, QWidget *parent=0, const bool &modal=false)
Definition: selectprofile.cpp:41
ProfileWrapper::ProfileWrapper
ProfileWrapper(Profile *pProfile, ProfileServer::ProfileSupportedByRemote pSupported)
Definition: selectprofile.h:75
SelectProfile::checkForUpdate
void checkForUpdate(QTreeWidgetItem *, int)
Definition: selectprofile.cpp:78
KDialog
profileserver.h
ProfileServer::ProfileSupportedByRemote
ProfileSupportedByRemote
Definition: profileserver.h:35
ProfileWrapper
Definition: selectprofile.h:62
SelectProfile::getSelectedProfile
Profile * getSelectedProfile()
Definition: selectprofile.cpp:105
SelectProfile
Definition: selectprofile.h:46
SelectProfileWidget
Definition: selectprofile.h:34
SelectProfileWidget::SelectProfileWidget
SelectProfileWidget(QWidget *parent=0)
Definition: selectprofile.cpp:26
Profile
Definition: profile.h:26
SelectProfileWidget::layout
QVBoxLayout * layout
Definition: selectprofile.h:39
SelectProfileWidget::profilesWidget
QTreeWidget * profilesWidget
Definition: selectprofile.h:37
ProfileWrapper::getProfile
Profile * getProfile()
Definition: selectprofile.h:82
Remote
Definition: remote.h:32
ProfileWrapper::getSupported
ProfileServer::ProfileSupportedByRemote getSupported() const
Definition: selectprofile.h:86
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