foobar2000 SDK
2015-08-03
|
#include <popup_message.h>
Public Types | |
enum | t_icon { icon_information, icon_error, icon_query } |
Public Types inherited from service_base | |
typedef service_base | t_interface |
Public Member Functions | |
FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (popup_message) | |
void | show (const char *p_msg, const char *p_title, t_icon p_icon=icon_information) |
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 |
Public Member Functions inherited from service_base | |
template<typename outPtr_t > | |
bool | cast (outPtr_t &outPtr) |
virtual int | service_add_ref ()=0 throw () |
virtual bool | service_query (service_ptr_t< service_base > &p_out, const GUID &p_guid) |
template<class T > | |
bool | service_query_t (service_ptr_t< T > &p_out) |
virtual int | service_release ()=0 throw () |
Static Public Member Functions | |
static void | g_complain (const char *what) |
static void | g_complain (const char *p_whatFailed, const std::exception &p_exception) |
static void | g_complain (const char *p_whatFailed, const char *msg) |
static void | g_show (const char *p_msg, const char *p_title, t_icon p_icon=icon_information) |
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) |
Additional Inherited Members | |
Protected Member Functions inherited from service_base | |
service_base () | |
~service_base () | |
This interface allows you to show generic nonmodal noninteractive dialog with a text message. This should be used instead of MessageBox where possible.
Usage: use popup_message::g_show / popup_message::g_show_ex static helpers, or static_api_ptr_t<popup_message>.
Note that all strings are UTF-8.
Definition at line 6 of file popup_message.h.
Enumerator | |
---|---|
icon_information | |
icon_error | |
icon_query |
Definition at line 8 of file popup_message.h.
popup_message::FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT | ( | popup_message | ) |
|
static |
Definition at line 14 of file popup_message.cpp.
|
static |
Definition at line 18 of file popup_message.cpp.
|
static |
Definition at line 21 of file popup_message.cpp.
|
inlinestatic |
Static helper function instantiating the service and activating the message dialog. See show() for description of parameters.
Definition at line 26 of file popup_message.h.
|
static |
Static helper function instantiating the service and activating the message dialog. See show_ex() for description of parameters.
Definition at line 3 of file popup_message.cpp.
|
inline |
Activates the popup dialog; returns immediately (the dialog remains visible); helper function built around show_ex(), takes null terminated strings with no length limit parameters.
p_msg | Message to show (UTF-8 encoded string). |
p_title | Title of dialog to show (UTF-8 encoded string). |
p_icon | Icon of the dialog - can be set to icon_information, icon_error or icon_query. |
Definition at line 21 of file popup_message.h.
|
pure virtual |
Activates the popup dialog; returns immediately (the dialog remains visible).
p_msg | Message to show (UTF-8 encoded string). |
p_msg_length | Length limit of message string to show, in bytes (actual string may be shorter if null terminator is encountered before). Set this to infinite to use plain null-terminated strings. |
p_title | Title of dialog to show (UTF-8 encoded string). |
p_title_length | Length limit of the title string, in bytes (actual string may be shorter if null terminator is encountered before). Set this to infinite to use plain null-terminated strings. |
p_icon | Icon of the dialog - can be set to icon_information, icon_error or icon_query. |