344b85eb2a71d632f5477f685d452a9ca628cb9e
[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
52 struct _SimpleBrightnessApplet
53 {
54     HDStatusMenuItem hitem;
55 };
56
57 struct _SimpleBrightnessAppletClass
58 {
59     HDStatusMenuItemClass parent_class;
60 };
61
62 GType simple_brightness_applet_get_type (void);
63
64 SimpleBrightnessApplet* simple_brightness_applet_new (void);
65
66 G_END_DECLS
67
68 #endif /* SIMPLE_BRIGHTNESS_APPLET_H */
69