forked from Isarhamster/chessx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enginelist.h
36 lines (31 loc) · 1.39 KB
/
enginelist.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/***************************************************************************
* (C) 2010 Michal Rudolf <[email protected]> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
***************************************************************************/
#ifndef ENGINELIST_H
#define ENGINELIST_H
#include <QtCore>
#include "enginedata.h"
/** The EngineList class contains configuration of all installed engines. */
class EngineList : public QList<EngineData>
{
public:
/** Standard constructor. */
EngineList();
/** Restore configuration from INI file. */
void restore();
/** Store configuration in INI file. */
void save();
/** Retrieve list of engine names in current order. */
QStringList names() const;
protected:
/** Set the content of the default engine directories into the list of engines */
void restoreEmpty();
/** Set the content of the given directory into the list of engines */
void restoreEmptyFromPath(const QString &path, EngineData::EngineProtocol protocol);
};
#endif // ENGINELIST_H