forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user