User-visible Type and Interface strings in Module.

main
Teo Mrnjavac 8 years ago
parent d526935001
commit 2736ad6e09

@ -228,6 +228,38 @@ Module::location() const
}
QString
Module::typeString() const
{
switch ( type() )
{
case Job:
return "Job Module";
case View:
return "View Module";
}
return QString();
}
QString
Module::interfaceString() const
{
switch ( interface() )
{
case ProcessInterface:
return "External process";
case PythonInterface:
return "Python (Boost.Python)";
case PythonQtInterface:
return "Python (experimental)";
case QtPluginInterface:
return "Qt Plugin";
}
return QString();
}
bool
Module::isLoaded() const
{

@ -66,7 +66,9 @@ public:
virtual QStringList requiredModules() const;
virtual QString location() const final;
virtual Type type() const = 0;
virtual QString typeString() const;
virtual Interface interface() const = 0;
virtual QString interfaceString() const;
virtual bool isLoaded() const;

Loading…
Cancel
Save