#ifndef ANIMATIONMANAGER_H #define ANIMATIONMANAGER_H #include QT_BEGIN_NAMESPACE class QAbstractAnimation; QT_END_NAMESPACE class AnimationManager : public QObject { Q_OBJECT public: AnimationManager(); void registerAnimation(QAbstractAnimation *anim); void unregisterAnimation(QAbstractAnimation *anim); void unregisterAllAnimations(); static AnimationManager *self(); public slots: void pauseAll(); void resumeAll(); private slots: void unregisterAnimation_helper(QObject *obj); private: static AnimationManager *instance; QList animations; }; #endif // ANIMATIONMANAGER_H