Hi, I'd like to work with you on MIME type support for Qt5. To avoid discussing in thin air you can find an initial proposal under ssh://[email protected]:29418/qt-labs/qtaddonmimetype.git. The purpose of the typedefs in the code is to make later refactoring easier. During cleanup for a final version, these can all go away if that is the general consensus.
Alongside with the API, the code includes a pseudo platform implementation, some documentation and unit tests for both C++ and QML which both fail in areas that require a proper backend implementation. The proposal consists of the classes QMimeType, QServiceAction and QMimeTypeRegistry. QMimeType is a value class that contains the actual MIME type e.g. image/png QServiceAction is a way to specify a user action on a file e.g. open. QMimeTypeRegistry finally allows MIME types, actions and applications to register, and to perform queries on the registry. While the queries are straightforward, I am beginning to wonder if the registration part isn't actually to system specific to be part of this API. I am looking forward to your feedback and suggestions. Michael
_______________________________________________ Qt5-feedback mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback
