foobar2000 SDK  2015-08-03
Public Member Functions | Static Public Member Functions | Private Member Functions
popup_message_v2abstract

#include <popup_message.h>

+ Inheritance diagram for popup_message_v2:

Public Member Functions

virtual void show (HWND parent, const char *msg, t_size msg_length, const char *title, t_size title_length)=0
 
void show (HWND parent, const char *msg, const char *title)
 
- 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 (HWND parent, const char *whatFailed, const char *msg)
 
static void g_complain (HWND parent, const char *whatFailed, const std::exception &e)
 
static void g_show (HWND parent, const char *msg, const char *title="Information")
 

Private Member Functions

 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (popup_message_v2)
 

Additional Inherited Members

- Public Types inherited from service_base
typedef service_base t_interface
 
- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 

Detailed Description

Since
1.1

Definition at line 38 of file popup_message.h.

Member Function Documentation

popup_message_v2::FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT ( popup_message_v2  )
private
void popup_message_v2::g_complain ( HWND  parent,
const char *  whatFailed,
const char *  msg 
)
static

Definition at line 34 of file popup_message.cpp.

34  {
35  g_show(parent, PFC_string_formatter() << whatFailed << ": " << msg);
36 }
static void g_show(HWND parent, const char *msg, const char *title="Information")
void popup_message_v2::g_complain ( HWND  parent,
const char *  whatFailed,
const std::exception &  e 
)
static

Definition at line 37 of file popup_message.cpp.

37  {
38  g_complain(parent, whatFailed, e.what());
39 }
static void g_complain(HWND parent, const char *whatFailed, const char *msg)
void popup_message_v2::g_show ( HWND  parent,
const char *  msg,
const char *  title = "Information" 
)
static

Definition at line 25 of file popup_message.cpp.

25  {
28  if (e.first( m )) {
29  m->show(parent, msg, title);
30  } else {
31  popup_message::g_show( msg, title );
32  }
33 }
bool first(service_ptr_t< t_query > &p_out)
Definition: service.h:581
static void g_show(const char *p_msg, const char *p_title, t_icon p_icon=icon_information)
Static helper function instantiating the service and activating the message dialog. See show() for description of parameters.
Definition: popup_message.h:26
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
Definition: service.h:55
virtual void popup_message_v2::show ( HWND  parent,
const char *  msg,
t_size  msg_length,
const char *  title,
t_size  title_length 
)
pure virtual
void popup_message_v2::show ( HWND  parent,
const char *  msg,
const char *  title 
)
inline

Definition at line 42 of file popup_message.h.

42 {show(parent, msg, ~0, title, ~0);}
virtual void show(HWND parent, const char *msg, t_size msg_length, const char *title, t_size title_length)=0

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