diff options
Diffstat (limited to 'server/include/api_core_events.h')
-rw-r--r-- | server/include/api_core_events.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/server/include/api_core_events.h b/server/include/api_core_events.h index e7e0dac..072ec45 100644 --- a/server/include/api_core_events.h +++ b/server/include/api_core_events.h @@ -21,15 +21,24 @@ #ifndef API_CORE_EVENTS_H #define API_CORE_EVENTS_H +class module_base; + namespace core_events { enum download_state {download_stopped, download_running, download_completed, download_error}; +struct download_state_info +{ + int download_id; + download_state state; +}; + + class core_events { public: - virtual void download_state_changed(int download_id, download_state state); + virtual void download_state_changed(module_base *m, std::list<download_state_info> state_list); }; }; |