[aquaskk-changes 354] CVS update: AquaSKK/src/context

アーカイブの一覧に戻る

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


aquaskk-changes メーリングリストの案内
アーカイブの一覧に戻る