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

tdeutils

  • tdeutils
  • ksettings
dispatcher.h
1/* This file is part of the KDE project
2 Copyright (C) 2003 Matthias Kretz <kretz@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
17
18*/
19
20#ifndef KSETTINGS_DISPATCHER_H
21#define KSETTINGS_DISPATCHER_H
22
23#include <tqobject.h>
24#include <tqmap.h>
25#include <tdelibs_export.h>
26
27class TQCString;
28class TQSignal;
29class TQStrList;
30template<class T> class KStaticDeleter;
31class TDEInstance;
32class TDEConfig;
33
34namespace KSettings
35{
36
51class TDEUTILS_EXPORT Dispatcher : public TQObject
52{
53 friend class KStaticDeleter<Dispatcher>;
54
55 TQ_OBJECT
56 public:
60 static Dispatcher * self();
61
74 void registerInstance( TDEInstance * instance, TQObject * recv, const char * slot );
75
79 TDEConfig * configForInstanceName( const TQCString & instanceName );
80
85 TQStrList instanceNames() const;
86
87//X /**
88//X * @return The TDEInstance object belonging to the instance name you pass
89//X * (only works for registered instances of course).
90//X */
91//X TDEInstance * instanceForName( const TQCString & instanceName );
92
93 public slots:
100 void reparseConfiguration( const TQCString & instanceName );
101
108 void syncConfiguration();
109
110 private slots:
111 void unregisterInstance( TQObject * );
112
113 private:
114 Dispatcher( TQObject * parent = 0, const char * name = 0 );
115 ~Dispatcher();
116 static Dispatcher * m_self;
117
118 struct InstanceInfo {
119 TDEInstance * instance;
120 TQSignal * signal;
121 int count;
122 };
123 TQMap<TQCString, InstanceInfo> m_instanceInfo;
124 TQMap<TQObject *, TQCString> m_instanceName;
125
126 class DispatcherPrivate;
127 DispatcherPrivate * d;
128};
129
130}
131#endif // KSETTINGS_DISPATCHER_H
KSettings::Dispatcher
Dispatch change notifications from the KCMs to the program.
Definition: dispatcher.h:52
KStaticDeleter
TDEConfig
TDEInstance
KSettings
A collection of classes to create configuration dialogs that work over component boundaries.
Definition: componentsdialog.cpp:33

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.