pianod2
multisource multiuser scriptable networked music player
Public Types | Public Attributes | Static Public Attributes | List of all members
WaitEvent Class Reference

Details of an event being awaited. More...

#include <connection.h>

Public Types

enum class  Type { None , SourceReady , TrackEnded , TrackStarted }
 Kinds of events that can be waited for. More...
 

Public Attributes

Type event = Type::None
 The kind of event being awaited. More...
 
const void * parameter
 Identifies a specific event instance. More...
 
time_t timeout = 0
 Time at which to stop waiting. More...
 
bool close_after_event = false
 True if connection is 'AS USER' and should closed after event. More...
 

Static Public Attributes

static time_t nextTimeout = FAR_FUTURE
 

Detailed Description

Details of an event being awaited.

Member Enumeration Documentation

◆ Type

enum WaitEvent::Type
strong

Kinds of events that can be waited for.

Enumerator
None 
SourceReady 
TrackEnded 
TrackStarted 

Member Data Documentation

◆ close_after_event

bool WaitEvent::close_after_event = false

True if connection is 'AS USER' and should closed after event.

Next timeout time, here to avoid unnecessary recalculation.

◆ event

Type WaitEvent::event = Type::None

The kind of event being awaited.

◆ nextTimeout

time_t WaitEvent::nextTimeout = FAR_FUTURE
static

◆ parameter

const void* WaitEvent::parameter

Identifies a specific event instance.

◆ timeout

time_t WaitEvent::timeout = 0

Time at which to stop waiting.


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