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