openldap/contrib/gtk-tool/Gtk_LdapServer.h

53 lines
1.0 KiB
C
Raw Normal View History

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;
Gtk_Frame *notebook;
1998-11-30 07:56:22 +08:00
Gtk_HBox *xpm_label;
// Gtk_Tree *subtree;
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();
#ifndef LDAP_GET_OPT
char* getOptDescription(int option);
int getOptType(int option);
#endif
int getOptions();
1998-11-30 07:56:22 +08:00
int showDetails();
// void show_impl();
1998-11-30 07:56:22 +08:00
void select_impl();
void collapse_impl();
void expand_impl();
};
#endif