IPB

Welcome Guest ( Log In | Register )

> foobar2000 Development Forum Rules

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).

 
Reply to this topicStart new topic
How to scan database?
KCEII
post 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
Go to the top of the page
+Quote Post
Yirkha
post 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.
Go to the top of the page
+Quote Post
KCEII
post 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", ?);
Go to the top of the page
+Quote Post
foosion
post Oct 17 2008, 07:07
Post #4





Group: FB2K Moderator (Donating)
Posts: 4409
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
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th July 2014 - 04:51