ui_drop_item_callback Class Reference

#include <ui.h>

Inheritance diagram for ui_drop_item_callback:

service_base

List of all members.

Public Types

typedef ui_drop_item_callback t_interface_entrypoint
typedef ui_drop_item_callback t_interface
typedef service_base t_interface_parent

Public Member Functions

virtual bool on_drop (interface IDataObject *pDataObject)=0
 Called when an object was dropped; returns true if the object was processed and false if not.
virtual bool is_accepted_type (interface IDataObject *pDataObject, DWORD *p_effect)=0

Static Public Member Functions

static bool g_on_drop (interface IDataObject *pDataObject)
 Static helper, calls all existing implementations appropriately. See on_drop().
static bool g_is_accepted_type (interface IDataObject *pDataObject, DWORD *p_effect)
 Static helper, calls all existing implementations appropriately. See is_accepted_type().

Static Public Attributes

static const GUID class_guid


Detailed Description

Service called from the UI when some object is dropped into the UI. Usable for modifying drag&drop behaviors such as adding custom handlers for object types other than supported media files.
Implement where needed; use ui_drop_item_callback_factory_t<> template to register, e.g. static ui_drop_item_callback_factory_t<myclass> g_myclass_factory.

Member Typedef Documentation

Reimplemented from service_base.


Member Function Documentation

virtual bool ui_drop_item_callback::on_drop ( interface IDataObject *  pDataObject  )  [pure virtual]

Called when an object was dropped; returns true if the object was processed and false if not.

virtual bool ui_drop_item_callback::is_accepted_type ( interface IDataObject *  pDataObject,
DWORD *  p_effect 
) [pure virtual]

Tests whether specified object type is supported by this ui_drop_item_callback implementation. Returns true and sets p_effect when it's supported; returns false otherwise.
See IDropTarget::DragEnter() documentation for more information about p_effect values.

static bool ui_drop_item_callback::g_on_drop ( interface IDataObject *  pDataObject  )  [static]

Static helper, calls all existing implementations appropriately. See on_drop().

static bool ui_drop_item_callback::g_is_accepted_type ( interface IDataObject *  pDataObject,
DWORD *  p_effect 
) [static]

Static helper, calls all existing implementations appropriately. See is_accepted_type().


Member Data Documentation

const GUID ui_drop_item_callback::class_guid [static]

Initial value:

 
{ 0x52bd7a17, 0x540c, 0x4a97, { 0xb8, 0x12, 0x72, 0xbc, 0x84, 0xec, 0x4f, 0xf5 } }


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

Generated on Fri Apr 18 13:56:58 2008 for foobar2000 SDK by  doxygen 1.5.5