aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/plugin/pre_file_download_event.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/plugin/pre_file_download_event.rs')
-rw-r--r--crates/shirabe/src/plugin/pre_file_download_event.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/crates/shirabe/src/plugin/pre_file_download_event.rs b/crates/shirabe/src/plugin/pre_file_download_event.rs
index f6198b6..3bf6296 100644
--- a/crates/shirabe/src/plugin/pre_file_download_event.rs
+++ b/crates/shirabe/src/plugin/pre_file_download_event.rs
@@ -4,6 +4,7 @@ use indexmap::IndexMap;
use shirabe_php_shim::PhpMixed;
use crate::event_dispatcher::Event;
+use crate::event_dispatcher::EventInterface;
use crate::util::HttpDownloader;
#[derive(Debug)]
@@ -76,3 +77,25 @@ impl PreFileDownloadEvent {
self.transport_options = options;
}
}
+
+impl EventInterface for PreFileDownloadEvent {
+ fn get_name(&self) -> &str {
+ self.inner.get_name()
+ }
+
+ fn get_arguments(&self) -> &Vec<String> {
+ self.inner.get_arguments()
+ }
+
+ fn get_flags(&self) -> &IndexMap<String, PhpMixed> {
+ self.inner.get_flags()
+ }
+
+ fn is_propagation_stopped(&self) -> bool {
+ self.inner.is_propagation_stopped()
+ }
+
+ fn stop_propagation(&mut self) {
+ self.inner.stop_propagation();
+ }
+}