Arduino DLNA Server
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Attributes | List of all members
tiny_dlna::CallbackSchedule Class Reference

Generic Schedule that invokes a callback function. More...

#include <Schedule.h>

Inheritance diagram for tiny_dlna::CallbackSchedule:
Inheritance graph
[legend]

Public Member Functions

 CallbackSchedule (std::function< bool(void *ref)> cb, void *ref)
 
const char * name () override
 
bool process (IUDPService &udp) override
 
virtual bool isValid ()
 
 operator bool ()
 

Public Attributes

void * reference = nullptr
 
uint64_t time = 0
 
uint32_t repeat_ms = 0
 
uint64_t end_time = 0
 
bool active = false
 
IPAddressAndPort address
 
bool report_ip = false
 

Protected Attributes

std::function< bool(void *ref)> callback
 

Detailed Description

Generic Schedule that invokes a callback function.

Author
Phil Schatzmann

Constructor & Destructor Documentation

◆ CallbackSchedule()

tiny_dlna::CallbackSchedule::CallbackSchedule ( std::function< bool(void *ref)>  cb,
void *  ref 
)
inline

Member Function Documentation

◆ isValid()

virtual bool tiny_dlna::Schedule::isValid ( )
inlinevirtualinherited

◆ name()

const char * tiny_dlna::CallbackSchedule::name ( )
inlineoverridevirtual

Reimplemented from tiny_dlna::Schedule.

◆ operator bool()

tiny_dlna::Schedule::operator bool ( )
inlineinherited

◆ process()

bool tiny_dlna::CallbackSchedule::process ( IUDPService udp)
inlineoverridevirtual

Reimplemented from tiny_dlna::Schedule.

Member Data Documentation

◆ active

bool tiny_dlna::Schedule::active = false
inherited

◆ address

IPAddressAndPort tiny_dlna::Schedule::address
inherited

◆ callback

std::function<bool(void* ref)> tiny_dlna::CallbackSchedule::callback
protected

◆ end_time

uint64_t tiny_dlna::Schedule::end_time = 0
inherited

◆ reference

void* tiny_dlna::CallbackSchedule::reference = nullptr

◆ repeat_ms

uint32_t tiny_dlna::Schedule::repeat_ms = 0
inherited

◆ report_ip

bool tiny_dlna::Schedule::report_ip = false
inherited

◆ time

uint64_t tiny_dlna::Schedule::time = 0
inherited

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