~ubuntu-branches/debian/stretch/sensors-applet/stretch

« back to all changes in this revision

Viewing changes to src/sensors-applet-gconf.h

  • Committer: Bazaar Package Importer
  • Author(s): Sam Morris
  • Date: 2005-10-29 13:09:34 UTC
  • Revision ID: james.westby@ubuntu.com-20051029130934-oab5r93mzt2bvr54
Tags: upstream-1.5.2
ImportĀ upstreamĀ versionĀ 1.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2005 Alex Murray <murray.alex@gmail.com>
 
3
 *
 
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.
 
8
 *
 
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.
 
13
 *
 
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
 
17
 */
 
18
 
 
19
#ifndef SENSORS_APPLET_GCONF_H
 
20
#define SENSORS_APPLET_GCONF_H
 
21
 
 
22
#include "sensors-applet.h"
 
23
#include <panel-applet-gconf.h>
 
24
 
 
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
 
32
                                               * placed on the same
 
33
                                               line as sensor readings
 
34
                                               or on separate line */
 
35
 
 
36
#define SHOW_UNITS "show_units" /* display units along with sensor
 
37
                                   readings or not */
 
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
 
53
                                     the sensor value */
 
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
 
57
                                         * when each alarm is
 
58
                                         * activated */
 
59
 
 
60
#define ALARM_TIMEOUTS "alarm_timeouts" /* list of how often each
 
61
                                           alarm should be sounded (in
 
62
                                           seconds) */
 
63
 
 
64
#define SENSOR_TYPES "sensor_types" /* used to identify a sensor in a
 
65
                                       list */
 
66
 
 
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 */
 
72
 
 
73
 
 
74
gboolean sensors_applet_gconf_save_sensors(SensorsApplet *sensors_applet);
 
75
gboolean sensors_applet_gconf_setup_sensors(SensorsApplet *sensors_applet);
 
76
 
 
77
#endif /* SENSORS_APPLET_GCONF_H*/