Re: file info feature

"Roger Binns" <[email protected]>
Newsgroups gmane.comp.mobile.bitpim.devel
Message-ID <016501c5f3cc$b75d4c30$3501a8c0@rogersqyvr14d3>
> So for things like pim/pbgroups.dat the column would contain a brief
> description of the purpose of the file like "Supported phonebook groups".

Good idea :-)
 
> An alternative would be to have the description appear as a tooltip instead
> of adding a column, this would work better with the new file view.

Columns are nicer because you can sort by them and you can take
screenshots.

> Each file would be have a type (unknown, binary, text, audio, image, video)
> the file icon would represent the type.

Note that we can't work out the type unless we suck the file over.

> I have some ideas about implementation, but I'd like to make sure that the
> ideas and features are OK before going into those details.

Sounds good to me.  I suggest a file in the resource directory.  If you want
to fluff up your resume you can use XML format.  Try writing a non-trivial
amount of the file before doing any code.  Here is a starter using mailbox
header format with commentary after pound signs:

Pattern: /sms/inbox*.dat              # filename pattern
Phones: com_lgvx*,com_audiovox1234    # which phones do this
Exclude: com_lgvx1234                 # except this model
Summary: Incoming SMS messages
Description:  Received SMS messages.  They are initially in
   numerical order, but holes will appear as messages are
   deleted.
Analyser: self.protocolclass.sms_in

Note that matching patterns could occur multiple times.  For example
all the phones have the nvm files but they mean completely different
things on each model.  I don't know how you'd express the type (binary,
text, audio etc) since you could put in the above but in many circumstances
you have to have the file.  Maybe a display submenu with options of
'auto' (ie we pick the best possible format), 'analyser', 'hex', 'text'
etc would work?

Roger


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.