Improved the images for stock increase/decrease.
[stockwidget] / lib-stock-settings.h
1 /*
2  * Stock Widget: Resource settings
3  * Jon Parr
4  */
5 #ifndef STOCK_SETTINGS_H
6 #define STOCK_SETTINGS_H
7
8 #include <gtk/gtk.h>
9
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"
18
19 /*
20  * Struct used for holding settings stored out and loaded
21  * in from configuration file.
22  */
23 typedef struct _StockPluginSettings
24 {
25         /* Current number of stock tickers selectable in the settings dialog */
26         unsigned int uiNumTickers;
27         
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.
30          */
31         char **ppszTickers;
32
33         /* Number of minutes between an automatic update, if 0 no automatic updating */
34         unsigned int uiUpdateTime;
35
36         /* Applet ID used as key for config file */
37         gchar *iD;
38         
39 } StockPluginSettings;
40
41 void
42 stock_free_settings(StockPluginSettings *psSettings);
43
44 void
45 stock_set_default_settings(StockPluginSettings *psSettings);
46
47 void
48 stock_read_settings(StockPluginSettings *psSettings);
49
50 void
51 stock_save_settings(StockPluginSettings *psSettings);
52
53 #endif/*STOCK_SETTINGS_H*/