2018-03-30 18:31:13 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
|
|
* This file may be used under the terms of the QSkinny License, Version 1.0
|
|
|
|
*****************************************************************************/
|
2018-03-30 01:15:05 -07:00
|
|
|
|
2018-04-26 14:42:33 +02:00
|
|
|
#ifndef QSK_HUNSPELL_TEXT_PREDICTOR_H
|
|
|
|
#define QSK_HUNSPELL_TEXT_PREDICTOR_H
|
2018-03-30 01:15:05 -07:00
|
|
|
|
2018-04-26 14:42:33 +02:00
|
|
|
#include "QskTextPredictor.h"
|
2018-04-20 08:52:26 +02:00
|
|
|
#include <memory>
|
2018-03-30 01:15:05 -07:00
|
|
|
|
2018-04-26 14:42:33 +02:00
|
|
|
class QSK_EXPORT QskHunspellTextPredictor : public QskTextPredictor
|
2018-03-30 01:15:05 -07:00
|
|
|
{
|
2018-04-26 14:42:33 +02:00
|
|
|
using Inherited = QskTextPredictor;
|
2018-04-04 12:05:01 +02:00
|
|
|
|
2018-03-30 01:15:05 -07:00
|
|
|
public:
|
2018-05-09 14:13:50 +02:00
|
|
|
QskHunspellTextPredictor( QObject* = nullptr );
|
2018-04-26 14:42:33 +02:00
|
|
|
virtual ~QskHunspellTextPredictor() override;
|
2018-03-30 01:15:05 -07:00
|
|
|
|
2018-03-30 18:31:13 +02:00
|
|
|
virtual int candidateCount() const override;
|
|
|
|
virtual QString candidate( int pos ) const override;
|
2018-03-30 01:15:05 -07:00
|
|
|
|
|
|
|
protected:
|
2018-04-26 14:42:33 +02:00
|
|
|
virtual void request( const QString& ) override;
|
|
|
|
virtual void reset() override;
|
2018-03-30 01:15:05 -07:00
|
|
|
|
|
|
|
private:
|
2018-03-30 18:31:13 +02:00
|
|
|
class PrivateData;
|
|
|
|
std::unique_ptr< PrivateData > m_data;
|
2018-03-30 01:15:05 -07:00
|
|
|
};
|
|
|
|
|
2018-03-30 18:31:13 +02:00
|
|
|
#endif
|