2 * Copyright (C) 2010 Robert Ancell.
3 * Author: Robert Ancell <robert.ancell@canonical.com>
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.
11 #ifndef LIGHTDM_LANGUAGE_H_
12 #define LIGHTDM_LANGUAGE_H_
14 #include <glib-object.h>
18 #define LIGHTDM_TYPE_LANGUAGE (lightdm_language_get_type())
20 G_DECLARE_FINAL_TYPE (LightDMLanguage, lightdm_language, LIGHTDM, LANGUAGE, GObject)
22 struct _LightDMLanguageClass
25 GObjectClass parent_class;
28 GList *lightdm_get_languages (void);
30 LightDMLanguage *lightdm_get_language (void);
32 const gchar *lightdm_language_get_code (LightDMLanguage *language);
34 const gchar *lightdm_language_get_name (LightDMLanguage *language);
36 const gchar *lightdm_language_get_territory (LightDMLanguage *language);
38 gboolean lightdm_language_matches (LightDMLanguage *language, const gchar *code);
42 #endif /* LIGHTDM_LANGUAGE_H_ */