#include "quotient_common.h" #include using namespace Quotient; template inline QDebug suppressScopeAndDump(QDebug dbg, Enum e) { // Suppress "Quotient::" prefix QDebugStateSaver _dss(dbg); dbg.setVerbosity(0 /* QDebug::MinimumVerbosity since Qt 5.13 */); return qt_QMetaEnum_debugOperator(dbg, std::underlying_type_t(e), qt_getEnumMetaObject(e), qt_getEnumName(e)); } template inline QDebug suppressScopeAndDump(QDebug dbg, const QFlags& f) { // Suppress "Quotient::" prefix QDebugStateSaver _dss(dbg); dbg.setVerbosity(0 /* QDebug::MinimumVerbosity since Qt 5.13 */); return qt_QMetaEnum_flagDebugOperator_helper(dbg, f); } QDebug operator<<(QDebug dbg, Membership m) { return suppressScopeAndDump(dbg, m); } QDebug operator<<(QDebug dbg, MembershipMask mm) { return suppressScopeAndDump(dbg, mm) << ")"; } QDebug operator<<(QDebug dbg, JoinState js) { return suppressScopeAndDump(dbg, js); } QDebug operator<<(QDebug dbg, JoinStates jss) { return suppressScopeAndDump(dbg, jss) << ")"; }