]> git.sur5r.net Git - openldap/blob - contrib/gtk-tool/Gtk_LdapServer.h
a80dc9fe04be034d5c26ef3b6d6e5efe6960a2cf
[openldap] / contrib / gtk-tool / Gtk_LdapServer.h
1 #ifndef GTK_LDAPSERVER_H
2 #define GTK_LDAPSERVER_H
3 #include "gtk.h"
4 #include <My_Window.h>
5 #include <LdapOpts.h>
6 #include <Gtk_LdapItem.h>
7 #include <Gtk_LdapTreeItem.h>
8 #include <lber.h>
9 #include <ldap.h>
10 #include "icons/local_server.h"
11 #include "icons/remote_server.h"
12
13 #define LOCAL_SERVER 1
14 #define REMOTE_SERVER 2
15
16 class My_Window;
17
18 class Gtk_LdapServer : public Gtk_TreeItem {
19 public:
20         char *dn;
21         char *hostname;
22         LDAPMessage **thing;
23         LDAP *ld;
24         char *host;
25         char *base_dn;
26         int c, port;
27         My_Window *par;
28 //      Gtk_Notebook *notebook;
29         Gtk_Viewport *notebook;
30         Gtk_HBox *xpm_label;
31 //      Gtk_Tree *subtree;
32         G_List<char> *databases;
33         Gtk_LdapServer();
34         Gtk_LdapServer(My_Window *w, char *c, int p);
35         Gtk_LdapServer(GtkTreeItem *t);
36         ~Gtk_LdapServer();
37         void setType(int t);
38         int getConfig();
39         int getSubtree();
40         int getDetails();
41         int showDetails();
42         void select_impl();
43         void collapse_impl();
44         void expand_impl();
45 };
46 #endif