• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kutils
 

kutils

  • kutils
kcmoduleproxy.h
1 /* This file is part of the KDE project
2  Copyright (C) 2003 Matthias Kretz <kretz@kde.org>
3  Copyright (C) 2004 Frans Englich <frans.englich@telia.com>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
8 
9  This library 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 GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 
19 */
20 
21 #ifndef KCMODULEPROXY_H
22 #define KCMODULEPROXY_H
23 
24 #include <tqwidget.h>
25 #include <tqstringlist.h>
26 
27 #include <kservice.h>
28 #include <kdelibs_export.h>
29 
30 class KAboutData;
31 class KCModule;
32 class KCModuleInfo;
33 class KInstance;
34 class KProcess;
35 
68 class KUTILS_EXPORT KCModuleProxy : public TQWidget
69 {
70 Q_OBJECT
71 TQ_OBJECT
72 
73  friend class KCModuleProxyRootCommunicatorImpl;
74 
75 public:
76 
90  KCModuleProxy( const KCModuleInfo & info, bool withFallback = true,
91  TQWidget * parent = 0, const char * name = 0,
92  const TQStringList & args = TQStringList() );
93 
109  KCModuleProxy( const TQString& serviceName, bool withFallback = true,
110  TQWidget * parent = 0, const char * name = 0,
111  const TQStringList & args = TQStringList() );
112 
126  KCModuleProxy( const KService::Ptr& service, bool withFallback = true,
127  TQWidget * parent = 0, const char * name = 0,
128  const TQStringList & args = TQStringList() );
129 
133  ~KCModuleProxy();
134 
139  void load();
140 
148  void save();
149 
153  TQString quickHelp() const;
154 
158  const KAboutData * aboutData() const;
159 
164  int buttons() const;
165 
171  TQString rootOnlyMsg() const;
172  //KDE4 remove. There's a limit for convenience functions,
173  // this one's available via moduleInfo()-> and realModule()->
174 
179  bool useRootOnlyMsg() const;
180  //KDE4 remove. There's a limit for convenience functions,
181  // this one's available via moduleInfo()-> and realModule()->
182 
188  KInstance * instance() const;
189  //KDE4 remove. There's a limit for convenience functions,
190  // this one's available via realModule()
191 
196  bool changed() const;
197 
208  bool rootMode() const;
209 
218  KCModule* realModule() const;
219 
224  const KCModuleInfo& moduleInfo() const;
225 
232  TQCString dcopName() const;
233 
234 public slots:
235 
242  void runAsRoot();
243 
248  void defaults();
249 
257  void deleteClient();
258 
259 signals:
260 
261  /*
262  * This signal is emitted when the contained module is changed.
263  */
264  void changed( bool state );
265 
272  void changed( KCModuleProxy* mod );
273 
280  void childClosed();
281 
282  /*
283  * This signal is relayed from the encapsulated module, and
284  * is equivalent to the module's own quickHelpChanged() signal.
285  *
286  * @since 3.4
287  */
288  void quickHelpChanged();
289 
290 protected:
291 
296  void showEvent( TQShowEvent * );
297 
304  void init( const KCModuleInfo& info );
305 
306 
311  void emitQuickHelpChanged();
312 
313 private slots:
314 
322  void callRootModule( const TQCString& function );
323 
330  void rootExited();
331 
335  void moduleChanged( bool );
336 
340  void moduleDestroyed();
341 
349  void applicationRemoved( const TQCString& app );
350 
351 private:
352 
353  class KCModuleProxyPrivate;
354  KCModuleProxyPrivate * d;
355 };
356 
357 #endif // KCMODULEPROXY_H
358 // vim: sw=4 ts=4 noet
KProcess
KInstance
KAboutData
KCModuleInfo
A class that provides information about a KCModule.
Definition: kcmoduleinfo.h:49
KCModuleProxy
Encapsulates a KCModule for embedding.
Definition: kcmoduleproxy.h:68
KCModule

kutils

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

kutils

Skip menu "kutils"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kutils by doxygen 1.8.8
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |