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

tdeutils

tdecmoduleproxy.h
00001 /*  This file is part of the KDE project
00002     Copyright (C) 2003 Matthias Kretz <kretz@kde.org>
00003     Copyright (C) 2004 Frans Englich <frans.englich@telia.com>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License version 2 as published by the Free Software Foundation.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to
00016     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, USA.
00018 
00019 */
00020 
00021 #ifndef TDECMODULEPROXY_H
00022 #define TDECMODULEPROXY_H
00023 
00024 #include <tqwidget.h>
00025 #include <tqstringlist.h>
00026 
00027 #include <kservice.h>
00028 #include <tdelibs_export.h>
00029 
00030 class TDEAboutData;
00031 class TDECModule;
00032 class TDECModuleInfo;
00033 class TDEInstance;
00034 class TDEProcess;
00035 
00068 class TDEUTILS_EXPORT TDECModuleProxy : public TQWidget
00069 {
00070 Q_OBJECT
00071 
00072 
00073     friend class TDECModuleProxyRootCommunicatorImpl;
00074 
00075 public:
00076 
00090     TDECModuleProxy( const TDECModuleInfo & info, bool withFallback = true,
00091             TQWidget * parent = 0, const char * name = 0,
00092             const TQStringList & args = TQStringList() );
00093 
00109     TDECModuleProxy( const TQString& serviceName, bool withFallback = true,
00110             TQWidget * parent = 0, const char * name = 0,
00111             const TQStringList & args = TQStringList() );
00112 
00126     TDECModuleProxy( const KService::Ptr& service, bool withFallback = true,
00127             TQWidget  * parent = 0, const char * name = 0,
00128             const TQStringList & args = TQStringList() );
00129 
00133     ~TDECModuleProxy();
00134 
00139     void load();
00140 
00148     void save();
00149 
00153     TQString quickHelp() const;
00154 
00158     const TDEAboutData * aboutData() const;
00159 
00163     TQString handbookDocPath() const;
00164 
00168     TQString handbookSection() const;
00169 
00174     int buttons() const;
00175 
00181     TQString rootOnlyMsg() const;
00182     //KDE4 remove. There's a limit for convenience functions,
00183     // this one's available via moduleInfo()-> and realModule()->
00184 
00189     bool useRootOnlyMsg() const;
00190     //KDE4 remove. There's a limit for convenience functions,
00191     // this one's available via moduleInfo()-> and realModule()->
00192 
00198     TDEInstance * instance() const;
00199     //KDE4 remove. There's a limit for convenience functions,
00200     // this one's available via realModule()
00201 
00206     bool changed() const;
00207 
00218     bool rootMode() const;
00219 
00228     TDECModule* realModule() const;
00229 
00234     const TDECModuleInfo& moduleInfo() const;
00235 
00242     TQCString dcopName() const;
00243 
00244 public slots:
00245 
00252     void runAsRoot();
00253 
00258     void defaults();
00259 
00267     void deleteClient();
00268 
00269 signals:
00270 
00271     /*
00272      * This signal is emitted when the contained module is changed.
00273      */
00274     void changed( bool state );
00275 
00282     void changed( TDECModuleProxy* mod );
00283 
00290     void childClosed();
00291 
00292     /*
00293      * This signal is relayed from the encapsulated module, and
00294      * is equivalent to the module's own quickHelpChanged() signal.
00295      *
00296      * @since 3.4
00297      */
00298     void quickHelpChanged();
00299 
00300 protected:
00301 
00306     void showEvent( TQShowEvent * );
00307 
00314     void init( const TDECModuleInfo& info );
00315 
00316 
00321     void emitQuickHelpChanged();
00322 
00323 private slots:
00324 
00332     void callRootModule( const TQCString& function );
00333 
00340     void rootExited();
00341 
00345     void moduleChanged( bool );
00346 
00350     void moduleDestroyed();
00351 
00359     void applicationRemoved( const TQCString& app );
00360 
00361 private:
00362 
00363     class TDECModuleProxyPrivate;
00364     TDECModuleProxyPrivate * d;
00365 };
00366 
00367 #endif // TDECMODULEPROXY_H
00368 // vim: sw=4 ts=4 noet

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.7.6.1
This website is maintained by Timothy Pearson.