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 
21 #ifndef __LDAP_BROWSER_PERSPECTIVE_H_
22 #define __LDAP_BROWSER_PERSPECTIVE_H_
23 
24 #include <glib-object.h>
25 #include "../browser-perspective.h"
26 
27 G_BEGIN_DECLS
28 
29 #define TYPE_LDAP_BROWSER_PERSPECTIVE          (ldap_browser_perspective_get_type())
30 #define LDAP_BROWSER_PERSPECTIVE(obj)          G_TYPE_CHECK_INSTANCE_CAST (obj, ldap_browser_perspective_get_type(), LdapBrowserPerspective)
31 #define LDAP_BROWSER_PERSPECTIVE_CLASS(klass)  G_TYPE_CHECK_CLASS_CAST (klass, ldap_browser_perspective_get_type (), LdapBrowserPerspectiveClass)
32 #define IS_LDAP_BROWSER_PERSPECTIVE(obj)       G_TYPE_CHECK_INSTANCE_TYPE (obj, ldap_browser_perspective_get_type ())
33 
34 typedef struct _LdapBrowserPerspective LdapBrowserPerspective;
35 typedef struct _LdapBrowserPerspectiveClass LdapBrowserPerspectiveClass;
36 typedef struct _LdapBrowserPerspectivePrivate LdapBrowserPerspectivePrivate;
37 
38 /* struct for the object's data */
39 struct _LdapBrowserPerspective
40 {
41 	GtkBox              object;
42 	LdapBrowserPerspectivePrivate *priv;
43 };
44 
45 /* struct for the object's class */
46 struct _LdapBrowserPerspectiveClass
47 {
48 	GtkBoxClass         parent_class;
49 };
50 
51 /**
52  * SECTION:ldap-browser-perspective
53  * @short_description: Perspective to analyse the database's ldap
54  * @title: Ldap Browser perspective
55  * @stability: Stable
56  * @see_also:
57  */
58 
59 GType                ldap_browser_perspective_get_type               (void) G_GNUC_CONST;
60 BrowserPerspective  *ldap_browser_perspective_new                    (BrowserWindow *bwin);
61 
62 void                 ldap_browser_perspective_display_ldap_entry     (LdapBrowserPerspective *bpers,
63 								      const gchar *dn);
64 void                 ldap_browser_perspective_display_ldap_class     (LdapBrowserPerspective *bpers,
65 								      const gchar *classname);
66 
67 G_END_DECLS
68 
69 #endif
70