I explored native mime database in Windows. It is stored in registry and 
contains data for most common extensions. It is a map from "*.extension" to 
mime type name. This mime type name is equal to freedesktop.org, however for 
most of types it is not set. So, if we will try to generate database from 
registry, this database will not be complete. Next problem i couldn't find 
description and icon for mime types. Are they missing? And the last problem 
that we lose feature of determining mime type by content (i didn't find any 
magic matchers in registry too). Also we have to forgot about aliases.

We need to have single behavior of a database on all platforms - in particular, 
we need to have same mime types names. Aliases and content-type spelling will 
give you headache.

I'm not sure what about other systems that Qt supports, but i think we can't 
use native database - it is very poor on win and i'm not sure it exists on 
Symbian (correct me, if i'm wrong). Until we can be sure that we can retrieve 
ALL information about mime types, including localized comments and icons (on 
mac and win) i suggest to use freedesktop.org specification on all systems.

If we will use freedesktop.org spec, we need to use rather Qt installer to 
install mime database or we have to support embedding files in application 
directory. I think storing mime types with application should be very frequent 
use case on windows, because we only need small subset of mime types specific 
for given application. Also it is common way to deploy applications on win - to 
deploy all tools they depends on with application.

Ivan.
_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to