Code Review
/
src
/
libhomescreen.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
add register/update shortcut
[src/libhomescreen.git]
/
include
/
libhomescreen.hpp
diff --git
a/include/libhomescreen.hpp
b/include/libhomescreen.hpp
index
32a9121
..
4abb8b2
100644
(file)
--- a/
include/libhomescreen.hpp
+++ b/
include/libhomescreen.hpp
@@
-51,6
+51,8
@@
public:
Event_ShowNotification,
Event_ShowInformation,
Event_AppListChanged,
Event_ShowNotification,
Event_ShowInformation,
Event_AppListChanged,
+ Event_RegisterShortcut,
+ Event_UpdateShortcut,
Event_Max
};
Event_Max
};
@@
-83,10
+85,12
@@
public:
int showNotification(json_object* json);
int showInformation(json_object* json);
int getRunnables(void);
int showNotification(json_object* json);
int showInformation(json_object* json);
int getRunnables(void);
-
+ int registerShortcut(json_object* json);
+ int updateShortcut(json_object* json);
private:
int initialize_websocket();
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);
void (*onEvent)(const std::string& event, struct json_object* event_contents);
void (*onReply)(struct json_object* reply);