File indexing completed on 2024-07-14 03:58:39

0001 /*
0002     SPDX-FileCopyrightText: 2021 Jonah BrĂ¼chert <jbb@kaidan.im>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KIRIGAMIPLASMADESKTOPUNITS_H
0008 #define KIRIGAMIPLASMADESKTOPUNITS_H
0009 
0010 #include <QObject>
0011 #include <QPropertyNotifier>
0012 
0013 #include <Kirigami/Platform/Units>
0014 
0015 class AnimationSpeedProvider;
0016 
0017 class PlasmaDesktopUnits : public Kirigami::Platform::Units
0018 {
0019     Q_OBJECT
0020 
0021 public:
0022     explicit PlasmaDesktopUnits(QObject *parent = nullptr);
0023 
0024     void updateAnimationSpeed();
0025 
0026 private:
0027     std::unique_ptr<AnimationSpeedProvider> m_animationSpeedProvider;
0028     QPropertyNotifier m_notifier;
0029 };
0030 
0031 #endif