summaryrefslogtreecommitdiff
path: root/sensors-applet/sensors-applet-settings.h
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-12-16 23:31:49 +0100
committerStefano Karapetsas <[email protected]>2012-12-16 23:31:49 +0100
commitfbb7e89c4eab794cc9151e119c7ee94c9494dd7d (patch)
treec1ac3e7845d042dc74d59957e091fcf130764fec /sensors-applet/sensors-applet-settings.h
parent5a584a07fe8ea0507d4bfe5c1b98f052f0001042 (diff)
downloadmate-sensors-applet-fbb7e89c4eab794cc9151e119c7ee94c9494dd7d.tar.bz2
mate-sensors-applet-fbb7e89c4eab794cc9151e119c7ee94c9494dd7d.tar.xz
migrate to GSettings and remove MateConf usage
migrate to DBUS and remove MateComponent usage remove libmate usage and use glib instead
Diffstat (limited to 'sensors-applet/sensors-applet-settings.h')
-rw-r--r--sensors-applet/sensors-applet-settings.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/sensors-applet/sensors-applet-settings.h b/sensors-applet/sensors-applet-settings.h
new file mode 100644
index 0000000..89f6ce0
--- /dev/null
+++ b/sensors-applet/sensors-applet-settings.h
@@ -0,0 +1,56 @@
+/*
+ * Copyright (C) 2005-2009 Alex Murray <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef SENSORS_APPLET_SETTINGS_H
+#define SENSORS_APPLET_SETTINGS_H
+
+#include "sensors-applet.h"
+#include <mate-panel-applet.h>
+#include <mate-panel-applet-gsettings.h>
+
+#define FONT_SIZE "font-size"
+#define HIDE_UNITS "hide-units"
+#define DISPLAY_MODE "display-mode"
+#define LAYOUT_MODE "layout-mode"
+#define TEMPERATURE_SCALE "temperature-scale"
+#define DISPLAY_NOTIFICATIONS "display-notifications"
+#define TIMEOUT "timeout-delay"
+#define GRAPH_SIZE "graph-size"
+#define SENSORS_LIST "sensors-list"
+
+#define PATH "path"
+#define ID "id"
+#define INTERFACE "interface"
+#define LABEL "label"
+#define ENABLED "enabled"
+#define LOW_VALUE "low-value"
+#define HIGH_VALUE "high-value"
+#define ALARM_ENABLED "alarm-enabled"
+#define LOW_ALARM_COMMAND "low-alarm-command"
+#define HIGH_ALARM_COMMAND "high-alarm-command"
+#define ALARM_TIMEOUT "alarm-timeout"
+#define SENSOR_TYPE "sensor-type"
+#define MULTIPLIER "multiplier"
+#define OFFSET "offset"
+#define ICON_TYPE "icon-type"
+#define GRAPH_COLOR "graph-color"
+
+gchar* sensors_applet_settings_get_unique_id (const gchar *interface, const gchar *id, const gchar *path);
+gboolean sensors_applet_settings_save_sensors(SensorsApplet *sensors_applet);
+
+#endif /* SENSORS_APPLET_SETTINGS_H*/