]> git.sur5r.net Git - openldap/blob - contrib/gtk-tool/Gtk_LdapServer.h
Annoying little son of a `free' BUG fixed.
[openldap] / contrib / gtk-tool / Gtk_LdapServer.h
1 #ifndef GTK_LDAPSERVER_H
2 #define GTK_LDAPSERVER_H
3 #include "gtk.h"
4 #include "utils.h"
5 #include <My_Window.h>
6 #include <Gtk_LdapTree.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_Frame *notebook;
30         Gtk_HBox *xpm_label;
31 //      Gtk_Tree *subtree;
32         Gtk_Menu *popup;
33         G_List<char> *databases;
34         Gtk_LdapServer();
35         Gtk_LdapServer(My_Window *w, char *c, int p);
36         Gtk_LdapServer(GtkTreeItem *t);
37         ~Gtk_LdapServer();
38         void setType(int t);
39         int getConfig();
40         Gtk_Tree* getSubtree();
41 #ifndef LDAP_GET_OPT
42         char* getOptDescription(int option);
43         int getOptType(int option);
44 #endif
45         int getOptions();
46         int showDetails();
47 //      void show_impl();
48         void select_impl();
49         void collapse_impl();
50         void expand_impl();
51 };
52 #endif