[haiku-bugs] Re: [Haiku] #7061: Removing incompletely downloaded files

  • From: "stippi" <trac@xxxxxxxxxxxx>
  • Date: Mon, 18 Nov 2013 10:58:38 -0000

#7061: Removing incompletely downloaded files
----------------------------------------+----------------------------
   Reporter:  humdinger                 |      Owner:  stippi
       Type:  enhancement               |     Status:  new
   Priority:  normal                    |  Milestone:  R1
  Component:  Applications/WebPositive  |    Version:  R1/Development
 Resolution:                            |   Keywords:
 Blocked By:                            |   Blocking:
Has a Patch:  0                         |   Platform:  All
----------------------------------------+----------------------------

Comment (by stippi):

 It is only slightly more tricky using HVIF. The classes necessary for this
 are contained in libicon.a, and end up in libbe. The header files and the
 code strips functionality which is only needed by Icon-O-Matic, but there
 should be enough left, or it should be easily enabled, so that one can add
 any shape one desires to an Icon object.

 The most "complicated" step may turn out to be getting to the actual
 resource which contains the icon that ends up being used. For example,
 when you download a .ZIP, its no use to get the ZIP icon bitmap, you need
 to figure out where this actually comes from (the ZIP MIME-type file) and
 load it from there manually as an libicon.a "Icon" instance. But maybe
 IconUtils can be extended for that. From there, it's easy to add shapes to
 that icon and export it as file attribute, again using functionality from
 libicon.a (FlatIconExporter, if memory serves).

 As far as what the best way to do it would be... I don't know. Apps other
 than Tracker only actually benefit if they contain a mechanism to live-
 update the icons of files they show based on node monitoring. But it would
 certainly be useful as a first implementation.

--
Ticket URL: <http://dev.haiku-os.org/ticket/7061#comment:5>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: