File mime type reader

2 views
Skip to first unread message

Siraj Razick

unread,
Jul 26, 2008, 3:53:18 AM7/26/08
to plexyd...@googlegroups.com
HI.

We need a component which reads the mime given the file. we need a platfrom independent solution, any Ideas ?

Bye

http://en.wikipedia.org/wiki/Siraj_Razick
KDE Developer

Lahiru Lakmal Priyadarshana

unread,
Jul 26, 2008, 5:39:15 AM7/26/08
to plexyd...@googlegroups.com
Hi,

Can we use something like in Firefox. ? It uses a RDF file.

$HOME/.mozilla/firefox/profile.default/mimeTypes.rdf

Not sure how much this helps but a suggestion. ;)

Thanks,
-Lahiru.
--
-----
I BLOG HERE : [ http://blog.soundofcode.com ]
HOME : [ http://www.soundofcode.com ]
CATCH ME ON TWITTER : [ http://twitter.com/lahiru ]

Siraj Razick

unread,
Jul 26, 2008, 11:51:17 AM7/26/08
to plexyd...@googlegroups.com
sounds good !  lets do it
http://en.wikipedia.org/wiki/Siraj_Razick
KDE Developer

Chintana Wilamuna

unread,
Jul 27, 2008, 10:51:31 PM7/27/08
to plexyd...@googlegroups.com
On Sat, Jul 26, 2008 at 1:23 PM, Siraj Razick <sir...@gmail.com> wrote:

> We need a component which reads the mime given the file. we need a platfrom
> independent solution, any Ideas ?

How about KMimeType::findByURL("/here/the/url/of/my/file.jpg")?

I think you could copy the code if the extra dependency on kde is not required.

Bye,

-Chintana

--
http://engwar.com/

Reply all
Reply to author
Forward
0 new messages