X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fcfg.h;h=a63bcb08faf39904b50100376151bcf1c773db87;hb=0e52be5c9e4d3bfe732f90abe7ca3cbfa32ad59c;hp=4319db99a5676375f69e7f977545231fad1196bc;hpb=9cd75dc72c567208d839e73ee6e4ecf484a08b7c;p=psensor.git diff --git a/src/cfg.h b/src/cfg.h index 4319db9..a63bcb0 100644 --- a/src/cfg.h +++ b/src/cfg.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2012 jeanfi@gmail.com + * Copyright (C) 2010-2014 jeanfi@gmail.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -19,11 +19,13 @@ #ifndef _PSENSOR_CONFIG_H_ #define _PSENSOR_CONFIG_H_ +#include + #include "bool.h" #include "color.h" enum temperature_unit { - CELCIUS, + CELSIUS, FAHRENHEIT }; @@ -72,6 +74,9 @@ struct config { int hide_on_startup; enum temperature_unit temperature_unit; + + bool slog_enabled; + int slog_interval; }; /* @@ -104,4 +109,17 @@ void config_set_sensor_name(const char *, const char *); bool config_is_appindicator_enabled(const char *); void config_set_appindicator_enabled(const char *, bool); +bool config_is_appindicator_label_enabled(const char *); +void config_set_appindicator_label_enabled(const char *, bool); + +void config_slog_enabled_notify_add(GConfClientNotifyFunc cbk, void *data); +bool is_slog_enabled(); + +int config_get_slog_interval(); + +int config_get_sensor_position(const char *); +void config_set_sensor_position(const char *, int); + +char *config_get_notif_script(); +void config_set_notif_script(const char *); #endif