1 /* 2 * Copyright (C) 2011 Murray Cumming <murrayc@murrayc.com> 3 * Copyright (C) 2011 Vivien Malerba <malerba@gnome-db.org> 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License 7 * as published by the Free Software Foundation; either version 2 8 * of the License, or (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18 */ 19 20 #ifndef __LDAP_ENTRIES_PAGE_H__ 21 #define __LDAP_ENTRIES_PAGE_H__ 22 23 #include <gtk/gtk.h> 24 #include "../browser-connection.h" 25 26 G_BEGIN_DECLS 27 28 #define LDAP_ENTRIES_PAGE_TYPE (ldap_entries_page_get_type()) 29 #define LDAP_ENTRIES_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, LDAP_ENTRIES_PAGE_TYPE, LdapEntriesPage)) 30 #define LDAP_ENTRIES_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass, LDAP_ENTRIES_PAGE_TYPE, LdapEntriesPageClass)) 31 #define IS_LDAP_ENTRIES_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, LDAP_ENTRIES_PAGE_TYPE)) 32 #define IS_LDAP_ENTRIES_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LDAP_ENTRIES_PAGE_TYPE)) 33 34 typedef struct _LdapEntriesPage LdapEntriesPage; 35 typedef struct _LdapEntriesPageClass LdapEntriesPageClass; 36 typedef struct _LdapEntriesPagePrivate LdapEntriesPagePrivate; 37 38 struct _LdapEntriesPage { 39 GtkBox parent; 40 LdapEntriesPagePrivate *priv; 41 }; 42 43 struct _LdapEntriesPageClass { 44 GtkBoxClass parent_class; 45 }; 46 47 GType ldap_entries_page_get_type (void) G_GNUC_CONST; 48 49 GtkWidget *ldap_entries_page_new (BrowserConnection *bcnc, const gchar *dn); 50 const gchar *ldap_entries_page_get_current_dn (LdapEntriesPage *ldap_entries_page); 51 void ldap_entries_page_set_current_dn (LdapEntriesPage *ldap_entries_page, const gchar *dn); 52 53 G_END_DECLS 54 55 #endif 56