summaryrefslogtreecommitdiffstats
path: root/pacman-c++/animationmanager.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-04-04 11:27:54 +0200
committermanuel <manuel@mausz.at>2011-04-04 11:27:54 +0200
commita35824a3319ae9c304263185c4efc449e2c2cf73 (patch)
treef769dc8e8e06265594b2f0e5bda47163428c47be /pacman-c++/animationmanager.h
parent2a2c8d3b30e99e2bd636891a2eef27c0f35dcbc3 (diff)
downloadfoop-a35824a3319ae9c304263185c4efc449e2c2cf73.tar.gz
foop-a35824a3319ae9c304263185c4efc449e2c2cf73.tar.bz2
foop-a35824a3319ae9c304263185c4efc449e2c2cf73.zip
added simple pacman animation
Diffstat (limited to 'pacman-c++/animationmanager.h')
-rw-r--r--pacman-c++/animationmanager.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/pacman-c++/animationmanager.h b/pacman-c++/animationmanager.h
new file mode 100644
index 0000000..eb5b7d0
--- /dev/null
+++ b/pacman-c++/animationmanager.h
@@ -0,0 +1,33 @@
1#ifndef ANIMATIONMANAGER_H
2#define ANIMATIONMANAGER_H
3
4#include <QtCore/QObject>
5
6QT_BEGIN_NAMESPACE
7class QAbstractAnimation;
8QT_END_NAMESPACE
9
10class AnimationManager
11 : public QObject
12{
13Q_OBJECT
14public:
15 AnimationManager();
16 void registerAnimation(QAbstractAnimation *anim);
17 void unregisterAnimation(QAbstractAnimation *anim);
18 void unregisterAllAnimations();
19 static AnimationManager *self();
20
21public slots:
22 void pauseAll();
23 void resumeAll();
24
25private slots:
26 void unregisterAnimation_helper(QObject *obj);
27
28private:
29 static AnimationManager *instance;
30 QList<QAbstractAnimation *> animations;
31};
32
33#endif // ANIMATIONMANAGER_H