[interfacekit] Re: BRoster::FindApp()

  • From: Ingo Weinhold <bonefish@xxxxxxxxxxxxxxx>
  • To: interfacekit@xxxxxxxxxxxxx
  • Date: Mon, 19 Jan 2004 23:41:47 +0100

On 2004-01-18 at 22:56:32 [+0100], Andrew Bachmann wrote:
> 
> This sounds perfect.

OK, I'll go for it then.

CU, Ingo

> Ingo Weinhold <bonefish@xxxxxxxxxxxxxxx> wrote:
> > 
> > 3) get the type's app hint
> >    a) if it has one and the file exists, we're done
> >    b) else query for the app file and pick the one with the latest version
> >    c) if none exists, fail
> > 
> > The algorithm may be changed like this:
> > 
> > 1) get the preferred app signature of the node
> >    a) if found, use algorithm 3) to get the app ref and return it
> >       if successful, otherwise continue
> >    b) else get the node's MIME type -- sniff the type, if it has none
> > 2) get the preferred app signature of the given MIME type
> >    a) if it has one, use 3) to get the app ref and return it if
> >       successful, otherwise continue with b)
> >    b) else if the supertype has one, use 3) and be done or
> >    c) else fail
> > 3) as above
> > 
> > Does that sound OK?
> > 
> > CU, Ingo

Other related posts: