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

tdeutils

  • tdeutils
tdecmoduleproxy.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 TDECMODULEPROXY_H
22#define TDECMODULEPROXY_H
23
24#include <tqwidget.h>
25#include <tqstringlist.h>
26
27#include <kservice.h>
28#include <tdelibs_export.h>
29
30class TDEAboutData;
31class TDECModule;
32class TDECModuleInfo;
33class TDEInstance;
34class TDEProcess;
35
68class TDEUTILS_EXPORT TDECModuleProxy : public TQWidget
69{
70TQ_OBJECT
71
72
73 friend class TDECModuleProxyRootCommunicatorImpl;
74
75public:
76
90 TDECModuleProxy( const TDECModuleInfo & info, bool withFallback = true,
91 TQWidget * parent = 0, const char * name = 0,
92 const TQStringList & args = TQStringList() );
93
109 TDECModuleProxy( const TQString& serviceName, bool withFallback = true,
110 TQWidget * parent = 0, const char * name = 0,
111 const TQStringList & args = TQStringList() );
112
126 TDECModuleProxy( const KService::Ptr& service, bool withFallback = true,
127 TQWidget * parent = 0, const char * name = 0,
128 const TQStringList & args = TQStringList() );
129
133 ~TDECModuleProxy();
134
139 void load();
140
148 void save();
149
153 TQString quickHelp() const;
154
158 const TDEAboutData * aboutData() const;
159
163 TQString handbookDocPath() const;
164
168 TQString handbookSection() const;
169
174 int buttons() const;
175
181 TQString rootOnlyMsg() const;
182 //KDE4 remove. There's a limit for convenience functions,
183 // this one's available via moduleInfo()-> and realModule()->
184
189 bool useRootOnlyMsg() const;
190 //KDE4 remove. There's a limit for convenience functions,
191 // this one's available via moduleInfo()-> and realModule()->
192
198 TDEInstance * instance() const;
199 //KDE4 remove. There's a limit for convenience functions,
200 // this one's available via realModule()
201
206 bool changed() const;
207
218 bool rootMode() const;
219
228 TDECModule* realModule() const;
229
234 const TDECModuleInfo& moduleInfo() const;
235
242 TQCString dcopName() const;
243
244public slots:
245
252 void runAsRoot();
253
258 void defaults();
259
267 void deleteClient();
268
269signals:
270
271 /*
272 * This signal is emitted when the contained module is changed.
273 */
274 void changed( bool state );
275
282 void changed( TDECModuleProxy* mod );
283
290 void childClosed();
291
292 /*
293 * This signal is relayed from the encapsulated module, and
294 * is equivalent to the module's own quickHelpChanged() signal.
295 *
296 * @since 3.4
297 */
298 void quickHelpChanged();
299
300protected:
301
306 void showEvent( TQShowEvent * );
307
314 void init( const TDECModuleInfo& info );
315
316
321 void emitQuickHelpChanged();
322
323private slots:
324
332 void callRootModule( const TQCString& function );
333
340 void rootExited();
341
345 void moduleChanged( bool );
346
350 void moduleDestroyed();
351
359 void applicationRemoved( const TQCString& app );
360
361private:
362
363 class TDECModuleProxyPrivate;
364 TDECModuleProxyPrivate * d;
365};
366
367#endif // TDECMODULEPROXY_H
TDEAboutData
TDECModuleInfo
A class that provides information about a TDECModule.
Definition: tdecmoduleinfo.h:50
TDECModuleProxy
Encapsulates a TDECModule for embedding.
Definition: tdecmoduleproxy.h:69
TDECModuleProxy::changed
void changed(TDECModuleProxy *mod)
This is emitted in the same situations as in the one above.
TDECModuleProxy::childClosed
void childClosed()
When a module running with root privileges and exits, returns to normal mode, the childClosed() signa...
TDECModule
TDEInstance
TDEProcess

tdeutils

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

tdeutils

Skip menu "tdeutils"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeutils by doxygen 1.9.4
This website is maintained by Timothy Pearson.