js8call/JS8_Main/TwoPhaseSignal.h
Chris-AC9KH 356bdc0f50 Code cleanup - move loose source and header files in source tree to group folders
Rename all header files with .h extension
Fix function declaration in HamlibTransceiver.h that overrode member function but was not marked override
Remove unused variable in Modulator.cpp
Remove unused files from source tree
Remove duplicate LazyFillComboBox files
Reformat codebase to LLVM C++ standard
2026-01-02 16:46:38 -06:00

26 lines
734 B
C++

#ifndef TWOPHASESIGNAL_H
#define TWOPHASESIGNAL_H
#include <QObject>
/**
* This is a humble helper class for Qt signals and slots when this mechanism is
* also used to initialize the data. In that case, we first do the "plumbing"
* phase, where signals and slots are connected as appropriate. After that has
* been completed, signals are to be sent in a volley so that an required
* initial values are being set.
*/
class TwoPhaseSignal : public QObject {
Q_OBJECT
public:
TwoPhaseSignal();
~TwoPhaseSignal();
public slots:
/**
* Called when the plumbing has been completed.
* The object should react by fireing its signals.
*/
virtual void onPlumbingCompleted() const = 0;
};
#endif