t-suw****@users*****
t-suw****@users*****
2007年 9月 2日 (日) 12:36:25 JST
Index: AquaSKK/src/context/SKKContext.cpp diff -u /dev/null AquaSKK/src/context/SKKContext.cpp:1.1.2.1 --- /dev/null Sun Sep 2 12:36:25 2007 +++ AquaSKK/src/context/SKKContext.cpp Sun Sep 2 12:36:25 2007 @@ -0,0 +1,40 @@ +/* -*- C++ -*- + $Id: SKKContext.cpp,v 1.1.2.1 2007/09/02 03:36:25 t-suwa Exp $ + + MacOS X implementation of the SKK input method. + + Copyright (C) 2007 Tomotaka SUWA <t.suw****@mac*****> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ + +#include "SKKContext.h" + +SKKContext::SKKContext() { +} + +SKKContext::SKKContext(const std::string& prompt) : prompt_(prompt_) { +} + +SKKContext::SKKContext(const SKKContext& src) : prompt_(src.prompt_), result_(src.result_) { +} + +const SKKEventResult& SKKContext::Result() const { + return result_; +} + +const std::string& SKKContext::Prompt() const { + return prompt_; +} Index: AquaSKK/src/context/SKKContext.h diff -u /dev/null AquaSKK/src/context/SKKContext.h:1.1.2.1 --- /dev/null Sun Sep 2 12:36:25 2007 +++ AquaSKK/src/context/SKKContext.h Sun Sep 2 12:36:25 2007 @@ -0,0 +1,43 @@ +/* -*- C++ -*- + MacOS X implementation of the SKK input method. + + Copyright (C) 2007 Tomotaka SUWA <t.suw****@mac*****> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ + +#ifndef INC__SKKContext__ +#define INC__SKKContext__ + +#include <string> +#include "SKKEventResult.h" + +// å ¥åã³ã³ããã¹ã +class SKKContext { + std::string prompt_; // ç»é²ç¨è¦åºãèª + SKKEventResult result_; + +public: + SKKContext(); + SKKContext(const std::string& prompt); + SKKContext(const SKKContext& src); + + // å¦ççµæ + const SKKEventResult& Result() const; + + const std::string& Prompt() const; +}; + +#endif