qskinny/src/inputpanel/QskTextPredictor.h
Peter Hartmann 4c7c369477
Hunspell: Move prediction to an own thread (#159)
* text prediction: Move predictors to input panel

* hunspell: Move predictor to an own thread and update implementation
2022-02-04 16:10:44 +01:00

33 lines
828 B
C++

/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#ifndef QSK_TEXT_PREDICTOR_H
#define QSK_TEXT_PREDICTOR_H
#include <QskGlobal.h>
#include <qobject.h>
// abstract base class for input methods for retrieving predictive text
class QSK_EXPORT QskTextPredictor : public QObject
{
Q_OBJECT
public:
~QskTextPredictor() override;
public Q_SLOTS:
virtual void request( const QString& text ) = 0;
virtual void reset() = 0;
Q_SIGNALS:
void predictionChanged( const QString& text, const QStringList& candidates );
protected:
QskTextPredictor( QObject* );
};
#endif