Cute Chess  0.1
Public Member Functions | List of all members
EngineConfigurationModel Class Reference

The EngineConfigurationModel class represents a chess engine configuration based model. More...

#include <engineconfigurationmodel.h>

Inheritance diagram for EngineConfigurationModel:
QAbstractListModel

Public Member Functions

QString chessVariant () const
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
 
virtual QVariant data (const QModelIndex &index, int role) const
 
 EngineConfigurationModel (EngineManager *engineManager, QObject *parent=nullptr)
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
 
void setChessVariant (const QString &variant)
 
virtual ~EngineConfigurationModel ()
 

Detailed Description

The EngineConfigurationModel class represents a chess engine configuration based model.

EngineConfigurationModel is the model part in the Model-View architecture.

The model contains the data providing view classes access to it. When the model is updated (either from the view or by calling methods), all the views are notified about the updates.

EngineConfigurationModel is a list based model; its items don't have parent-child relationship.

Almost all of the method calls are inherited from QAbstractItemModel. Refer to QAbstractItemModel's documentation for better overview of each method.

Constructor & Destructor Documentation

EngineConfigurationModel::EngineConfigurationModel ( EngineManager engineManager,
QObject parent = nullptr 
)

Creates an empty model.

EngineConfigurationModel::~EngineConfigurationModel ( )
virtual

Destroys the model.

Member Function Documentation

QString EngineConfigurationModel::chessVariant ( ) const

Returns the chosen chess variant.

By default an empty string is returned, meaning that engines are not filtered by their supported variants.

void EngineConfigurationModel::setChessVariant ( const QString variant)

Sets the chosen chess variant to variant.


The documentation for this class was generated from the following files: