1998-11-30 07:56:22 +08:00
|
|
|
#ifndef GTK_LDAPSERVER_H
|
|
|
|
#define GTK_LDAPSERVER_H
|
|
|
|
#include "gtk.h"
|
1998-12-02 23:18:47 +08:00
|
|
|
#include "utils.h"
|
1998-11-30 07:56:22 +08:00
|
|
|
#include <My_Window.h>
|
1998-12-02 23:18:47 +08:00
|
|
|
#include <Gtk_LdapTree.h>
|
1998-11-30 07:56:22 +08:00
|
|
|
#include <Gtk_LdapTreeItem.h>
|
|
|
|
#include <lber.h>
|
|
|
|
#include <ldap.h>
|
|
|
|
#include "icons/local_server.h"
|
|
|
|
#include "icons/remote_server.h"
|
|
|
|
|
|
|
|
#define LOCAL_SERVER 1
|
|
|
|
#define REMOTE_SERVER 2
|
|
|
|
|
|
|
|
class My_Window;
|
|
|
|
|
|
|
|
class Gtk_LdapServer : public Gtk_TreeItem {
|
|
|
|
public:
|
|
|
|
char *dn;
|
|
|
|
char *hostname;
|
|
|
|
LDAPMessage **thing;
|
|
|
|
LDAP *ld;
|
|
|
|
char *host;
|
|
|
|
char *base_dn;
|
|
|
|
int c, port;
|
|
|
|
My_Window *par;
|
|
|
|
// Gtk_Notebook *notebook;
|
1998-12-04 09:11:12 +08:00
|
|
|
Gtk_Frame *notebook;
|
1998-11-30 07:56:22 +08:00
|
|
|
Gtk_HBox *xpm_label;
|
|
|
|
// Gtk_Tree *subtree;
|
1998-12-04 09:11:12 +08:00
|
|
|
Gtk_Menu *popup;
|
1998-11-30 07:56:22 +08:00
|
|
|
G_List<char> *databases;
|
|
|
|
Gtk_LdapServer();
|
|
|
|
Gtk_LdapServer(My_Window *w, char *c, int p);
|
|
|
|
Gtk_LdapServer(GtkTreeItem *t);
|
|
|
|
~Gtk_LdapServer();
|
|
|
|
void setType(int t);
|
|
|
|
int getConfig();
|
1998-12-02 23:18:47 +08:00
|
|
|
Gtk_Tree* getSubtree();
|
1999-02-13 07:45:35 +08:00
|
|
|
#ifndef LDAP_GET_OPT
|
1998-12-04 09:11:12 +08:00
|
|
|
char* getOptDescription(int option);
|
|
|
|
int getOptType(int option);
|
1999-02-13 07:45:35 +08:00
|
|
|
#endif
|
1998-12-04 09:11:12 +08:00
|
|
|
int getOptions();
|
1998-11-30 07:56:22 +08:00
|
|
|
int showDetails();
|
1999-02-13 07:45:35 +08:00
|
|
|
// void show_impl();
|
1998-11-30 07:56:22 +08:00
|
|
|
void select_impl();
|
|
|
|
void collapse_impl();
|
|
|
|
void expand_impl();
|
|
|
|
};
|
|
|
|
#endif
|