1
/* This file is part of Maliit framework
3
* Copyright (C) 2012 Openismus GmbH
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_SETTING_DATA_H
24
#define MALIIT_GLIB_SETTING_DATA_H
27
#include <glib-object.h>
33
MALIIT_STRING_TYPE = 1,
36
MALIIT_STRING_LIST_TYPE = 4,
37
MALIIT_INT_LIST_TYPE = 5
38
} MaliitSettingsEntryType;
41
* MALIIT_SETTING_VALUE_DOMAIN:
43
* Name of setting entry attribute which holds the list of values that
44
* can be assigned to the entry.
46
#define MALIIT_SETTING_VALUE_DOMAIN "valueDomain"
49
* MALIIT_SETTING_VALUE_DOMAIN_DESCRIPTIONS:
51
* Name of setting entry attribute which holds the descriptions for
52
* the values in MALIIT_SETTING_VALUE_DOMAIN().
54
#define MALIIT_SETTING_VALUE_DOMAIN_DESCRIPTIONS "valueDomainDescriptions"
57
* MALIIT_SETTING_VALUE_RANGE_MIN:
59
* Name of setting entry attribute which holds the minimum valid value
60
* (inclusive) for an integer property.
62
#define MALIIT_SETTING_VALUE_RANGE_MIN "valueRangeMin"
64
* MALIIT_SETTING_VALUE_RANGE_MAX:
66
* Name of setting entry attribute which holds the maximum valid value
67
* (inclusive) for an integer property.
69
#define MALIIT_SETTING_VALUE_RANGE_MAX "valueRangeMax"
72
* MALIIT_SETTING_DEFAULT_VALUE:
74
* Name of setting entry attribute which holds the default value for a setting entry.
76
#define MALIIT_SETTING_DEFAULT_VALUE "defaultValue"
78
#define MALIIT_TYPE_SETTINGS_ENTRY_TYPE maliit_settings_entry_type_get_type ()
79
GType maliit_settings_entry_type_get_type (void) G_GNUC_CONST;
82
maliit_validate_setting_value(MaliitSettingsEntryType type,
83
GHashTable *attributes,
88
#endif /* MALIIT_GLIB_SETTING_DATA_H */