• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KUtils

  • sources
  • kde-4.14
  • kdelibs
  • kutils
kcmoduleproxy_p.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 2007 Matthias Kretz <kretz@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 
18 */
19 
20 #ifndef KCMUTILS_KCMODULEPROXY_P_H
21 #define KCMUTILS_KCMODULEPROXY_P_H
22 
23 #include "kcmoduleinfo.h"
24 #include "kcmoduleproxy.h"
25 #include <QtGui/QLabel>
26 class QVBoxLayout;
27 
28 class KCModuleProxyPrivate
29 {
30  Q_DECLARE_PUBLIC(KCModuleProxy)
31  protected:
32  KCModuleProxyPrivate(KCModuleProxy *_parent, const KCModuleInfo &info, const QStringList &_args)
33  : args(_args), kcm(0), topLayout(0), rootInfo(0), modInfo(info),
34  changed(false), bogusOccupier(false), parent(_parent)
35  {
36  }
37 
38  ~KCModuleProxyPrivate()
39  {
40  delete rootInfo; // Delete before embedWidget!
41  delete kcm;
42  }
43 
44  void loadModule();
45 
49  void _k_moduleChanged(bool);
50 
54  void _k_moduleDestroyed();
55 
61  void _k_ownerChanged(const QString &service, const QString &oldOwner, const QString &newOwner);
62 
63  QStringList args;
64  KCModule *kcm;
65  QVBoxLayout *topLayout; /* Contains QScrollView view, and root stuff */
66  QLabel *rootInfo;
67  QString dbusService;
68  QString dbusPath;
69  KCModuleInfo modInfo;
70  bool changed;
71  bool bogusOccupier;
72  KCModuleProxy *parent;
73  KCModuleProxy *q_ptr;
74 };
75 
76 #endif // KCMUTILS_KCMODULEPROXY_P_H
77 // vim: sw=4 sts=4 et tw=100
KCModuleProxyPrivate::changed
bool changed
Definition: kcmoduleproxy_p.h:70
KCModuleProxyPrivate::dbusService
QString dbusService
Definition: kcmoduleproxy_p.h:67
KCModuleProxyPrivate::bogusOccupier
bool bogusOccupier
Definition: kcmoduleproxy_p.h:71
kcmoduleproxy.h
KCModuleProxyPrivate::dbusPath
QString dbusPath
Definition: kcmoduleproxy_p.h:68
KCModuleProxyPrivate::loadModule
void loadModule()
Definition: kcmoduleproxy.cpp:89
KCModuleProxyPrivate::args
QStringList args
Definition: kcmoduleproxy_p.h:63
KCModuleProxyPrivate::_k_moduleDestroyed
void _k_moduleDestroyed()
Zeroes d->kcm.
Definition: kcmoduleproxy.cpp:238
KCModuleProxyPrivate::q_ptr
KCModuleProxy * q_ptr
Definition: kcmoduleproxy_p.h:73
KCModuleProxyPrivate::KCModuleProxyPrivate
KCModuleProxyPrivate(KCModuleProxy *_parent, const KCModuleInfo &info, const QStringList &_args)
Definition: kcmoduleproxy_p.h:32
KCModuleProxyPrivate::_k_ownerChanged
void _k_ownerChanged(const QString &service, const QString &oldOwner, const QString &newOwner)
Gets called by DCOP when an application closes.
Definition: kcmoduleproxy.cpp:179
KCModuleProxyPrivate::parent
KCModuleProxy * parent
Definition: kcmoduleproxy_p.h:72
QVBoxLayout
QString
KCModuleProxyPrivate::kcm
KCModule * kcm
Definition: kcmoduleproxy_p.h:64
QStringList
KCModuleInfo
A class that provides information about a KCModule.
Definition: kcmoduleinfo.h:47
KCModuleProxyPrivate::modInfo
KCModuleInfo modInfo
Definition: kcmoduleproxy_p.h:69
KCModuleProxyPrivate::~KCModuleProxyPrivate
~KCModuleProxyPrivate()
Definition: kcmoduleproxy_p.h:38
KCModuleProxyPrivate::rootInfo
QLabel * rootInfo
Definition: kcmoduleproxy_p.h:66
KCModuleProxy
Encapsulates a KCModule for embedding.
Definition: kcmoduleproxy.h:67
KCModuleProxyPrivate
Definition: kcmoduleproxy_p.h:28
kcmoduleinfo.h
KCModuleProxyPrivate::_k_moduleChanged
void _k_moduleChanged(bool)
Makes sure the proper variables is set and signals are emitted.
Definition: kcmoduleproxy.cpp:226
QLabel
KCModule
KCModuleProxyPrivate::topLayout
QVBoxLayout * topLayout
Definition: kcmoduleproxy_p.h:65
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KUtils

Skip menu "KUtils"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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