How to scan database? |
This forum is for developer discussions only. If you have a problem / bug report / idea / feature request that isn't related to foobar2000 SDK, post it in an appropiate forum instead - tech support questions go to support forum, everything else goes to general forum.
All non-developer posts on this forum will be removed. Continued abuse of this forum will result in admin actions (warnings, account suspension).
![]() ![]() |
How to scan database? |
Oct 16 2008, 07:11
Post
#1
|
|
![]() Group: Members Posts: 12 Joined: 6-October 08 Member No.: 59484 |
Hi. I'm somewhat new to coding - made some C++ plugins for games (HL) a few years back. I've been studying the SDK and the sample plugins.
Sorry for the newb question but how do you scan the database? I'm trying to retrieve the rg values from all the files in the database. All I know is it involves metadb... This post has been edited by KCEII: Oct 16 2008, 07:13 |
|
|
|
Oct 16 2008, 11:06
Post
#2
|
|
![]() Group: FB2K Moderator Posts: 2359 Joined: 30-November 07 Member No.: 49158 |
library_manager::enum_items() or library_manager::get_all_items().
-------------------- Full-quoting makes you scroll past the same junk over and over.
|
|
|
|
Oct 17 2008, 02:27
Post
#3
|
|
![]() Group: Members Posts: 12 Joined: 6-October 08 Member No.: 59484 |
Thanks. One more thing:
I'm trying to show a popup box but I can't figure out the last argument, the icon. CODE static_api_ptr_t<popup_message>()->g_show(s, "Information", ?);
|
|
|
|
Oct 17 2008, 07:07
Post
#4
|
|
![]() Group: FB2K Moderator (Donating) Posts: 4224 Joined: 24-February 03 Member No.: 5153 |
The g_show method is static, so you should leave static_api_ptr_t out of this, i.e. just do popup_message::g_show(...). As for the icon parameter, look at the method signature in the SDK:
static void g_show(const char* p_msg, const char* p_title, t_icon p_icon). Hint: Follow the links to the type of p_icon. Hint 2: "Information" is such a non-descriptive title for a popup message. You didn't use "Topic" as the title of this forum thread, did you? Perhaps you can think of something better. -------------------- http://foosion.foobar2000.org/ - my components for foobar2000
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th June 2013 - 10:30 |