# KDChartSignalCompressor.h

Go to the documentation of this file.

    00001 #ifndef KDCHARTSIGNALCOMPRESSOR_H
    00002 #define KDCHARTSIGNALCOMPRESSOR_H
    00003
    00004 #include <QObject>
    00005 #include <QTimer>
    00006
    00007 namespace KDChart {
    00008
    00029     class SignalCompressor : public QObject
    00030     {
    00031         Q_OBJECT
    00032
    00033     public:
    00034         SignalCompressor( QObject* receiver, const char* signal,
    00035                           QObject* parent = 0 );
    00036
    00037     Q_SIGNALS:
    00038         void finallyEmit();
    00039
    00040     public Q_SLOTS:
    00041         void emitSignal(); // emit() won't work, because of stupid defines
    00042
    00043     private Q_SLOTS:
    00044         void nowGoAlready();
    00045
    00046     private:
    00047         QTimer m_timer;
    00048     };
    00049
    00050 }
    00051
    00052 #endif