40 static const QString uninstalled(
"UNINSTALLED");
41 static const QString installed(
"INSTALLED");
42 static const QString resolved(
"RESOLVED");
43 static const QString starting(
"STARTING");
44 static const QString stopping(
"STOPPING");
45 static const QString active(
"ACTIVE");
52 case ctkPlugin::UNINSTALLED:
return uninstalled;
53 case ctkPlugin::INSTALLED:
return installed;
54 case ctkPlugin::RESOLVED:
return resolved;
55 case ctkPlugin::STARTING:
return starting;
56 case ctkPlugin::STOPPING:
return stopping;
57 case ctkPlugin::ACTIVE:
return active;
58 default:
return QString(
"unknown");
64 text = text.toUpper();
66 if (text==uninstalled)
67 return ctkPlugin::UNINSTALLED;
69 return ctkPlugin::INSTALLED;
71 return ctkPlugin::RESOLVED;
73 return ctkPlugin::STARTING;
75 return ctkPlugin::STOPPING;
77 return ctkPlugin::ACTIVE;
79 return ctkPlugin::UNINSTALLED;
QString getStringForctkPluginState(const ctkPlugin::State state)
ctkPlugin::State getctkPluginStateForString(QString text)
Namespace for all CustusX production code.