1 /*
2  * Copyright (C) 2009 - 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 __DECL_H_
20 #define __DECL_H_
21 
22 G_BEGIN_DECLS
23 
24 typedef struct _BrowserCore BrowserCore;
25 
26 typedef struct _BrowserVariable BrowserVariable;
27 typedef struct _BrowserConnection BrowserConnection;
28 typedef struct _BrowserWindow BrowserWindow;
29 
30 typedef struct _BrowserData BrowserData;
31 
32 typedef struct _BrowserPerspectiveIface   BrowserPerspectiveIface;
33 typedef struct _BrowserPerspective        BrowserPerspective;
34 
35 typedef struct _BrowserPageIface   BrowserPageIface;
36 typedef struct _BrowserPage        BrowserPage;
37 
38 typedef struct {
39 	const gchar          *perspective_name;
40 	const gchar          *menu_shortcut;
41 	BrowserPerspective *(*perspective_create) (BrowserWindow *);
42 } BrowserPerspectiveFactory;
43 #define BROWSER_PERSPECTIVE_FACTORY(x) ((BrowserPerspectiveFactory*)(x))
44 
45 #define DEFAULT_FAVORITES_SIZE 150
46 
47 #define DEFAULT_DATA_SELECT_LIMIT 500
48 
49 G_END_DECLS
50 
51 #endif
52