#[cfg(feature = "zbus")]
use crate::{
error::AtspiError,
events::{MessageConversion, MessageConversionExt},
};
use crate::{events::BusProperties, EventProperties};
use zbus_names::UniqueName;
use zvariant::ObjectPath;
#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize, Eq, Hash, Default)]
pub struct LoadCompleteEvent {
pub item: crate::events::ObjectRef,
}
#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize, Eq, Hash, Default)]
pub struct ReloadEvent {
pub item: crate::events::ObjectRef,
}
#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize, Eq, Hash, Default)]
pub struct LoadStoppedEvent {
pub item: crate::events::ObjectRef,
}
#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize, Eq, Hash, Default)]
pub struct ContentChangedEvent {
pub item: crate::events::ObjectRef,
}
#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize, Eq, Hash, Default)]
pub struct AttributesChangedEvent {
pub item: crate::events::ObjectRef,
}
#[derive(Debug, PartialEq, Clone, serde::Serialize, serde::Deserialize, Eq, Hash, Default)]
pub struct PageChangedEvent {
pub item: crate::events::ObjectRef,
}
impl BusProperties for LoadCompleteEvent {
const DBUS_MEMBER: &'static str = "LoadComplete";
const DBUS_INTERFACE: &'static str = "org.a11y.atspi.Event.Document";
const MATCH_RULE_STRING: &'static str =
"type='signal',interface='org.a11y.atspi.Event.Document',member='LoadComplete'";
const REGISTRY_EVENT_STRING: &'static str = "Document:";
}
impl BusProperties for ReloadEvent {
const DBUS_MEMBER: &'static str = "Reload";
const DBUS_INTERFACE: &'static str = "org.a11y.atspi.Event.Document";
const MATCH_RULE_STRING: &'static str =
"type='signal',interface='org.a11y.atspi.Event.Document',member='Reload'";
const REGISTRY_EVENT_STRING: &'static str = "Document:";
}
impl BusProperties for LoadStoppedEvent {
const DBUS_MEMBER: &'static str = "LoadStopped";
const DBUS_INTERFACE: &'static str = "org.a11y.atspi.Event.Document";
const MATCH_RULE_STRING: &'static str =
"type='signal',interface='org.a11y.atspi.Event.Document',member='LoadStopped'";
const REGISTRY_EVENT_STRING: &'static str = "Document:";
}
impl BusProperties for ContentChangedEvent {
const DBUS_MEMBER: &'static str = "ContentChanged";
const DBUS_INTERFACE: &'static str = "org.a11y.atspi.Event.Document";
const MATCH_RULE_STRING: &'static str =
"type='signal',interface='org.a11y.atspi.Event.Document',member='ContentChanged'";
const REGISTRY_EVENT_STRING: &'static str = "Document:";
}
impl BusProperties for AttributesChangedEvent {
const DBUS_MEMBER: &'static str = "AttributesChanged";
const DBUS_INTERFACE: &'static str = "org.a11y.atspi.Event.Document";
const MATCH_RULE_STRING: &'static str =
"type='signal',interface='org.a11y.atspi.Event.Document',member='AttributesChanged'";
const REGISTRY_EVENT_STRING: &'static str = "Document:";
}
impl BusProperties for PageChangedEvent {
const DBUS_MEMBER: &'static str = "PageChanged";
const DBUS_INTERFACE: &'static str = "org.a11y.atspi.Event.Document";
const MATCH_RULE_STRING: &'static str =
"type='signal',interface='org.a11y.atspi.Event.Document',member='PageChanged'";
const REGISTRY_EVENT_STRING: &'static str = "Document:";
}
event_test_cases!(LoadCompleteEvent);
impl_to_dbus_message!(LoadCompleteEvent);
impl_from_dbus_message!(LoadCompleteEvent);
impl_event_properties!(LoadCompleteEvent);
impl_from_object_ref!(LoadCompleteEvent);
event_test_cases!(ReloadEvent);
impl_to_dbus_message!(ReloadEvent);
impl_from_dbus_message!(ReloadEvent);
impl_event_properties!(ReloadEvent);
impl_from_object_ref!(ReloadEvent);
event_test_cases!(LoadStoppedEvent);
impl_to_dbus_message!(LoadStoppedEvent);
impl_from_dbus_message!(LoadStoppedEvent);
impl_event_properties!(LoadStoppedEvent);
impl_from_object_ref!(LoadStoppedEvent);
event_test_cases!(ContentChangedEvent);
impl_to_dbus_message!(ContentChangedEvent);
impl_from_dbus_message!(ContentChangedEvent);
impl_event_properties!(ContentChangedEvent);
impl_from_object_ref!(ContentChangedEvent);
event_test_cases!(AttributesChangedEvent);
impl_to_dbus_message!(AttributesChangedEvent);
impl_from_dbus_message!(AttributesChangedEvent);
impl_event_properties!(AttributesChangedEvent);
impl_from_object_ref!(AttributesChangedEvent);
event_test_cases!(PageChangedEvent);
impl_to_dbus_message!(PageChangedEvent);
impl_from_dbus_message!(PageChangedEvent);
impl_event_properties!(PageChangedEvent);
impl_from_object_ref!(PageChangedEvent);