2006-04-01 11:36:00 -08:00
|
|
|
#define D_(str) dgettext(PACKAGE, str)
|
|
|
|
|
2005-12-19 14:39:11 -08:00
|
|
|
#ifndef E_MOD_MAIN_H
|
|
|
|
#define E_MOD_MAIN_H
|
|
|
|
|
|
|
|
#define RESOLUTION_MINUTE 0
|
|
|
|
#define RESOLUTION_SECOND 1
|
|
|
|
|
2006-05-16 09:44:52 -07:00
|
|
|
typedef struct _Config Config;
|
2006-05-18 04:18:23 -07:00
|
|
|
typedef struct _Config_Item Config_Item;
|
|
|
|
|
2006-05-16 09:44:52 -07:00
|
|
|
struct _Config
|
2006-04-05 10:48:50 -07:00
|
|
|
{
|
2006-05-16 09:44:52 -07:00
|
|
|
E_Module *module;
|
|
|
|
E_Config_Dialog *config_dialog;
|
2006-04-05 10:48:50 -07:00
|
|
|
E_Menu *menu;
|
2006-05-16 09:44:52 -07:00
|
|
|
Evas_List *instances;
|
2006-05-18 04:18:23 -07:00
|
|
|
Evas_List *items;
|
|
|
|
};
|
|
|
|
|
2006-05-21 19:10:55 -07:00
|
|
|
struct _Config_Item
|
2006-05-18 04:18:23 -07:00
|
|
|
{
|
|
|
|
const char *id;
|
2006-05-16 09:44:52 -07:00
|
|
|
int resolution;
|
|
|
|
double poll_time;
|
|
|
|
int show_time;
|
|
|
|
int show_date;
|
2006-07-03 00:37:33 -07:00
|
|
|
const char *time_format;
|
|
|
|
const char *date_format;
|
2006-05-16 09:44:52 -07:00
|
|
|
};
|
2005-12-19 14:39:11 -08:00
|
|
|
|
2005-12-27 13:23:39 -08:00
|
|
|
EAPI extern E_Module_Api e_modapi;
|
2005-12-19 14:39:11 -08:00
|
|
|
|
2006-06-06 08:33:44 -07:00
|
|
|
EAPI void *e_modapi_init(E_Module *m);
|
|
|
|
EAPI int e_modapi_shutdown(E_Module *m);
|
|
|
|
EAPI int e_modapi_save(E_Module *m);
|
|
|
|
EAPI int e_modapi_about(E_Module *m);
|
2005-12-19 14:39:11 -08:00
|
|
|
|
2006-05-18 04:18:23 -07:00
|
|
|
void _config_tclock_module(Config_Item *ci);
|
2006-05-19 03:43:18 -07:00
|
|
|
void _tclock_config_updated(const char *id);
|
2006-05-16 09:44:52 -07:00
|
|
|
extern Config *tclock_config;
|
2005-12-19 14:39:11 -08:00
|
|
|
|
|
|
|
#endif
|