PluginSpec: Naming and encapsulation improvements

Prefer enabled state as a property as opposed to disabled state, and
make setter correspond to getter. Also move setters into private.

Change-Id: I5d002a12f4e540d5b38cc5865490d056ec75f296
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
Eike Ziller
2015-03-31 09:55:50 +02:00
parent fcc6b11230
commit d456fd0b8a
7 changed files with 72 additions and 64 deletions

View File

@@ -66,6 +66,11 @@ public:
IPlugin::ShutdownFlag stop();
void kill();
void setEnabledBySettings(bool value);
void setEnabledByDefault(bool value);
void setForceEnabled(bool value);
void setForceDisabled(bool value);
QPluginLoader loader;
QString name;
@@ -73,7 +78,7 @@ public:
QString compatVersion;
bool required;
bool experimental;
bool disabledByDefault;
bool enabledByDefault;
QString vendor;
QString copyright;
QString license;
@@ -82,7 +87,7 @@ public:
QString category;
QRegExp platformSpecification;
QVector<PluginDependency> dependencies;
bool enabledInSettings;
bool enabledBySettings;
bool disabledIndirectly;
bool forceEnabled;
bool forceDisabled;