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

kded

  • kded
kded.h
1/* This file is part of the KDE libraries
2 * Copyright (C) 1999 David Faure <faure@kde.org>
3 * (C) 1999 Waldo Bastian <bastian@kde.org>
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#ifndef __kded_h__
21#define __kded_h__
22
23#include <tqobject.h>
24#include <tqstring.h>
25#include <tqtimer.h>
26#include <tqasciidict.h>
27#include <tqintdict.h>
28
29#include <dcopclient.h>
30#include <dcopobject.h>
31
32#include <tdesycoca.h>
33#include <tdesycocatype.h>
34#include <kdedmodule.h>
35#include <klibloader.h>
36
37class KDirWatch;
38class KService;
39
40// No need for this in libtdeio - apps only get readonly access
41class Kded : public TQObject, public DCOPObject, public DCOPObjectProxy
42{
43 TQ_OBJECT
44public:
45 Kded(bool checkUpdates, bool new_startup);
46 virtual ~Kded();
47
48 static Kded *self() { return _self;}
52 bool process(const TQCString &obj, const TQCString &fun,
53 const TQByteArray &data,
54 TQCString &replyType, TQByteArray &replyData);
55
60 bool process(const TQCString &fun, const TQByteArray &data,
61 TQCString &replyType, TQByteArray &replyData);
62
63 virtual QCStringList functions();
64
65 void noDemandLoad(const TQString &obj); // Don't load obj on demand
66
67 KDEDModule *loadModule(const TQCString &obj, bool onDemand);
68 KDEDModule *loadModule(const KService *service, bool onDemand);
69 QCStringList loadedModules();
70 bool unloadModule(const TQCString &obj);
71 bool isWindowRegistered(long windowId);
72 void registerWindowId(long windowId);
73 void unregisterWindowId(long windowId);
74 void recreate(bool initial);
75 void loadSecondPhase();
76
77public slots:
81 void initModules();
82
86 void recreate();
87
91 void recreateDone();
92
96 void updateDirWatch();
97
101 void updateResourceList();
102
106 void slotApplicationRemoved(const TQCString &appId);
107
111 void slotKDEDModuleRemoved(KDEDModule *);
112
113protected slots:
114
118 void dirDeleted(const TQString& path);
119
123 void update (const TQString& dir );
124
128 void installCrashHandler();
129
130 void runDelayedCheck();
131
132protected:
136 void readDirectory(const TQString& dir );
137
138
139 static void crashHandler(int);
140
146 KDirWatch* m_pDirWatch;
147
148 bool b_checkUpdates;
149
155 TQTimer* m_pTimer;
156
157 TQValueList<DCOPClientTransaction *> m_recreateRequests;
158 int m_recreateCount;
159 bool m_recreateBusy;
160
161 TQAsciiDict<KDEDModule> m_modules;
162 TQAsciiDict<KLibrary> m_libs;
163 TQAsciiDict<TQObject> m_dontLoad;
164 TQAsciiDict<TQValueList<long> > m_windowIdList;
165 TQIntDict<long> m_globalWindowIdList;
166 TQStringList m_allResourceDirs;
167 bool m_needDelayedCheck;
168 bool m_newStartup;
169public:
170 bool newStartup() const { return m_newStartup; }
171private:
172
173 static Kded *_self;
174};
175
176class KUpdateD : public TQObject
177{
178 TQ_OBJECT
179public:
180 KUpdateD();
181 ~KUpdateD();
182
183public slots:
184 void runKonfUpdate();
185 void slotNewUpdateFile();
186
187private:
193 KDirWatch* m_pDirWatch;
194
200 TQTimer* m_pTimer;
201};
202
203class KHostnameD : public TQObject
204{
205 TQ_OBJECT
206public:
207 KHostnameD(int pollInterval);
208 ~KHostnameD();
209
210public slots:
211 void checkHostname();
212
213private:
217 TQTimer m_Timer;
218 TQCString m_hostname;
219};
220
221#endif
KDEDModule
The base class for KDED modules.
Definition: kdedmodule.h:56

kded

Skip menu "kded"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kded

Skip menu "kded"
  • 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 kded by doxygen 1.9.4
This website is maintained by Timothy Pearson.