openldap/contrib/gtk-tool/Gtk_LdapTreeItem.h

41 lines
824 B
C
Raw Normal View History

1998-11-24 13:01:09 -05:00
#ifndef GTK_LDAPTREEITEM_H
#define GTK_LDAPTREEITEM_H
#include "gtk.h"
#include <My_Window.h>
#include <lber.h>
#include <ldap.h>
/*#include "XPMLabelBox.h"*/
1998-11-28 15:25:09 -05:00
#include "icons/root_node.h"
#include "icons/branch_node.h"
#include "icons/leaf_node.h"
#include "icons/general_node.h"
#define ROOT_NODE 1
#define BRANCH_NODE 2
#define LEAF_NODE 3
1998-11-24 13:01:09 -05:00
class My_Window;
class Gtk_LdapTreeItem : public Gtk_TreeItem {
public:
char *dn;
char *rdn;
1998-11-28 15:25:09 -05:00
char *objectClass;
1998-11-24 13:01:09 -05:00
LDAP *ld;
LDAPMessage *result_identifier;
My_Window *par;
Gtk_Notebook *notebook;
Gtk_HBox *xpm_label;
1998-11-24 13:01:09 -05:00
Gtk_LdapTreeItem();
Gtk_LdapTreeItem(char *c, My_Window *w);
Gtk_LdapTreeItem(GtkTreeItem *t);
1998-11-28 15:25:09 -05:00
~Gtk_LdapTreeItem();
void setType(int t);
int getDetails();
1998-11-28 15:25:09 -05:00
int showDetails();
1998-11-24 13:01:09 -05:00
void select_impl();
void collapse_impl();
void expand_impl();
};
#endif