Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
IInputCodingTable Class Referenceabstract

#include <InputCodingTable.h>

Inheritance diagram for IInputCodingTable:
CInputCodingTableBasePY CInputCodingTableKorean

Public Types

enum  { TYPE_WORD_LIST , TYPE_CONVERT_STRING }
 

Public Member Functions

virtual int GetType ()
 
virtual ~IInputCodingTable ()=default
 
virtual void Initialize ()
 Called for the active keyboard layout when it's loaded, stick any initialization here.
 
virtual void Deinitialize ()
 Called for the active keyboard layout when it's unloaded, stick any cleanup here.
 
virtual bool IsInitialized () const
 Can be overridden if initialization is expensive to avoid calling initialize more than needed.
 
virtual bool GetWordListPage (const std::string &strCode, bool isFirstPage)=0
 
virtual std::vector< std::wstring > GetResponse (int response)=0
 
const std::string & GetCodeChars () const
 
virtual void SetTextPrev (const std::string &strTextPrev)
 
virtual std::string ConvertString (const std::string &strCode)
 

Protected Attributes

std::string m_codechars
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
TYPE_WORD_LIST 
TYPE_CONVERT_STRING 

Constructor & Destructor Documentation

◆ ~IInputCodingTable()

virtual IInputCodingTable::~IInputCodingTable ( )
virtualdefault

Member Function Documentation

◆ ConvertString()

virtual std::string IInputCodingTable::ConvertString ( const std::string & strCode)
inlinevirtual

Reimplemented in CInputCodingTableKorean.

◆ Deinitialize()

virtual void IInputCodingTable::Deinitialize ( )
inlinevirtual

Called for the active keyboard layout when it's unloaded, stick any cleanup here.

This won't be needed for most implementations so we don't set it =0 but provide a default implementation.

◆ GetCodeChars()

const std::string & IInputCodingTable::GetCodeChars ( ) const
inline

◆ GetResponse()

virtual std::vector< std::wstring > IInputCodingTable::GetResponse ( int response)
pure virtual

◆ GetType()

virtual int IInputCodingTable::GetType ( )
inlinevirtual

Reimplemented in CInputCodingTableKorean.

◆ GetWordListPage()

virtual bool IInputCodingTable::GetWordListPage ( const std::string & strCode,
bool isFirstPage )
pure virtual

◆ Initialize()

virtual void IInputCodingTable::Initialize ( )
inlinevirtual

Called for the active keyboard layout when it's loaded, stick any initialization here.

This won't be needed for most implementations so we don't set it =0 but provide a default implementation.

◆ IsInitialized()

virtual bool IInputCodingTable::IsInitialized ( ) const
inlinevirtual

Can be overridden if initialization is expensive to avoid calling initialize more than needed.

Returns
true if initialization has been done and was successful, false otherwise.

◆ SetTextPrev()

virtual void IInputCodingTable::SetTextPrev ( const std::string & strTextPrev)
inlinevirtual

Reimplemented in CInputCodingTableKorean.

Member Data Documentation

◆ m_codechars

std::string IInputCodingTable::m_codechars
protected

The documentation for this class was generated from the following file: