[haiku-commits] Re: r38878 - haiku/trunk/src/apps/expander

  • From: Jérôme Duval <korli@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 4 Oct 2010 08:40:36 +0200

2010/10/3 Clemens Zeidler <clemens.zeidler@xxxxxxxxxxxxxx>:
> Am 04.10.2010, 10:02 Uhr, schrieb <korli@xxxxxxxxxxxxxxxx>:
>
>> Author: korli
>> Date: 2010-10-03 23:02:47 +0200 (Sun, 03 Oct 2010)
>> New Revision: 38878
>> Changeset: http://dev.haiku-os.org/changeset/38878
>>
>> Modified:
>>   haiku/trunk/src/apps/expander/ExpanderWindow.cpp
>> Log:
>> * 7zip asks for a password on the stdout, we check for the "Enter
>> password" string.
>
> Wouldn't it be better to move the out, err handling into a separate class,
> maybe ExpanderRule for now? Looks a little bit ugly to handle it for every
> format in the main window.
> In the long term a more abstract expander format class would be appropriated
> which would also be able to use expander libs instead of just the
> executables. This class could also be outsourced into add-ons...
> Just take a short look at the source, sorry if I miss something.

My commits are more about getting something working and keeping things
simple, refactor and other things would come next (not even talking
about localisation). I'm not sure if we want to get expander libs,
seeing the headache it gives on the media side for instance.
Thanks for the opinion anyway.

Bye,
Jérôme

Other related posts: