qskinny/inputcontext/QskHunspellCompositionModel.h

33 lines
978 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_COMPOSITION_MODEL_H
#define QSK_HUNSPELL_COMPOSITION_MODEL_H
#include "QskInputCompositionModel.h"
2018-04-20 08:52:26 +02:00
#include <memory>
class QskHunspellCompositionModel : public QskInputCompositionModel
{
2018-04-04 12:05:01 +02:00
using Inherited = QskInputCompositionModel;
public:
2018-04-04 15:19:51 +02:00
QskHunspellCompositionModel( QskInputContext* context );
virtual ~QskHunspellCompositionModel() override;
virtual int candidateCount() const override;
virtual QString candidate( int pos ) const override;
protected:
2018-04-20 08:52:26 +02:00
virtual void requestCandidates( const QString& ) override;
virtual void resetCandidates() override;
private:
class PrivateData;
std::unique_ptr< PrivateData > m_data;
};
#endif