Re: Querying oaf of the interfaces a component implements ?



>
> > Yes. Do a query for "iid = 'OAFIID:foo:bar'" and you will get back an
> > OAF_ServerInfoList, which is an array of OAF_ServerInfo. OAF has some
> > calls to get at the values in a ServerInfo struct. Of course, the
> > accuracy of this information depends on the component author filling
> > out the repo_ids attribute accurately and including all the interfaces
> > the component implements. I've seen cases out there where this is not
> > done (for example the oafinfo files for a number of Evolution shell
> > components are missing at least "IDL:Bonobo/Unknown:1.0").
>
> Thanks.
>
> This even worked with
>
>         "iid = 'OAFIID:foo:bar' AND repo_ids.have('IDL:/Bonobo/Control:1.0')"
>
> to to exactly what I wanted to know :-)
>

another question: if I've got the OAFIID, how can I know if the component is
running or not?





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]