I received this request for foo_uie_albumart, and I'm willing to oblige, but I can't find any information about this notification callback in playlist tree. I assume that I'll need to add something to album art panel's code to handle the notification, but again, I need to know what to handle. Thanks.
Cool.
I haven't tested this exhaustively, but I believe it should work. If you do find any problems I will fix them quickly.
You'll have to implement a node_select_callback, shown below, and handle the on_node_select function. The pointer will be to a callback_node class item, defined below. get_entries will get all the entries in the node as a list, and they will be in the order they are in the tree but flattened into a list.
If you have any suggestions on how to make this more useful, please let me know.
Thanks.
class callback_node
{
public:
virtual bool get_entries( pfc::list_base_t<metadb_handle_ptr> & list ) const = 0;
virtual bool is_leaf() const = 0;
virtual bool is_folder() const = 0;
virtual bool is_query() const = 0;
virtual int get_entry_count() const = 0;
virtual void get_name( pfc::string_base & out ) const = 0;
};
class NOVTABLE node_select_callback : public service_base
{
public:
virtual void on_node_select( const callback_node * node ) = 0;
FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT(node_select_callback);
};
const GUID node_select_callback::class_guid =
{ 0x9c2ae3c3, 0xdc04, 0x4042, { 0xad, 0xf3, 0x88, 0x84, 0x11, 0x7b, 0x49, 0x55 } };