BlueGit

ict rusty-teams

Files

rusty-teams / crates / app / src / notify / platform / stub.rs

stub.rs

stub.rs 1.8 KiB Download Raw
1use gpui_kit::Window;
2
3use calling::ShareKind;
4
5use super::{NativeHandle, ScreenRect, ShareGeometry, TrayCommand, WorkArea};
6use crate::notify::badge::Badge;
7use crate::notify::ring_tone::Ringtone;
8
9pub fn native_handle(_window: &Window) -> Option<NativeHandle> {
10 None
11}
12
13pub fn prepare_toast_window(_handle: NativeHandle) {}
14
15pub fn set_activatable(_handle: NativeHandle, _activatable: bool) {}
16
17pub fn work_area(_handle: NativeHandle) -> Option<WorkArea> {
18 None
19}
20
21pub fn work_area_at(_x: i32, _y: i32) -> Option<WorkArea> {
22 None
23}
24
25pub fn place(_handle: NativeHandle, _x: i32, _y: i32, _width: i32, _height: i32) {}
26
27pub fn exclude_from_capture(_handle: NativeHandle) {}
28
29pub fn make_click_through(_handle: NativeHandle) {}
30
31pub fn window_minimized(_handle: NativeHandle) -> bool {
32 false
33}
34
35pub fn window_rect(_handle: NativeHandle) -> Option<ScreenRect> {
36 None
37}
38
39pub fn share_geometry(_kind: ShareKind, _id: u64) -> Option<ShareGeometry> {
40 None
41}
42
43pub fn system_quiet() -> bool {
44 false
45}
46
47pub fn restore_and_raise(_handle: NativeHandle) {}
48
49pub fn hide_window(_handle: NativeHandle) {}
50
51pub fn flash(_handle: NativeHandle) {}
52
53pub fn stop_flash(_handle: NativeHandle) {}
54
55pub fn set_badge(_handle: NativeHandle, _badge: Option<&Badge>) {}
56
57pub fn play_sound() {}
58
59pub struct RingTone;
60
61pub fn start_ring(_ringtone: Ringtone) -> Option<RingTone> {
62 None
63}
64
65pub fn start_ringback() -> Option<RingTone> {
66 None
67}
68
69pub fn play_preview(_ringtone: Ringtone) {}
70
71pub struct Tray;
72
73impl Tray {
74 pub fn new(_sound_on: bool, _do_not_disturb: bool) -> Option<Self> {
75 None
76 }
77
78 pub fn poll(&self) -> Vec<TrayCommand> {
79 Vec::new()
80 }
81
82 pub fn sync(&self, _sound_on: bool, _do_not_disturb: bool, _mention: bool) {}
83}
84
85pub fn animations_enabled() -> bool {
86 true
87}