You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

69 lines
1.5 KiB

#include "e_mod_main.h"
typedef enum {
CATEGORY_UNKNOWN = 0,
CATEGORY_SYSTEM_SERVICES,
CATEGORY_LAST
} Category;
typedef enum {
STATUS_UNKNOWN = 0,
STATUS_ACTIVE,
STATUS_PASSIVE,
STATUS_ATTENTION,
STATUS_LAST
} Tray_Status;
struct _Instance_Notifier_Host
{
EINA_INLIST;
Instance *inst;
const Evas_Object *box;
const Edje_Object *edje;
Eina_Inlist *ii_list;
E_Gadcon *gadcon;
};
struct _Context_Notifier_Host
{
Eldbus_Connection *conn;
Eldbus_Proxy *watcher;
Eina_Inlist *item_list;
Eina_Inlist *instances;
Eina_List *pending;
};
struct _Notifier_Item
{
EINA_INLIST;
const char *bus_id;
const char *path;
Eldbus_Proxy *proxy;
Category category;
Tray_Status status;
E_DBusMenu_Item *dbus_item;
const char *id;
const char *title;
const char *icon_name;
const char *attention_icon_name;
const char *icon_path;
const char *menu_path;
E_DBusMenu_Ctx *menu_data;
Eina_List *signals;
uint32_t *imgdata;
int imgw, imgh;
uint32_t *attnimgdata;
int attnimgw, attnimgh;
Eina_List *icons; //list of icons which gets updated
};
void _hack_get_me_the_correct_min_size(Edje_Object *obj);
void systray_notifier_update_menu(void *data, E_DBusMenu_Item *new_root_item);
void systray_notifier_item_update(Notifier_Item *item);
void systray_notifier_item_free(Notifier_Item *item);
void systray_notifier_item_new(Notifier_Item *item);
void systray_notifier_dbus_init(Context_Notifier_Host *ctx);
void systray_notifier_dbus_shutdown(Context_Notifier_Host *ctx);