Cute Chess 0.1
EngineManager Class Reference

Manages chess engines and their configurations. More...

#include <enginemanager.h>

Inheritance diagram for EngineManager:
QObject

Signals

void engineAboutToBeRemoved (int index)
void engineAdded (int index)
void enginesReset ()
void engineUpdated (int index)

Public Member Functions

void addEngine (const EngineConfiguration &engine)
EngineConfiguration engineAt (int index) const
int engineCount () const
 EngineManager (QObject *parent=nullptr)
QSet< QStringengineNames () const
QList< EngineConfigurationengines () const
void loadEngines (const QString &fileName)
void removeEngineAt (int index)
void saveEngines (const QString &fileName)
void setEngines (const QList< EngineConfiguration > &engines)
bool supportsVariant (const QString &variant) const
void updateEngineAt (int index, const EngineConfiguration &engine)

Detailed Description

Manages chess engines and their configurations.

See also
EngineConfiguration

Constructor & Destructor Documentation

◆ EngineManager()

EngineManager::EngineManager ( QObject * parent = nullptr)

Creates a new EngineManager.

Member Function Documentation

◆ addEngine()

void EngineManager::addEngine ( const EngineConfiguration & engine)

Adds engine to the list of available engines.

◆ engineAboutToBeRemoved

void EngineManager::engineAboutToBeRemoved ( int index)
signal

Emitted when an engine at index is about to be removed.

Note
This signal is emitted before the engine is removed so the index position is still valid.

◆ engineAdded

void EngineManager::engineAdded ( int index)
signal

Emitted when an engine is added to index.

◆ engineAt()

EngineConfiguration EngineManager::engineAt ( int index) const

Returns the engine at index.

◆ engineCount()

int EngineManager::engineCount ( ) const

Returns the number of available engines.

◆ engineNames()

QSet< QString > EngineManager::engineNames ( ) const

Returns the names of all configured engines.

◆ engines()

QList< EngineConfiguration > EngineManager::engines ( ) const

Returns the available engines.

◆ enginesReset

void EngineManager::enginesReset ( )
signal

Emitted when all previously queried engine information is now invalid and has to be queried again.

◆ engineUpdated

void EngineManager::engineUpdated ( int index)
signal

Emitted when an engine is updated at index.

◆ removeEngineAt()

void EngineManager::removeEngineAt ( int index)

Removes the engine at index.

◆ setEngines()

void EngineManager::setEngines ( const QList< EngineConfiguration > & engines)

Sets the available engines to engines.

◆ supportsVariant()

bool EngineManager::supportsVariant ( const QString & variant) const

Returns true if variant is supported by all engines; otherwise returns false.

◆ updateEngineAt()

void EngineManager::updateEngineAt ( int index,
const EngineConfiguration & engine )

Updates the engine at index with engine.


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