]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - liblightdm-gobject/lightdm/language.h
liblightdm-gobject splits UserList into its own class
[sojka/lightdm.git] / liblightdm-gobject / lightdm / language.h
1 /*
2  * Copyright (C) 2010 Robert Ancell.
3  * Author: Robert Ancell <robert.ancell@canonical.com>
4  * 
5  * This library is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU Lesser General Public License as published by the Free
7  * Software Foundation; either version 3 of the License, or (at your option) any
8  * later version. See http://www.gnu.org/copyleft/lgpl.html the full text of the
9  * license.
10  */
11
12 #ifndef _LIGHTDM_LANGUAGE_H_
13 #define _LIGHTDM_LANGUAGE_H_
14
15 #include <glib-object.h>
16
17 G_BEGIN_DECLS
18
19 #define LIGHTDM_TYPE_LANGUAGE            (lightdm_language_get_type())
20 #define LIGHTDM_LANGUAGE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIGHTDM_TYPE_LANGUAGE, LightDMLanguage));
21 #define LIGHTDM_LANGUAGE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), LIGHTDM_TYPE_LANGUAGE, LightDMLanguageClass))
22 #define LIGHTDM_IS_LANGUAGE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIGHTDM_TYPE_LANGUAGE))
23 #define LIGHTDM_IS_LANGUAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIGHTDM_TYPE_LANGUAGE))
24 #define LIGHTDM_LANGUAGE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), LIGHTDM_TYPE_LANGUAGE, LightDMLanguageClass))
25
26 typedef struct
27 {
28     GObject parent_instance;
29 } LightDMLanguage;
30
31 typedef struct
32 {
33     GObjectClass parent_class;
34 } LightDMLanguageClass;
35
36 GType lightdm_language_get_type (void);
37
38 const gchar *lightdm_language_get_code (LightDMLanguage *language);
39
40 const gchar *lightdm_language_get_name (LightDMLanguage *language);
41
42 const gchar *lightdm_language_get_territory (LightDMLanguage *language);
43
44 gboolean lightdm_language_matches (LightDMLanguage *language, const gchar *code);
45
46 G_END_DECLS
47
48 #endif /* _LIGHTDM_LANGUAGE_H_ */