Public Member Functions | Public Attributes | Private Attributes | List of all members
rs2::notifications_model Struct Reference

#include <notifications.h>

Public Member Functions

void add_log (std::string message)
std::shared_ptr< notification_modeladd_notification (const notification_data &n)
std::shared_ptr< notification_modeladd_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_modelselected

Detailed Description

Definition at line 198 of file notifications.h.

Constructor & Destructor Documentation

rs2::notifications_model::notifications_model ( )

Definition at line 207 of file notifications.h.

Member Function Documentation

void rs2::notifications_model::add_log ( std::string  message)

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.

Member Data Documentation

int rs2::notifications_model::index = 1

Definition at line 218 of file notifications.h.

std::recursive_mutex rs2::notifications_model::m

Definition at line 220 of file notifications.h.

const int rs2::notifications_model::MAX_SIZE = 6

Definition at line 219 of file notifications.h.

output_model rs2::notifications_model::output

Definition at line 214 of file notifications.h.

std::vector<std::shared_ptr<notification_model> > rs2::notifications_model::pending_notifications

Definition at line 217 of file notifications.h.

std::shared_ptr<notification_model> rs2::notifications_model::selected

Definition at line 222 of file notifications.h.

The documentation for this struct was generated from the following files:

Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:40