~timo-jyrinki/ubuntu/trusty/maliit-framework/fix_qt52

« back to all changes in this revision

Viewing changes to maliit-glib/maliitattributeextensionregistry.h

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo, Sergio Schvezov, Ricardo Salveti de Araujo
  • Date: 2013-07-23 19:47:04 UTC
  • mfrom: (1.1.2) (1.2.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130723194704-1lsy1kmlda069cea
Tags: 0.99.0+git20130615+97e8335-0ubuntu1
[ Sergio Schvezov ]
* New build from HEAD 97e8335.
* Packaging import from lp:phablet-extras/maliit-framework.

[ Ricardo Salveti de Araujo ]
* debian/control: adding vcs and fixing dependencies
* General package cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* This file is part of Maliit framework
2
 
 *
3
 
 * Copyright (C) 2012 One Laptop per Child Association
4
 
 *
5
 
 * Contact: maliit-discuss@lists.maliit.org
6
 
 *
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.
11
 
 *
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.
16
 
 *
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.
21
 
 */
22
 
 
23
 
#ifndef MALIIT_GLIB_ATTRIBUTE_EXTENSION_REGISTRY_H
24
 
#define MALIIT_GLIB_ATTRIBUTE_EXTENSION_REGISTRY_H
25
 
 
26
 
#include <glib.h>
27
 
#include <glib-object.h>
28
 
 
29
 
#include "maliitattributeextension.h"
30
 
 
31
 
G_BEGIN_DECLS
32
 
 
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))
39
 
 
40
 
typedef struct _MaliitAttributeExtensionRegistry MaliitAttributeExtensionRegistry;
41
 
typedef struct _MaliitAttributeExtensionRegistryClass MaliitAttributeExtensionRegistryClass;
42
 
typedef struct _MaliitAttributeExtensionRegistryPrivate MaliitAttributeExtensionRegistryPrivate;
43
 
 
44
 
struct _MaliitAttributeExtensionRegistry
45
 
{
46
 
    GObject parent;
47
 
 
48
 
    /*< private >*/
49
 
    MaliitAttributeExtensionRegistryPrivate *priv;
50
 
};
51
 
 
52
 
/**
53
 
 * MaliitAttributeExtensionRegistryClass:
54
 
 * @parent_class: The parent class.
55
 
 */
56
 
struct _MaliitAttributeExtensionRegistryClass
57
 
{
58
 
    GObjectClass parent_class;
59
 
};
60
 
 
61
 
GType
62
 
maliit_attribute_extension_registry_get_type (void) G_GNUC_CONST;
63
 
 
64
 
MaliitAttributeExtensionRegistry *
65
 
maliit_attribute_extension_registry_get_instance (void);
66
 
 
67
 
void
68
 
maliit_attribute_extension_registry_add_extension (MaliitAttributeExtensionRegistry *registry,
69
 
                                                   MaliitAttributeExtension *extension);
70
 
 
71
 
void
72
 
maliit_attribute_extension_registry_remove_extension (MaliitAttributeExtensionRegistry *registry,
73
 
                                                      MaliitAttributeExtension *extension);
74
 
 
75
 
void
76
 
maliit_attribute_extension_registry_extension_changed (MaliitAttributeExtensionRegistry *registry,
77
 
                                                       MaliitAttributeExtension *extension,
78
 
                                                       const gchar *key,
79
 
                                                       GVariant *value);
80
 
 
81
 
GList *
82
 
maliit_attribute_extension_registry_get_extensions (MaliitAttributeExtensionRegistry *registry);
83
 
 
84
 
void
85
 
maliit_attribute_extension_registry_update_attribute (MaliitAttributeExtensionRegistry *registry,
86
 
                                                      gint id,
87
 
                                                      const gchar *target,
88
 
                                                      const gchar *target_item,
89
 
                                                      const gchar *attribute,
90
 
                                                      GVariant *value);
91
 
 
92
 
G_END_DECLS
93
 
 
94
 
#endif /* MALIIT_GLIB_ATTRIBUTE_EXTENSION_REGISTRY_H */