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