// ******************************************************************
// *
// * LsTypes.js
// *
// * Copyright (C) 1999,2000 LexiQuest. All rights reserved.
// *
// ******************************************************************/

// ------------------
// Return codes
// ------------------
function _LS_ERROR()
{
  this.SUCCESSFUL          = 0;
  this.MISSED_APPLICATION  = -201;
  this.MISSED_QUERY        = -202;
  this.MISSED_CALLBACK     = -203;
  this.TEMPORARY_WINDOW    = -204;
  this.UNEXPECTED          = -205;
  // For the following case, have a look at LsMain.serverError and LsMain.serverMessage properties...
  this.SERVER_ERROR        = -300;
}
// Dedicated constant, to simulate an "enum".
var LS_ERROR = new _LS_ERROR();


// ------------------
// LsStatus class.
// ------------------
function LsStatus()
{
  this.lastError         = LS_ERROR.SUCCESSFUL;
  this.lastServerError   = 0;
  this.lastServerMessage = "";
}


// ------------------
// LsExpansionSort enum.
// ------------------

function _LS_EXPANSION_SORT_CRITERIA()
{
  this.RELEVANCE = 0;
  this.DISTANCE  = 1;
  this.ALPHA     = 2;
  this.NONE      = 3;
}
// Dedicated constant, to simulate an "enum".
LS_EXPANSION_SORT_CRITERIA = new _LS_EXPANSION_SORT_CRITERIA();


// ------------------
// LsQueryMode enum.
// ------------------

function _LS_QUERY_MODE()
{
  this.NONE     = 0;
  this.INDEXING = 1;
  this.RUNTIME  = 2;
}
// Dedicated constant, to simulate an "enum".
var LS_QUERY_MODE = new _LS_QUERY_MODE();


// ------------------
// LsWordKnown enum.
// ------------------

function _LS_WORD_KNOWN()
{
  this.NO        = 0;
  this.LEXICON   = 1;
  this.CHECKER   = 2;
  this.PREDICTED = 3;
}
// Dedicated constant, to simulate an "enum".
var LS_WORD_KNOWN = new _LS_WORD_KNOWN();

