Cute Chess  0.1
Signals | Public Member Functions | List of all members
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 ( QObject parent = nullptr)

Creates a new EngineManager.

Member Function Documentation

void EngineManager::addEngine ( const EngineConfiguration engine)

Adds engine to the list of available engines.

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.
void EngineManager::engineAdded ( int  index)
signal

Emitted when an engine is added to index.

EngineConfiguration EngineManager::engineAt ( int  index) const

Returns the engine at index.

int EngineManager::engineCount ( ) const

Returns the number of available engines.

QSet< QString > EngineManager::engineNames ( ) const

Returns the names of all configured engines.

QList< EngineConfiguration > EngineManager::engines ( ) const

Returns the available engines.

void EngineManager::enginesReset ( )
signal

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

void EngineManager::engineUpdated ( int  index)
signal

Emitted when an engine is updated at index.

void EngineManager::removeEngineAt ( int  index)

Removes the engine at index.

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

Sets the available engines to engines.

bool EngineManager::supportsVariant ( const QString variant) const

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

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: