plasma-framework/tests/sharedtimertest.h
Aaron J. Seigo a9b7d3361d one way of doing a shared timer with just one timerId at any given moment in a single timerEvent
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=792012
2008-03-30 22:42:53 +00:00

32 lines
381 B
C++

#ifndef SHAREDTIMERTEST_H
#define SHAREDTIMERTEST_H
#include <QList>
#include <QObject>
namespace Plasma
{
class Timer;
} // namespace Plasma
class Tester : public QObject
{
Q_OBJECT
public:
Tester(int rounds);
private Q_SLOTS:
void timeout();
private:
int m_count;
int m_round;
int m_targetRounds;
QList<Plasma::Timer*> m_order;
};
#endif