8 enum t_icon {icon_information, icon_error, icon_query};
15 virtual void show_ex(
const char * p_msg,
unsigned p_msg_length,
const char * p_title,
unsigned p_title_length,
t_icon p_icon = icon_information) = 0;
21 inline void show(
const char * p_msg,
const char * p_title,
t_icon p_icon = icon_information) {show_ex(p_msg,~0,p_title,~0,p_icon);}
24 static void g_show_ex(
const char * p_msg,
unsigned p_msg_length,
const char * p_title,
unsigned p_title_length,
t_icon p_icon = icon_information);
26 static inline void g_show(
const char * p_msg,
const char * p_title,
t_icon p_icon = icon_information) {g_show_ex(p_msg,~0,p_title,~0,p_icon);}
28 static void g_complain(
const char * what);
29 static void g_complain(
const char * p_whatFailed,
const std::exception & p_exception);
30 static void g_complain(
const char * p_whatFailed,
const char * msg);
35 #define EXCEPTION_TO_POPUP_MESSAGE(CODE,LABEL) try { CODE; } catch(std::exception const & e) {popup_message::g_complain(LABEL,e);} 41 virtual void show(HWND parent,
const char * msg,
t_size msg_length,
const char * title,
t_size title_length) = 0;
42 void show(HWND parent,
const char * msg,
const char * title) {
show(parent, msg, ~0, title, ~0);}
44 static void g_show(HWND parent,
const char * msg,
const char * title =
"Information");
45 static void g_complain(HWND parent,
const char * whatFailed,
const char * msg);
46 static void g_complain(HWND parent,
const char * whatFailed,
const std::exception & e);
Base class for all service classes. Provides interfaces for reference counter and querying for differ...