| 1 |
/* |
| 2 |
* SPDX-FileCopyrightText: 2017-2017 CSSlayer <[email protected]> |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 5 |
* |
| 6 |
*/ |
| 7 |
#ifndef _PUNCTUATION_PUNCTUATION_PUBLIC_H_ |
| 8 |
#define _PUNCTUATION_PUNCTUATION_PUBLIC_H_ |
| 9 |
|
| 10 |
#include <fcitx/addoninstance.h> |
| 11 |
namespace fcitx { |
| 12 |
class InputContext; |
| 13 |
} |
| 14 |
|
| 15 |
FCITX_ADDON_DECLARE_FUNCTION( |
| 16 |
Punctuation, getPunctuation, |
| 17 |
const std::pair<std::string, std::string> &(const std::string &language, |
| 18 |
uint32_t unicode)); |
| 19 |
FCITX_ADDON_DECLARE_FUNCTION(Punctuation, cancelLast, |
| 20 |
const std::string &(const std::string &language, |
| 21 |
InputContext *ic)); |
| 22 |
FCITX_ADDON_DECLARE_FUNCTION(Punctuation, pushPunctuation, |
| 23 |
const std::string &(const std::string &language, |
| 24 |
InputContext *ic, |
| 25 |
uint32_t unicode)); |
| 26 |
FCITX_ADDON_DECLARE_FUNCTION( |
| 27 |
Punctuation, pushPunctuationV2, |
| 28 |
std::pair<std::string, std::string>(const std::string &language, |
| 29 |
InputContext *ic, uint32_t unicode)); |
| 30 |
|
| 31 |
FCITX_ADDON_DECLARE_FUNCTION( |
| 32 |
Punctuation, getPunctuationCandidates, |
| 33 |
std::vector<std::string>(const std::string &language, uint32_t unicode)); |
| 34 |
|
| 35 |
#endif // _PUNCTUATION_PUNCTUATION_PUBLIC_H_ |