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
{
36 EngineDetails(const QString
& name
, const QString
& path
, const EngineType
& type
)
37 : name(name
), path(path
), type(type
) { }
40 static QString
typeName(EngineType t
) {
55 static EngineType
typeFromName(const QString
& name
) {
58 else if (name
== "UCI")
60 else if (name
== "tagua-text")
62 else if (name
== "tagua-dbus")
68 class EngineInfo
: public QObject
{
70 EngineDetails m_details
;
74 virtual boost::shared_ptr
<Engine
> engine();
76 EngineInfo(const EngineDetails
& details
, UI
& ui
);
77 void setWorkPath(const QString
& wp
) { m_details
.workPath
= wp
; }
84 #endif // ENGINEINFO_H