foobar2000 SDK  2015-08-03
preferences_page.cpp
Go to the documentation of this file.
1 #include "foobar2000.h"
2 
3 void preferences_page::get_help_url_helper(pfc::string_base & out, const char * category, const GUID & id, const char * name) {
4  out.reset();
5  out << "http://help.foobar2000.org/" << core_version_info::g_get_version_string() << "/" << category << "/" << pfc::print_guid(id) << "/" << name;
6 }
8  get_help_url_helper(p_out,"preferences",get_guid(), get_name());
9  return true;
10 }
Definition: pfc.h:71
static const char * g_get_version_string()
Definition: coreversion.h:4
virtual const char * get_name()=0
Retrieves name of the prefernces page to be displayed in preferences tree (static string)...
virtual GUID get_guid()=0
Retrieves GUID of the page.
virtual bool get_help_url(pfc::string_base &p_out)
Retrieves help URL. Without overriding it, it will redirect to foobar2000 wiki.
static void get_help_url_helper(pfc::string_base &out, const char *category, const GUID &id, const char *name)