Changeset View
Changeset View
Standalone View
Standalone View
kerfuffle/plugin.h
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Line(s) | 76 | public: | |||
---|---|---|---|---|---|
81 | bool isEnabled() const; | 81 | bool isEnabled() const; | ||
82 | void setEnabled(bool enabled); | 82 | void setEnabled(bool enabled); | ||
83 | bool isReadWrite() const; | 83 | bool isReadWrite() const; | ||
84 | QStringList readOnlyExecutables() const; | 84 | QStringList readOnlyExecutables() const; | ||
85 | QStringList readWriteExecutables() const; | 85 | QStringList readWriteExecutables() const; | ||
86 | KPluginMetaData metaData() const; | 86 | KPluginMetaData metaData() const; | ||
87 | 87 | | |||
88 | /** | 88 | /** | ||
89 | * @return Whether the executables required for a functional plugin are installed. | ||||
90 | * This is true if all the read-only executables are found in the path. | ||||
91 | */ | ||||
92 | bool hasRequiredExecutables() const; | ||||
93 | | ||||
94 | /** | ||||
89 | * @return Whether the plugin is ready to be used. | 95 | * @return Whether the plugin is ready to be used. | ||
90 | * This implies isEnabled(), while an enabled plugin may not be valid. | 96 | * This implies isEnabled(), while an enabled plugin may not be valid. | ||
91 | * A read-write plugin downgraded to read-only is still valid. | 97 | * A read-write plugin downgraded to read-only is still valid. | ||
92 | */ | 98 | */ | ||
93 | bool isValid() const; | 99 | bool isValid() const; | ||
94 | 100 | | |||
95 | signals: | 101 | signals: | ||
96 | void enabledChanged(); | 102 | void enabledChanged(); | ||
Show All 15 Lines |