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"
16 #define STOCK_PLUGIN_RESOURCE_UP_ARROW "/etc/hildon/theme/images/StockPluginIncrease.png"
17 #define STOCK_PLUGIN_RESOURCE_DOWN_ARROW "/etc/hildon/theme/images/StockPluginDecrease.png"
20 * Struct used for holding settings stored out and loaded
21 * in from configuration file.
23 typedef struct _StockPluginSettings
25 /* Current number of stock tickers selectable in the settings dialog */
26 unsigned int uiNumTickers;
28 /* Current stock ticker symbols selectable in the settings dialog.
29 The chosen one is always the first to make loading/saving chosen ticker easy as.
33 /* Number of minutes between an automatic update, if 0 no automatic updating */
34 unsigned int uiUpdateTime;
36 /* Applet ID used as key for config file */
39 } StockPluginSettings;
42 stock_free_settings(StockPluginSettings *psSettings);
45 stock_set_default_settings(StockPluginSettings *psSettings);
48 stock_read_settings(StockPluginSettings *psSettings);
51 stock_save_settings(StockPluginSettings *psSettings);
53 #endif/*STOCK_SETTINGS_H*/