Localisation support
[sbrightapplet] / src / simple-brightness-applet.h
1 /*
2  * simple-brightness-applet - simple statusarea applet that allows the user to select the brightness from a range of 1-5
3  *
4  * Copyright (c) 2009 Faheem Pervez <trippin1@gmail.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *      
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *      
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301, USA.
20  *
21  */
22
23 #ifndef __SIMPLE_BRIGHTNESS_APPLET_H__
24 #define __SIMPLE_BRIGHTNESS_APPLET_H__
25
26 #include <glib.h>
27 #include <glib-object.h>
28 #include <libhildondesktop/libhildondesktop.h>
29
30 G_BEGIN_DECLS
31
32 #define SIMPLE_TYPE_BRIGHTNESS_APPLET (simple_brightness_applet_get_type ())
33
34 #define SIMPLE_BRIGHTNESS_APPLET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
35                         SIMPLE_TYPE_BRIGHTNESS_APPLET, SimpleBrightnessApplet))
36
37 #define SIMPLE_BRIGHTNESS_APPLET_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \
38                         SIMPLE_TYPE_BRIGHTNESS_APPLET, SimpleBrightnessAppletClass))
39
40 #define SIMPLE_IS_BRIGHTNESS_APPLET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
41                         SIMPLE_TYPE_BRIGHTNESS_APPLET))
42
43 #define SIMPLE_IS_BRIGHTNESS_APPLET_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
44                         SIMPLE_TYPE_BRIGHTNESS_APPLET))
45
46 #define SIMPLE_BRIGHTNESS_APPLET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
47                         SIMPLE_TYPE_BRIGHTNESS_APPLET, SimpleBrightnessAppletClass))
48
49 typedef struct _SimpleBrightnessApplet SimpleBrightnessApplet;
50 typedef struct _SimpleBrightnessAppletClass SimpleBrightnessAppletClass;
51 typedef struct _SimpleBrightnessAppletPrivate SimpleBrightnessAppletPrivate;
52
53 struct _SimpleBrightnessApplet
54 {
55         HDStatusMenuItem hitem;
56
57         SimpleBrightnessAppletPrivate *priv;
58 };
59
60 struct _SimpleBrightnessAppletClass
61 {
62         HDStatusMenuItemClass parent_class;
63 };
64
65 GType simple_brightness_applet_get_type (void);
66
67 G_END_DECLS
68
69 #endif /* __SIMPLE_BRIGHTNESS_APPLET_H__ */
70