f7da00250d7d066477ba4284740ae8f9ca6b9034
[flashlight-appl] / src / flashlight_applet.h
1 /*
2  *  Flashlight applet (widget) for Maemo.
3  *  Copyright (C) 2009 Roman Moravcik
4  *
5  *  This program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; either version 2 of the License, or
8  *  (at your option) any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program; if not, write to the Free Software
17  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  */
19
20 #ifndef __FLASHLIGHT_APPLET_H__
21 #define __FLASHLIGHT_APPLET_H__
22
23 #include <libhildondesktop/libhildondesktop.h>
24
25 G_BEGIN_DECLS
26
27 #define TYPE_FLASHLIGHT_STATUS_PLUGIN            (flashlight_status_plugin_get_type ())
28
29 #define FLASHLIGHT_STATUS_PLUGIN(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
30                                     TYPE_FLASHLIGHT_STATUS_PLUGIN, FlashlightPlugin))
31
32 #define FLASHLIGHT_STATUS_PLUGIN_CLASS(class)    (G_TYPE_CHECK_CLASS_CAST ((class), \
33                                 TYPE_FLASHLIGHT_STATUS_PLUGIN, FlashlightPluginClass))
34
35 #define IS_FLASHLIGHT_STATUS_PLUGIN(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
36                                                     TYPE_FLASHLIGHT_STATUS_PLUGIN))
37
38 #define IS_FLASHLIGHT_STATUS_PLUGIN_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
39                                                     TYPE_FLASHLIGHT_STATUS_PLUGIN))
40
41 #define FLASHLIGHT_STATUS_PLUGIN_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
42                             TYPE_FLASHLIGHT_STATUS_PLUGIN, FlashlightPluginClass))
43
44 #define STATUS_AREA_FLASHLIGHT_ICON_SIZE 22
45
46 typedef struct _FlashlightPlugin        FlashlightPlugin;
47 typedef struct _FlashlightPluginClass   FlashlightPluginClass;
48 typedef struct _FlashlightPluginPrivate FlashlightPluginPrivate;
49
50 struct _FlashlightPlugin
51 {
52     HDStatusMenuItem parent;
53 };
54
55 struct _FlashlightPluginClass
56 {
57     HDStatusMenuItemClass parent;
58 };
59
60 GType flashlight_status_plugin_get_type (void);
61
62 G_END_DECLS
63
64 #endif