foobar2000 SDK  2015-08-03
ui.cpp
Go to the documentation of this file.
1 #include "foobar2000.h"
2 
3 bool ui_drop_item_callback::g_on_drop(interface IDataObject * pDataObject)
4 {
7  if (e.first(ptr)) do {
8  if (ptr->on_drop(pDataObject)) return true;
9  } while(e.next(ptr));
10  return false;
11 }
12 
13 bool ui_drop_item_callback::g_is_accepted_type(interface IDataObject * pDataObject, DWORD * p_effect)
14 {
17  if (e.first(ptr)) do {
18  if (ptr->is_accepted_type(pDataObject,p_effect)) return true;
19  } while(e.next(ptr));
20  return false;
21 }
22 
24 {
27  if (e.first(ptr)) do {
28  if (ptr->get_guid() == p_guid)
29  {
30  p_out = ptr;
31  return true;
32  }
33  } while(e.next(ptr));
34  return false;
35 }
Definition: pfc.h:71
bool first(service_ptr_t< t_query > &p_out)
Definition: service.h:581
static bool g_is_accepted_type(interface IDataObject *pDataObject, DWORD *p_effect)
Static helper, calls all existing implementations appropriately. See is_accepted_type().
Definition: ui.cpp:13
static bool g_on_drop(interface IDataObject *pDataObject)
Static helper, calls all existing implementations appropriately. See on_drop().
Definition: ui.cpp:3
static bool g_find(service_ptr_t< user_interface > &p_out, const GUID &p_guid)
Definition: ui.cpp:23
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