1998-11-25 02:01:09 +08:00
|
|
|
#ifndef GTK_LDAPTREEITEM_H
|
|
|
|
#define GTK_LDAPTREEITEM_H
|
|
|
|
#include "gtk.h"
|
|
|
|
#include <My_Window.h>
|
|
|
|
#include <lber.h>
|
|
|
|
#include <ldap.h>
|
1998-11-27 08:56:29 +08:00
|
|
|
/*#include "XPMLabelBox.h"*/
|
|
|
|
|
|
|
|
#define ROOT_NODE 1
|
|
|
|
#define BRANCH_NODE 2
|
|
|
|
#define LEAF_NODE 3
|
1998-11-25 02:01:09 +08:00
|
|
|
|
|
|
|
class My_Window;
|
|
|
|
|
|
|
|
class Gtk_LdapTreeItem : public Gtk_TreeItem {
|
|
|
|
public:
|
|
|
|
char *dn;
|
|
|
|
char *rdn;
|
|
|
|
LDAP *ld;
|
|
|
|
LDAPMessage *result_identifier;
|
|
|
|
My_Window *par;
|
|
|
|
Gtk_Notebook *notebook;
|
1998-11-27 08:56:29 +08:00
|
|
|
Gtk_HBox *xpm_label;
|
1998-11-25 02:01:09 +08:00
|
|
|
Gtk_LdapTreeItem();
|
|
|
|
Gtk_LdapTreeItem(char *c, My_Window *w);
|
|
|
|
Gtk_LdapTreeItem(GtkTreeItem *t);
|
1998-11-27 08:56:29 +08:00
|
|
|
void setType(int t);
|
|
|
|
int getDetails();
|
1998-11-25 02:01:09 +08:00
|
|
|
void select_impl();
|
|
|
|
void collapse_impl();
|
|
|
|
void expand_impl();
|
|
|
|
};
|
|
|
|
#endif
|