kdedmodule.h
/*
This file is part of the KDE libraries
Copyright (c) 2001 Waldo Bastian <bastian@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef __KDEDMODULE_H__
#define __KDEDMODULE_H__
#include <qobject.h>
#include <dcopobject.h>
#include <ksharedptr.h>
class KDEDModulePrivate;
class Kded;
class KDE_EXPORT KDEDModule : public QObject, public DCOPObject
{
Q_OBJECT
// For inclusion in KDE4 (since it's BIC) long-needed fix for allowing
// DCOP-based kdedmodules -- Gav <gav@kde.org>.
// K_DCOP
friend class Kded;
public:
KDEDModule(const QCString &name);
virtual ~KDEDModule();
void setIdleTimeout(int secs);
void resetIdle();
void insert(const QCString &app, const QCString &key, KShared *obj);
KShared *find(const QCString &app, const QCString &key);
void remove(const QCString &app, const QCString &key);
void removeAll(const QCString &app);
bool isWindowRegistered(long windowId);
public slots:
virtual void idle() { };
signals:
void moduleDeleted(KDEDModule *);
void windowRegistered(long windowId);
void windowUnregistered(long windowId);
private:
KDEDModulePrivate *d;
};
#endif
KDEDModule
The base class for KDED modules.
Definition: kdedmodule.h:55
KDEDModule::idle
virtual void idle()
Called whenever the last referenced object gets dereferenced.
Definition: kdedmodule.h:126

KDE Home | KDE Accessibility Home | Description of Access Keys