1 /*
2  * Copyright (C) 2011 Vivien Malerba <malerba@gnome-db.org>
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17  */
18 
19 #ifndef __MGR_LDAP_ENTRIES_H__
20 #define __MGR_LDAP_ENTRIES_H__
21 
22 #include "../browser-connection.h"
23 #include <libgda/gda-tree-manager.h>
24 
25 G_BEGIN_DECLS
26 
27 #define MGR_TYPE_LDAP_ENTRIES            (mgr_ldap_entries_get_type())
28 #define MGR_LDAP_ENTRIES(obj)            (G_TYPE_CHECK_INSTANCE_CAST (obj, MGR_TYPE_LDAP_ENTRIES, MgrLdapEntries))
29 #define MGR_LDAP_ENTRIES_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST (klass, MGR_TYPE_LDAP_ENTRIES, MgrLdapEntriesClass))
30 #define MGR_IS_LDAP_ENTRIES(obj)         (G_TYPE_CHECK_INSTANCE_TYPE(obj, MGR_TYPE_LDAP_ENTRIES))
31 #define MGR_IS_LDAP_ENTRIES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), MGR_TYPE_LDAP_ENTRIES))
32 #define MGR_LDAP_ENTRIES_GET_CLASS(o)    (G_TYPE_INSTANCE_GET_CLASS ((o), MGR_TYPE_LDAP_ENTRIES, MgrLdapEntriesClass))
33 
34 typedef struct _MgrLdapEntries MgrLdapEntries;
35 typedef struct _MgrLdapEntriesPriv MgrLdapEntriesPriv;
36 typedef struct _MgrLdapEntriesClass MgrLdapEntriesClass;
37 
38 struct _MgrLdapEntries {
39 	GdaTreeManager          object;
40 	MgrLdapEntriesPriv *priv;
41 };
42 
43 struct _MgrLdapEntriesClass {
44 	GdaTreeManagerClass     object_class;
45 };
46 
47 GType           mgr_ldap_entries_get_type  (void) G_GNUC_CONST;
48 GdaTreeManager* mgr_ldap_entries_new       (BrowserConnection *bcnc, const gchar *dn);
49 
50 G_END_DECLS
51 
52 #endif
53