summaryrefslogtreecommitdiffstats
path: root/ksirc/objFinder.h
blob: e5f8d0165ead93076e37c7649a937b52efdefff8 (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
42
#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