1 /*
2  * Copyright (C) 2014 Michal Ratajsky <michal.ratajsky@gmail.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the licence, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef MATEMIXER_SWITCH_OPTION_H
19 #define MATEMIXER_SWITCH_OPTION_H
20 
21 #include <glib.h>
22 #include <glib-object.h>
23 
24 #include <libmatemixer/matemixer-types.h>
25 
26 G_BEGIN_DECLS
27 
28 #define MATE_MIXER_TYPE_SWITCH_OPTION           \
29         (mate_mixer_switch_option_get_type ())
30 #define MATE_MIXER_SWITCH_OPTION(o)             \
31         (G_TYPE_CHECK_INSTANCE_CAST ((o), MATE_MIXER_TYPE_SWITCH_OPTION, MateMixerSwitchOption))
32 #define MATE_MIXER_IS_SWITCH_OPTION(o)          \
33         (G_TYPE_CHECK_INSTANCE_TYPE ((o), MATE_MIXER_TYPE_SWITCH_OPTION))
34 #define MATE_MIXER_SWITCH_OPTION_CLASS(k)       \
35         (G_TYPE_CHECK_CLASS_CAST ((k), MATE_MIXER_TYPE_SWITCH_OPTION, MateMixerSwitchOptionClass))
36 #define MATE_MIXER_IS_SWITCH_OPTION_CLASS(k)    \
37         (G_TYPE_CHECK_CLASS_TYPE ((k), MATE_MIXER_TYPE_SWITCH_OPTION))
38 #define MATE_MIXER_SWITCH_OPTION_GET_CLASS(o)   \
39         (G_TYPE_INSTANCE_GET_CLASS ((o), MATE_MIXER_TYPE_SWITCH_OPTION, MateMixerSwitchOptionClass))
40 
41 typedef struct _MateMixerSwitchOptionClass    MateMixerSwitchOptionClass;
42 typedef struct _MateMixerSwitchOptionPrivate  MateMixerSwitchOptionPrivate;
43 
44 /**
45  * MateMixerSwitchOption:
46  *
47  * The #MateMixerSwitchOption structure contains only private data and should only
48  * be accessed using the provided API.
49  */
50 struct _MateMixerSwitchOption
51 {
52     GObject parent;
53 
54     /*< private >*/
55     MateMixerSwitchOptionPrivate *priv;
56 };
57 
58 /**
59  * MateMixerSwitchOptionClass:
60  * @parent_class: The parent class.
61  *
62  * The class structure for #MateMixerSwitchOption.
63  */
64 struct _MateMixerSwitchOptionClass
65 {
66     GObjectClass parent_class;
67 };
68 
69 GType        mate_mixer_switch_option_get_type  (void) G_GNUC_CONST;
70 
71 const gchar *mate_mixer_switch_option_get_name  (MateMixerSwitchOption *option);
72 const gchar *mate_mixer_switch_option_get_label (MateMixerSwitchOption *option);
73 const gchar *mate_mixer_switch_option_get_icon  (MateMixerSwitchOption *option);
74 
75 G_END_DECLS
76 
77 #endif /* MATEMIXER_SWITCH_OPTION_H */
78