|
Krita Source Code Documentation
|
#include <kis_thread_safe_signal_compressor.h>
Inheritance diagram for KisThreadSafeSignalCompressor:Public Slots | |
| void | setDelay (int delay) |
| void | start () |
| void | stop () |
Signals | |
| void | internalRequestSignal () |
| void | internalSetDelay (int delay) |
| void | internalStopSignal () |
| void | timeout () |
Public Member Functions | |
| bool | isActive () const |
| KisThreadSafeSignalCompressor (int delay, KisSignalCompressor::Mode mode) | |
Private Attributes | |
| KisSignalCompressor * | m_compressor |
A special class which works exactly like KisSignalCompressor, but supports calling start() method from within the context of another thread. If it happens, it posts a message to Qt's event loop and the start() signal is delivered when event loop gets executes again.
WARNING: After creation this object moves itself into the main thread, so one must not delete it explicitly. Use deleteLater() instead. Moving into another thread is another reason why it cannot have parent QObject.
Definition at line 27 of file kis_thread_safe_signal_compressor.h.
| KisThreadSafeSignalCompressor::KisThreadSafeSignalCompressor | ( | int | delay, |
| KisSignalCompressor::Mode | mode ) |
Definition at line 12 of file kis_thread_safe_signal_compressor.cpp.
References connect(), internalRequestSignal(), internalSetDelay(), internalStopSignal(), m_compressor, setDelay(), start(), stop(), and timeout().
|
signal |
|
signal |
|
signal |
| bool KisThreadSafeSignalCompressor::isActive | ( | ) | const |
Definition at line 25 of file kis_thread_safe_signal_compressor.cpp.
References KisSignalCompressor::isActive(), and m_compressor.
|
slot |
Definition at line 30 of file kis_thread_safe_signal_compressor.cpp.
References internalSetDelay().
|
slot |
Definition at line 35 of file kis_thread_safe_signal_compressor.cpp.
References internalRequestSignal().
|
slot |
Definition at line 40 of file kis_thread_safe_signal_compressor.cpp.
References internalStopSignal().
|
signal |
|
private |
Definition at line 47 of file kis_thread_safe_signal_compressor.h.