]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - liblightdm-gobject/lightdm/language.h
7f33c43cb76693d8186691f183381fad29944124
[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 2 or version 3 of the License.
8  * See http://www.gnu.org/copyleft/lgpl.html the full text of the license.
9  */
10
11 #ifndef LIGHTDM_LANGUAGE_H_
12 #define LIGHTDM_LANGUAGE_H_
13
14 #include <glib-object.h>
15
16 G_BEGIN_DECLS
17
18 #define LIGHTDM_TYPE_LANGUAGE (lightdm_language_get_type())
19
20 G_DECLARE_FINAL_TYPE (LightDMLanguage, lightdm_language, LIGHTDM, LANGUAGE, GObject)
21
22 struct _LightDMLanguageClass
23 {
24     /*< private >*/
25     GObjectClass parent_class;
26 };
27
28 GList *lightdm_get_languages (void);
29
30 LightDMLanguage *lightdm_get_language (void);
31
32 const gchar *lightdm_language_get_code (LightDMLanguage *language);
33
34 const gchar *lightdm_language_get_name (LightDMLanguage *language);
35
36 const gchar *lightdm_language_get_territory (LightDMLanguage *language);
37
38 gboolean lightdm_language_matches (LightDMLanguage *language, const gchar *code);
39
40 G_END_DECLS
41
42 #endif /* LIGHTDM_LANGUAGE_H_ */