foobar2000 SDK  2015-08-03
Public Member Functions | Static Public Member Functions
app_close_blockerabstract

#include <app_close_blocker.h>

+ Inheritance diagram for app_close_blocker:

Public Member Functions

 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT (app_close_blocker)
 
virtual bool query ()=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 bool g_query ()
 

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

(DEPRECATED) This service is used to signal whether something is currently preventing main window from being closed and app from being shut down.

Definition at line 2 of file app_close_blocker.h.

Member Function Documentation

app_close_blocker::FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT ( app_close_blocker  )
bool app_close_blocker::g_query ( )
static

Static helper function, checks whether any of registered app_close_blocker services is currently preventing main window from being closed and app from being shut down.

Definition at line 3 of file app_close_blocker.cpp.

4 {
7  while(e.next(ptr))
8  {
9  if (!ptr->query()) return false;
10  }
11  return true;
12 }
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
Definition: service.h:55
bool next(service_ptr_t< t_query > &p_out)
Definition: service.h:587
virtual bool app_close_blocker::query ( )
pure virtual

Checks whether this service is currently preventing main window from being closed and app from being shut down.


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