1
/* This file is part of Maliit framework
3
* Copyright (C) 2012 One Laptop per Child Association
5
* Contact: maliit-discuss@lists.maliit.org
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.1 of the licence, or (at your option) any later version.
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the
19
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
* Boston, MA 02111-1307, USA.
23
#ifndef MALIIT_GLIB_ATTRIBUTE_EXTENSION_H
24
#define MALIIT_GLIB_ATTRIBUTE_EXTENSION_H
27
#include <glib-object.h>
31
#define MALIIT_TYPE_ATTRIBUTE_EXTENSION (maliit_attribute_extension_get_type())
32
#define MALIIT_ATTRIBUTE_EXTENSION(obj) (G_TYPE_CHECK_INSTANCE_CAST(obj, MALIIT_TYPE_ATTRIBUTE_EXTENSION, MaliitAttributeExtension))
33
#define MALIIT_ATTRIBUTE_EXTENSION_CLASS(cls) (G_TYPE_CHECK_CLASS_CAST(cls, MALIIT_TYPE_ATTRIBUTE_EXTENSION, MaliitAttributeExtensionClass))
34
#define MALIIT_IS_ATTRIBUTE_EXTENSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE(obj, MALIIT_TYPE_ATTRIBUTE_EXTENSION))
35
#define MALIIT_IS_ATTRIBUTE_EXTENSION_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE(obj, MALIIT_TYPE_ATTRIBUTE_EXTENSION))
36
#define MALIIT_ATTRIBUTE_EXTENSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), MALIIT_TYPE_ATTRIBUTE_EXTENSION, MaliitAttributeExtensionClass))
38
typedef struct _MaliitAttributeExtension MaliitAttributeExtension;
39
typedef struct _MaliitAttributeExtensionClass MaliitAttributeExtensionClass;
40
typedef struct _MaliitAttributeExtensionPrivate MaliitAttributeExtensionPrivate;
42
struct _MaliitAttributeExtension
47
MaliitAttributeExtensionPrivate *priv;
51
* MaliitAttributeExtensionClass:
52
* @parent_class: The parent class.
54
struct _MaliitAttributeExtensionClass
56
GObjectClass parent_class;
60
maliit_attribute_extension_get_type (void) G_GNUC_CONST;
62
MaliitAttributeExtension *
63
maliit_attribute_extension_new (void);
65
MaliitAttributeExtension *
66
maliit_attribute_extension_new_with_filename (const gchar* filename);
69
maliit_attribute_extension_get_attributes (MaliitAttributeExtension *extension);
72
maliit_attribute_extension_get_filename (MaliitAttributeExtension *extension);
75
maliit_attribute_extension_get_id (MaliitAttributeExtension *extension);
78
maliit_attribute_extension_update_attribute (MaliitAttributeExtension *extension,
83
maliit_attribute_extension_set_attribute (MaliitAttributeExtension *extension,
88
maliit_attribute_extension_attach_to_object (MaliitAttributeExtension *extension,
93
#endif /* MALIIT_GLIB_ATTRIBUTE_EXTENSION_H */