]> git.sur5r.net Git - openldap/blob - contrib/gtk-tool/Gtk_LdapTreeItem.h
various updates and fixes for gtk-tool
[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/general_node.h"
13
14 #define ROOT_NODE 1
15 #define BRANCH_NODE 2
16 #define LEAF_NODE 3
17
18 class My_Window;
19 class Gtk_LdapTree;
20
21 class Gtk_LdapTreeItem : public Gtk_TreeItem {
22 public:
23         char *dn;
24         char *rdn;
25         char *objectClass;
26         LDAP *ld;
27         LDAPMessage *result_identifier;
28         My_Window *par;
29         Gtk_Notebook *notebook;
30         Gtk_HBox *xpm_label;
31         Gtk_LdapTreeItem();
32         Gtk_LdapTreeItem(char *c, My_Window *w, LDAP *ld);
33         Gtk_LdapTreeItem(GtkTreeItem *t);
34         ~Gtk_LdapTreeItem();
35         Gtk_LdapTree* getSubtree(LDAP *ld, int i);
36         void setType(int t);
37         int getDetails();
38         int showDetails();
39         void show_impl();
40         void select_impl();
41         void collapse_impl();
42         void expand_impl();
43 };
44 #endif