2
* Copyright (C) 2005 Alex Murray <murray.alex@gmail.com>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program 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
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
#ifndef SENSORS_APPLET_GCONF_H
20
#define SENSORS_APPLET_GCONF_H
22
#include "sensors-applet.h"
23
#include <panel-applet-gconf.h>
25
#define IS_SETUP "setup" /* have we actually set up this instance of
26
* the applet (gets set to true after
27
* closing prefences dialog) */
28
#define FAHRENHEIT "fahrenheit" /* use fahrenheit temp scale or not
29
* (otherwise celcius) */
30
#define SHOW_LABELS "show_labels" /* show labels or not */
31
#define LABELS_INLINE "display_labels_inline" /* whether labels are
33
line as sensor readings
34
or on separate line */
36
#define SHOW_UNITS "show_units" /* display units along with sensor
38
#define NUM_SENSORS "num_sensors" /* number of sensors per group */
39
#define PATHS "paths" /* full paths to filenames */
40
#define IDS "ids" /* a list of the sensor device ids */
41
#define INTERFACES "interfaces" /* a list of the sensor device
42
* interface for each sensor */
43
#define LABELS "labels" /* user defined labels for each sensor */
44
#define ENABLES "sensor_enables" /* list of booleans corresponding to
45
* the filenames of whether a sensor
46
* is enabled or not */
47
#define ALARM_VALUES "alarm_values" /* stored as ints (1000 * double
48
* value) for accuracy, since can
49
* only do ints easily */
50
#define ALARM_TYPES "alarm_types" /* stores an int for each alarm as
51
to whether it is sounded when
52
value is greater than or less than
54
#define ALARM_ENABLES "alarm_enables" /* list of whether each sensor
55
* has its alarm enabled */
56
#define ALARM_COMMANDS "alarm_commands" /* list of commands to execute
60
#define ALARM_TIMEOUTS "alarm_timeouts" /* list of how often each
61
alarm should be sounded (in
64
#define SENSOR_TYPES "sensor_types" /* used to identify a sensor in a
67
#define MULTIPLIERS "multipliers"
68
#define OFFSETS "offsets"
69
#define TIMEOUT "timeout_delay" /* delay (in ms) between refreshes */
70
#define FONT_SIZE "font_size" /* xx-small, x-small, smalll, medium,
71
* large, x-large, xx-large */
74
gboolean sensors_applet_gconf_save_sensors(SensorsApplet *sensors_applet);
75
gboolean sensors_applet_gconf_setup_sensors(SensorsApplet *sensors_applet);
77
#endif /* SENSORS_APPLET_GCONF_H*/