diff options
author | Peng Wu <alexepico@gmail.com> | 2018-09-25 15:32:17 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2018-09-25 15:32:17 +0800 |
commit | b8213e99026adc69dd889774e214e1c9b965371b (patch) | |
tree | 09d5352c742c380c3c15fdcb6a0adfd7866e0d63 /src/PYPEmojiCandidates.h | |
parent | 44724fda947dd7a0c4a3d7f569521205cd04fcfd (diff) | |
download | ibus-libpinyin-b8213e99026adc69dd889774e214e1c9b965371b.tar.gz ibus-libpinyin-b8213e99026adc69dd889774e214e1c9b965371b.tar.xz ibus-libpinyin-b8213e99026adc69dd889774e214e1c9b965371b.zip |
import PYPEmojiCandidates.h
Diffstat (limited to 'src/PYPEmojiCandidates.h')
-rw-r--r-- | src/PYPEmojiCandidates.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/PYPEmojiCandidates.h b/src/PYPEmojiCandidates.h new file mode 100644 index 0000000..d0b1a21 --- /dev/null +++ b/src/PYPEmojiCandidates.h @@ -0,0 +1,48 @@ +/* vim:set et ts=4 sts=4: + * + * ibus-libpinyin - Intelligent Pinyin engine based on libpinyin for IBus + * + * Copyright (c) 2018 Peng Wu <alexepico@gmail.com> + * + * 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, or (at your option) + * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#ifndef __PY_LIB_PINYIN_EMOJI_CANDIDATES_H_ +#define __PY_LIB_PINYIN_EMOJI_CANDIDATES_H_ + +#include "PYPEnhancedCandidates.h" + +namespace PY { + +class Editor; + +class EmojiCandidates : public EnhancedCandidates<Editor> { +public: + EmojiCandidates (Editor *editor) { + m_editor = editor; + } + +public: + gboolean processCandidates (std::vector<EnhancedCandidate> & candidates); + + int selectCandidate (EnhancedCandidate & enhanced); + +protected: + EnhancedCandidate m_candidate; +}; + +}; + +#endif |