diff --git a/scim-wnn/src/anthyconversion.cpp b/scim-wnn/src/anthyconversion.cpp index 15a8a95..3651530 100644 --- a/scim-wnn/src/anthyconversion.cpp +++ b/scim-wnn/src/anthyconversion.cpp @@ -162,5 +162,10 @@ } } +String AnthyConversion::getName() +{ + return(String("Anthy")); +} + #endif diff --git a/scim-wnn/src/anthyconversion.h b/scim-wnn/src/anthyconversion.h index b4968b4..5cdc83d 100644 --- a/scim-wnn/src/anthyconversion.h +++ b/scim-wnn/src/anthyconversion.h @@ -64,6 +64,8 @@ virtual bool connect(); virtual void disconnect(); virtual int getCaretPos(); + virtual String getName(); + protected: void buildResult(); protected: diff --git a/scim-wnn/src/convertor.cpp b/scim-wnn/src/convertor.cpp index b675f0b..ccc4d1b 100644 --- a/scim-wnn/src/convertor.cpp +++ b/scim-wnn/src/convertor.cpp @@ -94,3 +94,8 @@ return(0); } + +String Convertor::getName() +{ + return(String("Convertor")); +} diff --git a/scim-wnn/src/convertor.h b/scim-wnn/src/convertor.h index dd64222..bc23d47 100644 --- a/scim-wnn/src/convertor.h +++ b/scim-wnn/src/convertor.h @@ -65,6 +65,7 @@ virtual bool connect(); virtual void disconnect(); virtual int getCaretPos(); + virtual String getName(); protected: ConfigPointer config; diff --git a/scim-wnn/src/wnnconversion.cpp b/scim-wnn/src/wnnconversion.cpp index 6956e79..6b43fc2 100644 --- a/scim-wnn/src/wnnconversion.cpp +++ b/scim-wnn/src/wnnconversion.cpp @@ -492,4 +492,9 @@ } +String WnnConversion::getName() +{ + return(String("Wnn")); +} + diff --git a/scim-wnn/src/wnnconversion.h b/scim-wnn/src/wnnconversion.h index 566efac..cd12211 100644 --- a/scim-wnn/src/wnnconversion.h +++ b/scim-wnn/src/wnnconversion.h @@ -72,7 +72,9 @@ virtual void updateFrequency(); virtual bool connect(); virtual void disconnect(); - int getCaretPos(); + virtual int getCaretPos(); + virtual String getName(); + protected: bool wnnConnect(String name,String host,String rc,JServerType type,int timeout);