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

« back to all changes in this revision

Viewing changes to maliit-glib/maliitsettingdata.h

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo
  • Date: 2013-07-23 19:47:04 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: package-import@ubuntu.com-20130723194704-0o18p2ao0x9sa1zx
Tags: upstream-0.99.0+git20130615+97e8335
ImportĀ upstreamĀ versionĀ 0.99.0+git20130615+97e8335

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 Openismus GmbH
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_SETTING_DATA_H
24
 
#define MALIIT_GLIB_SETTING_DATA_H
25
 
 
26
 
#include <glib.h>
27
 
#include <glib-object.h>
28
 
 
29
 
G_BEGIN_DECLS
30
 
 
31
 
typedef enum
32
 
{
33
 
    MALIIT_STRING_TYPE      = 1,
34
 
    MALIIT_INT_TYPE         = 2,
35
 
    MALIIT_BOOL_TYPE        = 3,
36
 
    MALIIT_STRING_LIST_TYPE = 4,
37
 
    MALIIT_INT_LIST_TYPE    = 5
38
 
} MaliitSettingsEntryType;
39
 
 
40
 
/**
41
 
 * MALIIT_SETTING_VALUE_DOMAIN:
42
 
 *
43
 
 * Name of setting entry attribute which holds the list of values that
44
 
 * can be assigned to the entry.
45
 
 */
46
 
#define MALIIT_SETTING_VALUE_DOMAIN "valueDomain"
47
 
 
48
 
/**
49
 
 * MALIIT_SETTING_VALUE_DOMAIN_DESCRIPTIONS:
50
 
 *
51
 
 * Name of setting entry attribute which holds the descriptions for
52
 
 * the values in MALIIT_SETTING_VALUE_DOMAIN().
53
 
 */
54
 
#define MALIIT_SETTING_VALUE_DOMAIN_DESCRIPTIONS "valueDomainDescriptions"
55
 
 
56
 
/**
57
 
 * MALIIT_SETTING_VALUE_RANGE_MIN:
58
 
 *
59
 
 * Name of setting entry attribute which holds the minimum valid value
60
 
 * (inclusive) for an integer property.
61
 
 */
62
 
#define MALIIT_SETTING_VALUE_RANGE_MIN "valueRangeMin"
63
 
/**
64
 
 * MALIIT_SETTING_VALUE_RANGE_MAX:
65
 
 *
66
 
 * Name of setting entry attribute which holds the maximum valid value
67
 
 * (inclusive) for an integer property.
68
 
 */
69
 
#define MALIIT_SETTING_VALUE_RANGE_MAX "valueRangeMax"
70
 
 
71
 
/**
72
 
 * MALIIT_SETTING_DEFAULT_VALUE:
73
 
 *
74
 
 * Name of setting entry attribute which holds the default value for a setting entry.
75
 
 */
76
 
#define MALIIT_SETTING_DEFAULT_VALUE "defaultValue"
77
 
 
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;
80
 
 
81
 
gboolean
82
 
maliit_validate_setting_value(MaliitSettingsEntryType type,
83
 
                              GHashTable *attributes,
84
 
                              GVariant *value);
85
 
 
86
 
G_END_DECLS
87
 
 
88
 
#endif /* MALIIT_GLIB_SETTING_DATA_H */