#include <notifications.h>
Public Member Functions | |
| void | add_log (std::string message) |
| std::shared_ptr< notification_model > | add_notification (const notification_data &n) |
| std::shared_ptr< notification_model > | add_notification (const notification_data &n, std::function< void()> custom_action, bool use_custom_action=true) |
| void | add_notification (std::shared_ptr< notification_model > model) |
| bool | draw (ux_window &win, int w, int h, std::string &error_message) |
| notifications_model () | |
Public Attributes | |
| output_model | output |
Private Attributes | |
| int | index = 1 |
| std::recursive_mutex | m |
| const int | MAX_SIZE = 6 |
| std::vector< std::shared_ptr< notification_model > > | pending_notifications |
| std::shared_ptr< notification_model > | selected |
Definition at line 198 of file notifications.h.
|
inline |
Definition at line 207 of file notifications.h.
|
inline |
Definition at line 209 of file notifications.h.
| std::shared_ptr< notification_model > rs2::notifications_model::add_notification | ( | const notification_data & | n | ) |
Definition at line 459 of file notifications.cpp.
| std::shared_ptr< notification_model > rs2::notifications_model::add_notification | ( | const notification_data & | n, |
| std::function< void()> | custom_action, | ||
| bool | use_custom_action = true |
||
| ) |
Definition at line 464 of file notifications.cpp.
| void rs2::notifications_model::add_notification | ( | std::shared_ptr< notification_model > | model | ) |
Definition at line 518 of file notifications.cpp.
| bool rs2::notifications_model::draw | ( | ux_window & | win, |
| int | w, | ||
| int | h, | ||
| std::string & | error_message | ||
| ) |
Definition at line 544 of file notifications.cpp.
|
private |
Definition at line 218 of file notifications.h.
|
private |
Definition at line 220 of file notifications.h.
|
private |
Definition at line 219 of file notifications.h.
| output_model rs2::notifications_model::output |
Definition at line 214 of file notifications.h.
|
private |
Definition at line 217 of file notifications.h.
|
private |
Definition at line 222 of file notifications.h.