Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QtMultimediaPrivate::QMessageSpy::WaitToken Class Reference

#include <qmessagespy_p.h>

Collaboration diagram for QtMultimediaPrivate::QMessageSpy::WaitToken:

Public Member Functions

 WaitToken ()=delete
 WaitToken (WaitToken &&) noexcept=default
bool wait (std::chrono::milliseconds timeout=std::chrono::milliseconds{ 5000 }) const
bool matched () const

Friends

class QMessageSpy

Detailed Description

WaitToken is returned by expect(). Call wait() on it after the message-generating code runs.

Definition at line 120 of file qmessagespy_p.h.

Constructor & Destructor Documentation

◆ WaitToken() [1/2]

QtMultimediaPrivate::QMessageSpy::WaitToken::WaitToken ( )
delete

◆ WaitToken() [2/2]

QtMultimediaPrivate::QMessageSpy::WaitToken::WaitToken ( WaitToken && )
defaultnoexcept

Member Function Documentation

◆ matched()

bool QtMultimediaPrivate::QMessageSpy::WaitToken::matched ( ) const
inlinenodiscard

Definition at line 134 of file qmessagespy_p.h.

◆ wait()

bool QtMultimediaPrivate::QMessageSpy::WaitToken::wait ( std::chrono::milliseconds timeout = std::chrono::milliseconds{ 5000 }) const
inlinenodiscard

Definition at line 127 of file qmessagespy_p.h.

◆ QMessageSpy

friend class QMessageSpy
friend

Definition at line 137 of file qmessagespy_p.h.


The documentation for this class was generated from the following file: