Back to index

im-sdk  12.3.91
Classes | Functions | Variables
engine-property.c File Reference
#include <stdio.h>
#include <assert.h>
#include "engine-property.h"

Go to the source code of this file.

Classes

struct  _KOLE_property

Functions

KOLE_property * leproperty_init ()
int leproperty_get_input_mode (KOLE_property *pp)
void leproperty_set_input_mode (KOLE_property *pp, INPUT_MODE_T imode)
int leproperty_get_keyboard (KOLE_property *pp)
void leproperty_set_keyboard (KOLE_property *pp, KEYBOARD_LAYOUT_T k)
int leproperty_get_charset (KOLE_property *pp)
void leproperty_set_charset (KOLE_property *pp, OPTION_CHARSET c)
int leproperty_get_deletion (KOLE_property *pp)
void leproperty_set_deletion (KOLE_property *pp, OPTION_DELETION d)
int leproperty_get_commit (KOLE_property *pp)
void leproperty_set_commit (KOLE_property *pp, OPTION_COMMIT_MODE c)
void leproperty_done (KOLE_property *pp)

Variables

static KOLE_property * pleproperty
static int g_leproperty_initialized = 0

Class Documentation

struct _KOLE_property

Definition at line 8 of file engine-property.c.

Class Members
OPTION_CHARSET charset
OPTION_COMMIT_MODE commit
OPTION_DELETION deletion
INPUT_MODE_T input_mode
OPTION_KEYBOARD_LAYOUT keyboard

Function Documentation

void leproperty_done ( KOLE_property *  pp)

Definition at line 105 of file engine-property.c.

{
  if (pp && g_leproperty_initialized){
    free (pp);
    pp = NULL;
  }
}

Here is the caller graph for this function:

int leproperty_get_charset ( KOLE_property *  pp)

Definition at line 69 of file engine-property.c.

{
  return (int) pp->charset;
}

Here is the caller graph for this function:

int leproperty_get_commit ( KOLE_property *  pp)

Definition at line 93 of file engine-property.c.

{
  return (int) pp->commit;
}
int leproperty_get_deletion ( KOLE_property *  pp)

Definition at line 81 of file engine-property.c.

{
  return (int) pp->deletion;
}
int leproperty_get_input_mode ( KOLE_property *  pp)

Definition at line 43 of file engine-property.c.

{
  return (int) pp->input_mode;
}
int leproperty_get_keyboard ( KOLE_property *  pp)

Definition at line 57 of file engine-property.c.

{
  return (int) pp->keyboard;
}
KOLE_property* leproperty_init ( )

Definition at line 18 of file engine-property.c.

{
  if (g_leproperty_initialized)
    return pleproperty;
  
  pleproperty =
    (KOLE_property *) malloc (sizeof (KOLE_property));

  assert (pleproperty != NULL);
  
  if (!pleproperty)
    return NULL;
  
  pleproperty->input_mode = INPUT_MODE_ENGLISH;
  pleproperty->keyboard = LAYOUT_2PART;
  pleproperty->charset = IN_UNICODE;
  pleproperty->deletion = BY_CHAR;
  pleproperty->commit = COMMIT_BY_HOTKEY;

  g_leproperty_initialized = 1;
  
  return pleproperty;
}

Here is the caller graph for this function:

void leproperty_set_charset ( KOLE_property *  pp,
OPTION_CHARSET  c 
)

Definition at line 75 of file engine-property.c.

{
  pleproperty->charset = c; 
}

Here is the caller graph for this function:

void leproperty_set_commit ( KOLE_property *  pp,
OPTION_COMMIT_MODE  c 
)

Definition at line 99 of file engine-property.c.

{
  pleproperty->commit = c; 
}

Here is the caller graph for this function:

void leproperty_set_deletion ( KOLE_property *  pp,
OPTION_DELETION  d 
)

Definition at line 87 of file engine-property.c.

{
  pleproperty->deletion = d; 
}

Here is the caller graph for this function:

void leproperty_set_input_mode ( KOLE_property *  pp,
INPUT_MODE_T  imode 
)

Definition at line 49 of file engine-property.c.

{
   if(pp == NULL)
       return;
   pp->input_mode = imode;
}

Here is the caller graph for this function:

void leproperty_set_keyboard ( KOLE_property *  pp,
KEYBOARD_LAYOUT_T  k 
)

Definition at line 63 of file engine-property.c.

{
  pleproperty->keyboard = k;
}

Here is the caller graph for this function:


Variable Documentation

int g_leproperty_initialized = 0 [static]

Definition at line 6 of file engine-property.c.

KOLE_property* pleproperty [static]

Definition at line 5 of file engine-property.c.