Changeset View
Changeset View
Standalone View
Standalone View
effectloader.h
Show All 13 Lines | |||||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #ifndef KWIN_EFFECT_LOADER_H | 20 | #ifndef KWIN_EFFECT_LOADER_H | ||
21 | #define KWIN_EFFECT_LOADER_H | 21 | #define KWIN_EFFECT_LOADER_H | ||
22 | #include <kwin_export.h> | ||||
22 | // KDE | 23 | // KDE | ||
23 | #include <KPluginMetaData> | 24 | #include <KPluginMetaData> | ||
24 | #include <KSharedConfig> | 25 | #include <KSharedConfig> | ||
25 | // Qt | 26 | // Qt | ||
26 | #include <QObject> | 27 | #include <QObject> | ||
27 | #include <QFlags> | 28 | #include <QFlags> | ||
28 | #include <QMap> | 29 | #include <QMap> | ||
29 | #include <QPair> | 30 | #include <QPair> | ||
▲ Show 20 Lines • Show All 267 Lines • ▼ Show 20 Line(s) | 295 | private: | |||
297 | EffectLoadQueue<BuiltInEffectLoader, BuiltInEffect> *m_queue; | 298 | EffectLoadQueue<BuiltInEffectLoader, BuiltInEffect> *m_queue; | ||
298 | QMap<BuiltInEffect, Effect*> m_loadedEffects; | 299 | QMap<BuiltInEffect, Effect*> m_loadedEffects; | ||
299 | }; | 300 | }; | ||
300 | 301 | | |||
301 | /** | 302 | /** | ||
302 | * @brief Can load scripted Effects | 303 | * @brief Can load scripted Effects | ||
303 | * | 304 | * | ||
304 | */ | 305 | */ | ||
305 | class ScriptedEffectLoader : public AbstractEffectLoader | 306 | class KWIN_EXPORT ScriptedEffectLoader : public AbstractEffectLoader | ||
306 | { | 307 | { | ||
307 | Q_OBJECT | 308 | Q_OBJECT | ||
308 | public: | 309 | public: | ||
309 | explicit ScriptedEffectLoader(QObject* parent = nullptr); | 310 | explicit ScriptedEffectLoader(QObject* parent = nullptr); | ||
310 | ~ScriptedEffectLoader() override; | 311 | ~ScriptedEffectLoader() override; | ||
311 | 312 | | |||
312 | bool hasEffect(const QString &name) const override; | 313 | bool hasEffect(const QString &name) const override; | ||
313 | bool isEffectSupported(const QString &name) const override; | 314 | bool isEffectSupported(const QString &name) const override; | ||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |