12 class test_ScopeGuard;
18 QT_WARNING_DISABLE_DEPRECATED
23 friend class ::test_ScopeGuard;
26 const std::function<void()> mFunction;
29 ScopeGuard(
const std::function<
void()>& pFunc,
bool pEnabled =
true);
31 bool isEnabled()
const;
32 void setEnabled(
bool pEnabled =
true);
50 #if (QT_VERSION < QT_VERSION_CHECK(5, 12, 0))
51 inline ScopeGuard qScopeGuard(
const std::function<
void()>& pFunc)
53 return ScopeGuard(pFunc);
Definition: ScopeGuard.h:21
ScopeGuard & operator=(const ScopeGuard &pCopy)=delete
ScopeGuard(const ScopeGuard &pCopy)=delete
friend ScopeGuard qScopeGuard(const std::function< void()> &pFunc)
void dismiss()
Definition: ScopeGuard.h:42
ScopeGuard & operator=(const ScopeGuard &&pCopy)=delete
ScopeGuard(const ScopeGuard &&pCopy)=delete
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15