diff options
Diffstat (limited to 'SwifTools/SpellCheckerFactory.h')
-rw-r--r-- | SwifTools/SpellCheckerFactory.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/SwifTools/SpellCheckerFactory.h b/SwifTools/SpellCheckerFactory.h new file mode 100644 index 0000000..91118f9 --- /dev/null +++ b/SwifTools/SpellCheckerFactory.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2011 Vlad Voicu + * Licensed under the Simplified BSD license. + * See Documentation/Licenses/BSD-simplified.txt for more information. + */ + +#pragma once + +#include <Swiften/Base/Platform.h> + +#ifdef HAVE_HUNSPELL +#define HAVE_SPELLCHECKER +#elif defined(SWIFTEN_PLATFORM_MACOSX) +#define HAVE_SPELLCHECKER +#endif + +namespace Swift { + class SpellChecker; + class SpellCheckerFactory { + public: + SpellCheckerFactory(); + SpellChecker* createSpellChecker(const std::string& dictFile); + }; +} |