qskinny/inputcontext/QskHunspellTextPredictor.h

33 lines
890 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"
2018-04-20 08:52:26 +02:00
#include <memory>
class QSK_EXPORT QskHunspellTextPredictor : public QskTextPredictor
{
using Inherited = QskTextPredictor;
2018-04-04 12:05:01 +02:00
2018-08-03 08:15:28 +02:00
public:
2018-05-09 14:13:50 +02:00
QskHunspellTextPredictor( QObject* = nullptr );
2018-07-31 17:32:25 +02:00
~QskHunspellTextPredictor() override;
2018-07-31 17:32:25 +02:00
int candidateCount() const override;
QString candidate( int pos ) const 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;
2018-08-03 08:15:28 +02:00
private:
class PrivateData;
std::unique_ptr< PrivateData > m_data;
};
#endif