Skip to main content
Topic: SDK feature request: associate protocols with foobar2000 (Read 3728 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

SDK feature request: associate protocols with foobar2000

It's currently possible to declare a file type and corresponding extension and make it associatable, but I'm not aware of an equivalent for url protocols (such as lastfm:// or mms://) in the current SDK.

It's obviously possible to implement this on a per-component basis, but would be nice as part of the core as it could be integrated into the File Types preferences page (and the program associations control panel in Vista).

Thanks for considering this, however briefly...

SDK feature request: associate protocols with foobar2000

Reply #1
Request noted, I'll see what I can do about it.
Thanks for posting about it instead of trying to hack it in yourself one way or another.

SDK feature request: associate protocols with foobar2000

Reply #2
Feature implemented in foobar2000 v0.9.6.4 (exact release date not yet determined).

You can support it in your components by implementing this service:
Code: [Select]
 //! Service for registering protocol types that can be associated with foobar2000.
class input_protocol_type : public service_base {
     FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT(input_protocol_type)
public:
     //! Returns the name of the protocol, such as "ftp" or "http".
     virtual void get_protocol_name(pfc::string_base & out) = 0;
     //! Returns a human-readable description of the protocol.
     virtual void get_description(pfc::string_base & out) = 0;
};

FOOGUIDDECL const GUID input_protocol_type::class_guid = { 0x6a03c4ee, 0xf87b, 0x49d7, { 0x81, 0xdb, 0x66, 0xb, 0xe8, 0xc1, 0x0, 0x7e } };

 
SimplePortal 1.0.0 RC1 © 2008-2019