/*
 * Copyright 2003 Sun Microsystems Inc.
 *
 * This is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * Authors: Karl Park <karl.park@sun.com>
 */

#ifndef KOIF_PRV_H
#define KOIF_PRV_H
/*
#include <IMProtocolStruct.h>
*/
#include "koinput.h"
#include "composer.h"
#include "lookupbuf.h"


typedef enum _INPUT_COMMAND_TYPE_T {
  INPUT_COMMAND_NOTHING,
  INPUT_COMMAND_IGNORE,
  INPUT_COMMAND_REGULAR_HANGUL,
  INPUT_COMMAND_COMMIT,
  INPUT_COMMAND_HANJA_DO_LOOKUP,
  INPUT_COMMAND_LOOKUP_DO_NEXT_PAGE,
  INPUT_COMMAND_LOOKUP_DO_PREVIOUS_PAGE,
  INPUT_COMMAND_LOOKUP_DO_SCROLL,
  INPUT_COMMAND_LOOKUP_SELECT_CANDIDATE,
  INPUT_COMMAND_CANCEL_LOOKUP,
  INPUT_COMMAND_SYMBOL_MENU_LOOKUP,
  INPUT_COMMAND_TOGGLE_FULL_HALF_WIDTH,
  INPUT_COMMAND_SWITCH_KEYBOARD_LAYOUT,
  INPUT_COMMAND_SWITCH_COMMIT_METHOD,
  INPUT_COMMAND_SWITCH_CODESET,
  INPUT_COMMAND_TURN_OFF_CONVERSION,
  INPUT_COMMAND_TURN_ON_CONVERSION,
} INPUT_COMMAND_TYPE_H;

struct _IMEBufferRec {
  int	session_id;    
  int	engine_id;
  Config config;
  struct _IMEBufferWhatToDo what_to_do;
  INPUT_MODE_T	input_mode;
  UTFCHAR *commit_string;
  LookupBufferStruct *lookup_buffer;
  HANGULBuffer composer_buffer;
};


#endif /* KOIF_PRV_H */
