1mod handle_token;
2pub(crate) mod request;
3mod session;
4#[cfg_attr(docsrs, doc(cfg(feature = "backend")))]
5#[cfg(feature = "backend")]
6pub use self::handle_token::HandleToken;
7#[cfg(not(feature = "backend"))]
8pub(crate) use self::handle_token::HandleToken;
9pub use self::{
10 request::{Request, Response, ResponseError, ResponseType},
11 session::{Session, SessionPortal},
12};
13mod color;
14pub use color::Color;
15mod icon;
16pub use icon::Icon;
17
18pub mod account;
19pub mod background;
20pub mod camera;
21pub mod clipboard;
22#[deprecated = "The portal does not serve any purpose as nothing really can make use of it as is."]
23pub mod device;
24pub mod dynamic_launcher;
25pub mod email;
26pub mod file_chooser;
28pub mod game_mode;
30pub mod global_shortcuts;
32pub mod inhibit;
34pub mod input_capture;
36pub mod location;
38pub mod memory_monitor;
40pub mod network_monitor;
42pub mod notification;
44pub mod open_uri;
45pub mod power_profile_monitor;
47pub mod print;
49pub mod proxy_resolver;
51pub mod realtime;
52pub mod remote_desktop;
54pub mod screencast;
55pub mod screenshot;
56pub mod secret;
59pub mod settings;
61pub mod trash;
62pub mod usb;
63pub mod wallpaper;
64
65#[cfg_attr(feature = "glib", derive(glib::Enum))]
66#[cfg_attr(feature = "glib", enum_type(name = "AshpdPersistMode"))]
67#[derive(
68 Default, serde_repr::Serialize_repr, PartialEq, Eq, Debug, Copy, Clone, zbus::zvariant::Type,
69)]
70#[doc(alias = "XdpPersistMode")]
71#[repr(u32)]
72pub enum PersistMode {
74 #[doc(alias = "XDP_PERSIST_MODE_NONE")]
75 #[default]
76 DoNot = 0,
78 #[doc(alias = "XDP_PERSIST_MODE_TRANSIENT")]
79 Application = 1,
81 #[doc(alias = "XDP_PERSIST_MODE_PERSISTENT")]
82 ExplicitlyRevoked = 2,
84}