2 * Stock Widget: Resource settings
5 #ifndef STOCK_SETTINGS_H
6 #define STOCK_SETTINGS_H
10 /* Configuration file entries */
11 #define STOCK_PLUGIN_APPLET_ID "stockwidget"
12 #define STOCK_PLUGIN_TICKERS "tickers"
13 #define STOCK_PLUGIN_UPDATE_TIME "updatetime"
14 #define STOCK_PLUGIN_SETTINGS_FILE "/stockwidget.config"
15 #define STOCK_PLUGIN_DEFAULT_TICKER "IMG.L"
18 * Struct used for holding settings stored out and loaded
19 * in from configuration file.
21 typedef struct _StockPluginSettings
23 /* Current number of stock tickers selectable in the settings dialog */
24 unsigned int uiNumTickers;
26 /* Current stock ticker symbols selectable in the settings dialog.
27 The chosen one is always the first to make loading/saving chosen ticker easy as.
31 /* Number of minutes between an automatic update, if 0 no automatic updating */
32 unsigned int uiUpdateTime;
34 /* Applet ID used as key for config file */
37 } StockPluginSettings;
40 stock_free_settings(StockPluginSettings *psSettings);
43 stock_set_default_settings(StockPluginSettings *psSettings);
46 stock_read_settings(StockPluginSettings *psSettings);
49 stock_save_settings(StockPluginSettings *psSettings);
51 #endif/*STOCK_SETTINGS_H*/