25 #include "configuration/doomseekerconfig.h"
26 #include "ini/inisection.h"
27 #include "ini/inivariable.h"
29 #include "plugins/engineplugin.h"
59 return d->exeTypeName;
73 QString path = setting.
value().toString();
75 if (path.trimmed().isEmpty())
84 if (!fi.exists() || (fi.isDir() && !fi.isBundle()))
88 error = tr(
"Executable for %1 %2:\n%3\nis a directory or doesn't exist.")
90 .arg(fi.absoluteFilePath());
95 return fi.absoluteFilePath();
100 return d->programName;
105 d->configKey = keyName;
110 d->exeTypeName = name;
115 d->programName = name;
121 return fi.absolutePath();
void setProgramName(const QString &name)
Plugin setter for programName().
const QString & programName() const
Name of the program this executable belongs to (ex. "Odamex").
INI variable representation.
void setExeTypeName(const QString &name)
Plugin setter for exeTypeName().
const QString & exeTypeName() const
Name of the type of the executable (server, client, etc.).
Message object used to pass messages throughout the Doomseeker's system.
virtual Message install(QWidget *parent)
Attempts to install the binary.
void setConfigKey(const QString &keyName)
Plugin setter for configKey().
QVariant value() const
Extracts the value as QVariant.
const QString & configKey() const
Config key where executable path on current system can be remembered.
virtual QString pathToExe(Message &message)
Returns the path to the executable file.
INI section representation.
virtual QString workingDirectory(Message &message)
Path to this executable working directory.
static Message customError(const QString &content)
Convenience method. Sets type to Type::CUSTOM_ERROR.
Access to external program executables (game clients, servers, and so on).