Skip to main content

Notice

Please be aware that much of the software linked to or mentioned on this forum is niche and therefore infrequently downloaded. Lots of anti-virus scanners and so-called malware detectors like to flag infrequently downloaded software as bad until it is either downloaded enough times, or its developer actually bothers with getting each individual release allow listed by every single AV vendor. You can do many people a great favor when encountering such a "problem" example by submitting them to your AV vendor for examination. For almost everything on this forum, it is a false positive.
Topic: What happened to uSHFileOperation? (Read 3267 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

What happened to uSHFileOperation?

Hi!
I'm the author of foo_massdelete. I will try in the (near hopefully) future to port it to v0.9, but I'm really a little bit lost. For now, I have 2 questions, if anyone knows:
-What happened to uSHFileOperation and string_list_nulldelimited? Will they be included in a later SDK?
-How can I get a bitmask of the currently selected items in the visible playlist?
My knowledge of C++ is very limited btw, I'm into C# mostly...
Does anyone know of any plugin's source code that's available for v0.9?
If I can't port it, I'll eventually post the source code...

Thanks in advance!

What happened to uSHFileOperation?

Reply #1
Quote
MODS: Please move this to "Development" and delete this line, I screwed up.

Hi!
I'm the author of foo_massdelete. I will try in the (near hopefully) future to port it to v0.9

Can you open the source code when porting is done?

What happened to uSHFileOperation?

Reply #2
uSHFileOperation and string_list_nulldelimited were removed. The best idea would be to create your own helper class using array_t<TCHAR> and string_os_from_utf8 and call SHFileOperation directly.

To get a bitmask of the selected items, use this:
Code: [Select]
static_api_ptr_t<playlist_manager> pm;
t_size playlist = ...; // index of playlist, use pm->get_active_playlist() for active playlist.
bit_array_bittable mask(pm->playlist_get_item_count(playlist));
pm->playlist_get_selection_mask(playlist, mask);

In case you just want the selected items, replace the last two lines with:
Code: [Select]
metadb_handle_list items;
pm->playlist_get_selected_items(playlist, items);

I'm currently porting the component tutorial to 0.9; it should be available within the next days (hopefully tomorrow).

What happened to uSHFileOperation?

Reply #3
@foosion: Thanks very much, I'm anxiously waiting for your tutorial!

@$ergi0: I might just post the source code, if I'm not able to port it.

What happened to uSHFileOperation?

Reply #4
       I haven't quite followed the development up to v0.9, so I didn't know that File operations->Delete files is now available!! I find no reason to port it to v0.9. If anyone wants the source code, pm me to e-mail it to him.

 
SimplePortal 1.0.0 RC1 © 2008-2021