qskinny/src/inputpanel/QskTextPredictor.h

33 lines
802 B
C
Raw Normal View History

2018-02-06 13:55:35 +00:00
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
2023-04-06 07:23:37 +00:00
* SPDX-License-Identifier: BSD-3-Clause
2018-02-06 13:55:35 +00:00
*****************************************************************************/
#ifndef QSK_TEXT_PREDICTOR_H
#define QSK_TEXT_PREDICTOR_H
2017-07-21 16:21:34 +00:00
#include <QskGlobal.h>
2018-07-19 12:10:48 +00:00
#include <qobject.h>
2017-07-21 16:21:34 +00:00
// abstract base class for input methods for retrieving predictive text
class QSK_EXPORT QskTextPredictor : public QObject
2017-07-21 16:21:34 +00:00
{
Q_OBJECT
2018-08-03 06:15:28 +00:00
public:
2018-07-31 15:32:25 +00:00
~QskTextPredictor() override;
2017-07-21 16:21:34 +00:00
public Q_SLOTS:
virtual void request( const QString& text ) = 0;
virtual void reset() = 0;
2018-04-20 06:52:26 +00:00
2018-08-03 06:15:28 +00:00
Q_SIGNALS:
void predictionChanged( const QString& text, const QStringList& candidates );
2017-07-21 16:21:34 +00:00
2018-08-03 06:15:28 +00:00
protected:
QskTextPredictor( QObject* );
2018-04-20 06:52:26 +00:00
};
2018-04-11 09:02:29 +00:00
#endif