2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@sns.it>
3 (c) 2006 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
16 #include <boost/shared_ptr.hpp>
17 #include "controllers/entitytoken.h"
22 struct EngineDetails
{
37 EngineDetails(const QString
& name
, const QString
& path
, const EngineType
& type
)
38 : name(name
), path(path
), type(type
) { }
41 static QString
typeName(EngineType t
) {
58 static EngineType
typeFromName(const QString
& name
) {
61 else if (name
== "UCI")
63 else if (name
== "tagua-text")
65 else if (name
== "tagua-dbus")
67 else if (name
== "gnushogi")
73 class EngineInfo
: public QObject
{
75 EngineDetails m_details
;
79 virtual boost::shared_ptr
<Engine
> engine();
81 EngineInfo(const EngineDetails
& details
, UI
& ui
);
82 void setWorkPath(const QString
& wp
) { m_details
.workPath
= wp
; }
89 #endif // ENGINEINFO_H