[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-i18n
Subject: Re: kfm and mimetypes
From: David Faure <David.Faure () insa-lyon ! fr>
Date: 1999-02-18 12:29:38
[Download RAW message or body]
On Thu, Feb 18, 1999 at 12:19:26PM +0000, Teodor Romeo Mihai wrote:
> David Faure wrote:
> >
> > Ok, I had another look at the KRegistry class.
> >
> > The right thing to do seems to be
> >
> > Includes :
> > #include <kregistry.h>
> > #include <kregfactories.h>
> >
> > At startup :
> > registry = new KRegistry;
> > registry->addFactory( new KMimeTypeFactory );
> > registry->load( );
> > KMimeMagic::initStatic();
> >
> > Then you can use the KMimetype::find... methods.
>
>
> KRegistry::load is not implemented (just returns FALSE).
Wrong.
void KRegistry::load( const char *_dbfile )
...
kregistry.cc line 205
> KMimeType::find methods are useful only for determining a mimetype, and
> not for finding applications associated with a mimetype - and this is
> what I want.
Ah, right, you need a KServiceFactory as well.
> However, I will look deeper into
> KRegistry/KMimeTypeFactory, and if I can find any method for finding
> applications I'll let you know.
Also look at KService and KServiceFactory
(Service == app. kdelnk)
--
____________________________________________________________________
| |
| David FAURE |
| E-mail : David.Faure@insa-lyon.fr, faure@kde.org |
| http://www.insa-lyon.fr/People/AEDI/dfaure/index.html |
|____________________________________________________________________|
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic