1 /*
2  * Copyright (C) 2006 - 2011 Vivien Malerba <malerba@gnome-db.org>
3  * Copyright (C) 2007 Armin Burgmeier <armin@openismus.com>
4  * Copyright (C) 2007 Murray Cumming <murrayc@murrayc.com>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19  * Boston, MA  02110-1301, USA.
20  */
21 
22 #ifndef __GDA_HANDLER_STRING__
23 #define __GDA_HANDLER_STRING__
24 
25 #include <glib-object.h>
26 #include <libgda/gda-data-handler.h>
27 
28 G_BEGIN_DECLS
29 
30 #define GDA_TYPE_HANDLER_STRING          (gda_handler_string_get_type())
31 #define GDA_HANDLER_STRING(obj)          G_TYPE_CHECK_INSTANCE_CAST (obj, gda_handler_string_get_type(), GdaHandlerString)
32 #define GDA_HANDLER_STRING_CLASS(klass)  G_TYPE_CHECK_CLASS_CAST (klass, gda_handler_string_get_type (), GdaHandlerStringClass)
33 #define GDA_IS_HANDLER_STRING(obj)       G_TYPE_CHECK_INSTANCE_TYPE (obj, gda_handler_string_get_type ())
34 
35 typedef struct _GdaHandlerString      GdaHandlerString;
36 typedef struct _GdaHandlerStringClass GdaHandlerStringClass;
37 typedef struct _GdaHandlerStringPriv  GdaHandlerStringPriv;
38 
39 /* struct for the object's data */
40 struct _GdaHandlerString
41 {
42 	GObject                object;
43 	GdaHandlerStringPriv  *priv;
44 };
45 
46 /* struct for the object's class */
47 struct _GdaHandlerStringClass
48 {
49 	GObjectClass           parent_class;
50 
51 	/*< private >*/
52 	/* Padding for future expansion */
53 	void (*_gda_reserved1) (void);
54 	void (*_gda_reserved2) (void);
55 };
56 
57 /**
58  * SECTION:gda-handler-string
59  * @short_description: Default handler for string values
60  * @title: GdaHanderString
61  * @stability: Stable
62  * @see_also: #GdaDataHandler interface
63  *
64  * You should normally not need to use this API, refer to the #GdaDataHandler
65  * interface documentation for more information.
66  */
67 
68 GType           gda_handler_string_get_type          (void) G_GNUC_CONST;
69 GdaDataHandler *gda_handler_string_new               (void);
70 GdaDataHandler *gda_handler_string_new_with_provider (GdaServerProvider *prov, GdaConnection *cnc);
71 
72 G_END_DECLS
73 
74 #endif
75