Fix crash on logout
[kdenetwork.git] / ksirc / objFinder.h
blob04e289320362fd77d335cc545c5a3f4cbfbb924f
1 #ifndef OBJFINGER_H
2 #define OBJFINGER_H
4 #include <qobject.h>
5 #include <q3dict.h>
6 #include <qstringlist.h>
8 class objFinder : public QObject {
9 Q_OBJECT
10 public:
12 objFinder();
13 virtual ~objFinder();
15 static void insert(QObject *obj, const char *key = 0);
16 static QObject *find(const char *name, const char *inherits);
17 static void dumpTree();
18 static QStringList allObjects();
20 signals:
21 void inserted(QObject *obj);
23 protected slots:
24 void objDest();
26 private:
28 * Don't allow the object to be created, all it's members are static
31 static QString randString();
34 static Q3Dict<QObject> *objList;
38 extern objFinder *objFind;
40 #endif