-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathnotifications_stub.cpp
More file actions
46 lines (33 loc) · 889 Bytes
/
Copy pathnotifications_stub.cpp
File metadata and controls
46 lines (33 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include "notifications_backend.hpp"
#if (!defined(_WIN32) && !defined(__APPLE__)) || \
defined(ACECODE_NOTIFICATION_BACKEND_STUB)
namespace acecode::desktop::notification_backend {
bool initialize(const NotificationInitOptions& /*options*/) {
notification_detail::publish_authorization_state({
NotificationAuthorizationStatus::Unavailable, false, false});
return false;
}
bool show(const NotifyPayload& /*payload*/) {
return false;
}
void shutdown() {}
bool refresh_authorization() {
return false;
}
bool request_authorization() {
return false;
}
bool open_settings() {
return false;
}
void* capture_tui_window() {
return nullptr;
}
bool window_is_foreground(void* /*native_window*/) {
return false;
}
bool activate_window(void* /*native_window*/) {
return false;
}
} // namespace acecode::desktop::notification_backend
#endif