]> git.sur5r.net Git - openldap/blob - contrib/gtk-tool/Gtk_LdapTreeItem.h
Annoying little son of a `free' BUG fixed.
[openldap] / contrib / gtk-tool / Gtk_LdapTreeItem.h
1 #ifndef GTK_LDAPTREEITEM_H
2 #define GTK_LDAPTREEITEM_H
3 #include "gtk.h"
4 #include "utils.h"
5 #include <My_Window.h>
6 #include <Gtk_LdapTree.h>
7 #include <lber.h>
8 #include <ldap.h>
9 #include "icons/root_node.h"
10 #include "icons/branch_node.h"
11 #include "icons/leaf_node.h"
12 #include "icons/alias_node.h"
13 #include "icons/rfc822mailgroup_node.h"
14 #include "icons/general_node.h"
15
16 #define ROOT_NODE 1
17 #define BRANCH_NODE 2
18 #define LEAF_NODE 3
19
20 class My_Window;
21 class Gtk_LdapTree;
22
23 class Gtk_LdapTreeItem : public Gtk_TreeItem {
24 public:
25         char *dn;
26         char *rdn;
27         char *objectClass;
28         LDAP *ld;
29         LDAPMessage *result_identifier;
30         My_Window *par;
31         Gtk_Notebook *notebook;
32         Gtk_HBox *xpm_label;
33         Gtk_LdapTreeItem();
34         Gtk_LdapTreeItem(char *c, My_Window *w, LDAP *ld);
35         Gtk_LdapTreeItem(GtkTreeItem *t);
36         ~Gtk_LdapTreeItem();
37         Gtk_LdapTree* getSubtree(LDAP *ld, int i);
38         void setType(int t);
39         int getDetails();
40         int showDetails();
41 //      void show_impl();
42         void select_impl();
43         void collapse_impl();
44         void expand_impl();
45 };
46 #endif