Back to index

im-sdk  12.3.91
Functions | Variables
le.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include "koinput.h"
#include "kole.h"
#include "le.h"
#include "le_proc.h"
#include "iml.h"
#include "method.h"
#include "xaux_locale.h"
#include "key_event.h"
#include "kolelog.h"

Go to the source code of this file.


Bool if_le_OpenIF (iml_if_t *)
Bool if_le_CloseIF (iml_if_t *)
Bool if_le_GetIFValue (iml_if_t *, IMArgList, int)
Bool if_le_SetIFValue (iml_if_t *, IMArgList, int)
Bool if_le_OpenDesktop (iml_desktop_t *, IMArgList, int)
Bool if_le_CloseDesktop (iml_desktop_t *)
Bool if_le_CreateSC (iml_session_t *, IMArgList, int)
Bool if_le_DestroySC (iml_session_t *)
Bool if_le_GetSCValue (iml_session_t *, IMArgList, int)
Bool if_le_SetSCValue (iml_session_t *, IMArgList, int)
IMTextif_le_ResetSC (iml_session_t *)
void if_le_SetSCFocus (iml_session_t *)
void if_le_UnsetSCFocus (iml_session_t *)
void if_le_SendEvent (iml_session_t *, IMInputEvent *ev)
void objects_init ()
void objects_done ()
void if_GetIfInfo (IMArgList args, int num_args)


if_methods_t le_methods
char lename_string []
UTFCHAR lename_utf_string []
IMLocale locales []
char default_locale_id
int g_number_of_engines
int g_default_engine_id
IMEEngineRecg_engines [MAX_ENGINE_NUM]
static IMLEName lename = {lename_string, lename_utf_string }
static IMObjectDescriptorStructobjects = NULL
static int s_id [MAX_SESSION]
unsigned int le_openif_counter = 0

Function Documentation

void if_GetIfInfo ( IMArgList  args,
int  num_args 

Definition at line 129 of file le.c.

  int i;

  KOLE_LOG (LOGDEST_STDOUT, "if_GetIfInfo == num_args:%d\n", num_args);

  for (i = 0; i < num_args; i++, args++) {
    switch (args->id)
      case IF_VERSION:
       args->value = (IMArgVal) "1.2";
      case IF_LE_NAME:
       args->value = (IMArgVal) & lename;
       /* List of supported locales */
       args->value = (IMArgVal) & locales;
       args->value = (IMArgVal) objects; 
      case IF_METHOD_TABLE:
       args->value = (IMArgVal) & le_methods;
       args->value = (IMArgVal) True;

Here is the call graph for this function:

Bool if_le_CreateSC ( iml_session_t s,
IMArgList  args,
int  num_args 
Bool if_le_GetIFValue ( iml_if_t If,
IMArgList  args,
int  num_args 
Bool if_le_GetSCValue ( iml_session_t s,
IMArgList  args,
int  num_args 
Bool if_le_OpenDesktop ( iml_desktop_t desktop,
IMArgList  args,
int  num_args 
void if_le_SendEvent ( iml_session_t s,
IMInputEvent ev 
Bool if_le_SetIFValue ( iml_if_t If,
IMArgList  args,
int  num_args 
Bool if_le_SetSCValue ( iml_session_t s,
IMArgList  args,
int  num_args 
void objects_done ( )

Definition at line 116 of file le.c.

  KOLE_LOG (LOGDEST_STDOUT, "free objects\n");

  if (objects == NULL) return;

  if (objects[0].path) free((char *)(objects[0].path));
  objects = NULL;

Here is the call graph for this function:

void objects_init ( )

Definition at line 89 of file le.c.

  char xaux_so_path[125];
  IMObjectDescriptorStruct *l;

  KOLE_LOG (LOGDEST_STDOUT, "init objects, objects:%x\n", objects);

  if (objects != NULL) return;

  objects = (IMObjectDescriptorStruct *) calloc(2, sizeof(IMObjectDescriptorStruct));
  if (objects == NULL) return;

  sprintf(xaux_so_path, "./%s/auxiliary_windows/","kole");
  l = objects;
  l->leid = lename_string;                   /* engine id */
  l->type = IM_DOWNLOADINGOBJECT_BINGUI_TYPE; /* object type */
  l->name = lename_utf_string;                   
  l->name_length = UTFCHARLen(lename_utf_string);
  l->domain = "com.sun";
  l->scope = lename_string;
  l->path = (char *)(strdup(xaux_so_path));    /* path for .so from /usr/lib/iiim/ */
  l->signature = "";
  l->basepath = NULL;         /* only for CCDEF */
  l->encoding = NULL;         /* only for CCDEF */

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

Definition at line 30 of file define.c.

Definition at line 43 of file koinput.c.

Definition at line 44 of file koinput.c.

Definition at line 42 of file koinput.c.

unsigned int le_openif_counter = 0

Definition at line 164 of file le.c.

Definition at line 82 of file le.c.

char lename_string[]

Definition at line 165 of file CannaLE.c.

Definition at line 4 of file le_define.c.

Definition at line 16 of file le_object.c.

Definition at line 83 of file le.c.

int s_id[MAX_SESSION] [static]

Definition at line 85 of file le.c.