[openbeos] Re: openbeos Digest V6 #253

  • From: "Ryan Leavengood" <leavengood@xxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Wed, 20 Dec 2006 13:51:51 -0800 (PST)

François Revol wrote:
> 
> Something else to consider: moving files to trash in Tracker creates 
> a 
> task like all file transfers, that is pausable and cancellable.
> Not doing this form inside Tracker would remove the "feature", 
> appreciable when trashing 10000 files.
> Plus emptying the trash is also done by Tracker, also with a task.

Exactly.

> Now of course using a BEntry::MoveToTrash() for 10 entries you would 
> need to call it 10 times, sending 10 messages to Tracker, creating 10 
> tasks.
> Granted, most apps do it one at a time (BeMail).

On that note, I just checked the BeMail source and it does the EXACT 
SAME THING I did in ShowImage, except it hard-codes the constants:

                                        BMessenger 
tracker("application/x-vnd.Be-TRAK");
                                        if (tracker.IsValid()) {
                                                BMessage msg('Ttrs');
                                                msg.AddRef("refs", fRef);
                                                tracker.SendMessage(&msg);

So why did I get so much flak for doing it this way? Grrr. OK, I'm not 
that upset, but it just goes to show we do need to solve this problem. 
The BeMail trashing has the same issues as the ShowImage one.

Regards,
Ryan

Other related posts: