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 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
12 #ifndef _LIGHTDM_LANGUAGE_H_
13 #define _LIGHTDM_LANGUAGE_H_
15 #include <glib-object.h>
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))
28 GObject parent_instance;
33 GObjectClass parent_class;
34 } LightDMLanguageClass;
36 GType lightdm_language_get_type (void);
38 const gchar *lightdm_language_get_code (LightDMLanguage *language);
40 const gchar *lightdm_language_get_name (LightDMLanguage *language);
42 const gchar *lightdm_language_get_territory (LightDMLanguage *language);
44 gboolean lightdm_language_matches (LightDMLanguage *language, const gchar *code);
48 #endif /* _LIGHTDM_LANGUAGE_H_ */