Event_ShowNotification,
Event_ShowInformation,
Event_AppListChanged,
+ Event_RegisterShortcut,
+ Event_UpdateShortcut,
Event_Max
};
int onScreenReply(const char* reply_message);
void set_event_handler(enum EventType et, handler_func f);
+ void publishSubscription(void);
void registerCallback(
void (*event_cb)(const std::string& event, struct json_object* event_contents),
int showNotification(json_object* json);
int showInformation(json_object* json);
int getRunnables(void);
-
+ int registerShortcut(const char* application_id, json_object* json);
+ int updateShortcut(const char* application_id, json_object* json);
private:
int initialize_websocket();
+ int getEventType(const char *event);
void (*onEvent)(const std::string& event, struct json_object* event_contents);
void (*onReply)(struct json_object* reply);