[openi18n-im:01424] Re: patch to export information of input method engine

Federic Zhang <[email protected]> Mon, 20 Jun 2005 15:41:32 +0800
Newsgroups gmane.comp.internationalization.input-methods
Message-ID <[email protected]>
Himi,

Thanks! I will follow your suggestion to change it.

Do you have any idea to let server to dynamically change imdesclist? the
scenario would
be that user disable/enable input method engine via its customized
auxiliary window, so 
the imeinfos in the imdesclist class should be modified to sync with
this change. Maybe
we can change it in LEBase::openif() during LE switching.

-federic


> Just one comment.
> 
> At Sun, 19 Jun 2005 23:22:17 +0800,
> Federic Zhang wrote:
> 
> > +IIIMF_status
> > +iiimcf_get_input_method_imeinfos(
> > +    IIIMCF_input_method input_method,
> > +    int *pinput_method_imeinfo_size,
> > +    IIIMCF_imeinfo_rec ***ppimeinfos
> > +)
> > +{
> > +    IIIMCF_input_method_rec *pi = (IIIMCF_input_method_rec*) input_method;
> > +
> > +    if (pinput_method_imeinfo_size)
> > +        *pinput_method_imeinfo_size = pi->num_imeinfos;
> > +    if (ppimeinfos)
> > +        *ppimeinfos = pi->ppimeinfos;
> > +
> > +    return IIIMF_STATUS_SUCCESS;
> > +}
> 
> I think we should change this API's signature to 
> 
> IIIMF_status
> iiimcf_get_input_method_imeinfos(
>     IIIMCF_input_method input_method,
>     int *pinput_method_imeinfo_size,
>     const IIIMCF_imeinfo_rec ***ppimeinfos
>     ^^^^^
> ).
> 
> c.f. iiimcf_get_downloaded_object_descriptor().
> 
>   With regards,
> 
> from himi