qskinny/src/inputpanel/QskHunspellTextPredictor.h

37 lines
959 B
C
Raw Normal View History

/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
2023-04-06 07:23:37 +00:00
* SPDX-License-Identifier: BSD-3-Clause
*****************************************************************************/
#ifndef QSK_HUNSPELL_TEXT_PREDICTOR_H
#define QSK_HUNSPELL_TEXT_PREDICTOR_H
#include "QskTextPredictor.h"
2022-03-23 13:43:05 +00:00
#include <qpair.h>
2018-04-20 06:52:26 +00:00
#include <memory>
class QSK_EXPORT QskHunspellTextPredictor : public QskTextPredictor
{
Q_OBJECT
using Inherited = QskTextPredictor;
2018-04-04 10:05:01 +00:00
2018-08-03 06:15:28 +00:00
public:
QskHunspellTextPredictor( const QLocale& locale, QObject* = nullptr );
2018-07-31 15:32:25 +00:00
~QskHunspellTextPredictor() override;
2018-08-03 06:15:28 +00:00
protected:
2018-07-31 15:32:25 +00:00
void request( const QString& ) override;
void reset() override;
virtual QPair< QString, QString > affAndDicFile( const QString&, const QLocale& );
2018-08-03 06:15:28 +00:00
private:
Q_INVOKABLE void loadDictionaries();
class PrivateData;
std::unique_ptr< PrivateData > m_data;
};
#endif