summaryrefslogtreecommitdiffstats
path: root/ksirc/objFinder.h
blob: f4f6fbd2f9ccc59d1c7506220e277bcb6d816fb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef OBJFINGER_H
#define OBJFINGER_H

#include <tqobject.h>
#include <tqdict.h>
#include <tqstringlist.h>

class objFinder : public TQObject {
  Q_OBJECT
public:

  objFinder();
  virtual ~objFinder();
    
  static void insert(TQObject *obj, const char *key = 0);
  static TQObject *find(const char *name, const char *inherits);
  static void dumpTree();
  static TQStringList allObjects();

signals:
  void inserted(TQObject *obj);
  
protected slots:
  void objDest();

private:
  /*
   * Don't allow the object to be created, all it's members are static
   */

  static TQString randString();

  
  static TQDict<TQObject> *objList;
    
};

extern objFinder *objFind;

#endif