qskinny/src/inputpanel/QskHunspellTextPredictor.h

37 lines
985 B
C
Raw Normal View History

/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#ifndef QSK_HUNSPELL_TEXT_PREDICTOR_H
#define QSK_HUNSPELL_TEXT_PREDICTOR_H
#include "QskTextPredictor.h"
2022-03-23 14:43:05 +01:00
#include <qpair.h>
2018-04-20 08:52:26 +02:00
#include <memory>
class QSK_EXPORT QskHunspellTextPredictor : public QskTextPredictor
{
Q_OBJECT
using Inherited = QskTextPredictor;
2018-04-04 12:05:01 +02:00
2018-08-03 08:15:28 +02:00
public:
QskHunspellTextPredictor( const QLocale& locale, QObject* = nullptr );
2018-07-31 17:32:25 +02:00
~QskHunspellTextPredictor() override;
2018-08-03 08:15:28 +02:00
protected:
2018-07-31 17:32:25 +02:00
void request( const QString& ) override;
void reset() override;
virtual QPair< QString, QString > affAndDicFile( const QString&, const QLocale& );
2018-08-03 08:15:28 +02:00
private:
Q_INVOKABLE void loadDictionaries();
class PrivateData;
std::unique_ptr< PrivateData > m_data;
};
#endif