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

KDECore

kdedmodule.h

Go to the documentation of this file.
00001 /*
00002    This file is part of the KDE libraries
00003 
00004    Copyright (c) 2001 Waldo Bastian <bastian@kde.org>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License as published by the Free Software Foundation; either
00009    version 2 of the License, or (at your option) any later version.
00010 
00011    This library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Library General Public License for more details.
00015 
00016    You should have received a copy of the GNU Library General Public License
00017    along with this library; see the file COPYING.LIB.  If not, write to
00018    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019    Boston, MA 02110-1301, USA.
00020 
00021 */
00022 #ifndef __KDEDMODULE_H__
00023 #define __KDEDMODULE_H__
00024 
00025 #include <kdecore_export.h>
00026 
00027 #include <QtCore/QObject>
00028 #include <QtCore/QByteArray>
00029 
00030 class KDEDModulePrivate;
00031 class Kded;
00032 
00045 class KDECORE_EXPORT KDEDModule: public QObject
00046 {
00047   Q_OBJECT
00048   Q_CLASSINFO("D-Bus Interface", "org.kde.KDEDModule")
00049 
00050   friend class Kded;
00051 public:
00052 
00056   explicit KDEDModule(QObject* parent = 0);
00057 
00058   virtual ~KDEDModule();
00059 
00065   void setModuleName( const QString& name );
00066 
00067   QString moduleName() const;
00068 
00069 #if 0 // does anyone really use this? I found no kdedmodule using it.
00070 
00071      // Same for setIdleTimeout/resetIdle - no hit in lxr.kde.org
00072      // Grep for KDED_OBJECTS if you re-enable the feature.
00073 
00080   void setIdleTimeout(int secs);
00081 
00087   void resetIdle();
00088 
00089 
00098   void insert(const DCOPCString &app, const DCOPCString &key, KShared *obj);
00099 
00103   KShared *find(const DCOPCString &app, const DCOPCString &key);
00104 
00109   void remove(const DCOPCString &app, const DCOPCString &key);
00110 
00115   void removeAll(const DCOPCString &app);
00116 #endif
00117 
00118 #if 0 // does anyone use this?
00119 
00122   bool isWindowRegistered(long windowId) const;
00123 #endif
00124 
00125 #if 0
00126 public Q_SLOTS:
00134   virtual void idle() { }
00135 #endif
00136 
00137 Q_SIGNALS:
00141   void moduleDeleted(KDEDModule *);
00142 
00146   void windowRegistered(qlonglong windowId);
00147 
00151   void windowUnregistered(qlonglong windowId);
00152 
00153 private:
00154   KDEDModulePrivate* const d;
00155 };
00156 
00157 #endif

KDECore

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal