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_REGISTRY_H
24
#define MALIIT_GLIB_ATTRIBUTE_EXTENSION_REGISTRY_H
27
#include <glib-object.h>
29
#include "maliitattributeextension.h"
33
#define MALIIT_TYPE_ATTRIBUTE_EXTENSION_REGISTRY (maliit_attribute_extension_registry_get_type())
34
#define MALIIT_ATTRIBUTE_EXTENSION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST(obj, MALIIT_TYPE_ATTRIBUTE_EXTENSION_REGISTRY, MaliitAttributeExtensionRegistry))
35
#define MALIIT_ATTRIBUTE_EXTENSION_REGISTRY_CLASS(cls) (G_TYPE_CHECK_CLASS_CAST(cls, MALIIT_TYPE_ATTRIBUTE_EXTENSION_REGISTRY, MaliitAttributeExtensionRegistryClass))
36
#define MALIIT_IS_ATTRIBUTE_EXTENSION_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE(obj, MALIIT_TYPE_ATTRIBUTE_EXTENSION_REGISTRY))
37
#define MALIIT_IS_ATTRIBUTE_EXTENSION_REGISTRY_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE(obj, MALIIT_TYPE_ATTRIBUTE_EXTENSION_REGISTRY))
38
#define MALIIT_ATTRIBUTE_EXTENSION_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), MALIIT_TYPE_ATTRIBUTE_EXTENSION_REGISTRY, MaliitAttributeExtensionRegistryClass))
40
typedef struct _MaliitAttributeExtensionRegistry MaliitAttributeExtensionRegistry;
41
typedef struct _MaliitAttributeExtensionRegistryClass MaliitAttributeExtensionRegistryClass;
42
typedef struct _MaliitAttributeExtensionRegistryPrivate MaliitAttributeExtensionRegistryPrivate;
44
struct _MaliitAttributeExtensionRegistry
49
MaliitAttributeExtensionRegistryPrivate *priv;
53
* MaliitAttributeExtensionRegistryClass:
54
* @parent_class: The parent class.
56
struct _MaliitAttributeExtensionRegistryClass
58
GObjectClass parent_class;
62
maliit_attribute_extension_registry_get_type (void) G_GNUC_CONST;
64
MaliitAttributeExtensionRegistry *
65
maliit_attribute_extension_registry_get_instance (void);
68
maliit_attribute_extension_registry_add_extension (MaliitAttributeExtensionRegistry *registry,
69
MaliitAttributeExtension *extension);
72
maliit_attribute_extension_registry_remove_extension (MaliitAttributeExtensionRegistry *registry,
73
MaliitAttributeExtension *extension);
76
maliit_attribute_extension_registry_extension_changed (MaliitAttributeExtensionRegistry *registry,
77
MaliitAttributeExtension *extension,
82
maliit_attribute_extension_registry_get_extensions (MaliitAttributeExtensionRegistry *registry);
85
maliit_attribute_extension_registry_update_attribute (MaliitAttributeExtensionRegistry *registry,
88
const gchar *target_item,
89
const gchar *attribute,
94
#endif /* MALIIT_GLIB_ATTRIBUTE_EXTENSION_REGISTRY_H */