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

Scheduler which processes all due Schedules (to send out UDP replies) More...

#include <Scheduler.h>

Public Member Functions

void add (Schedule *schedule)
 Add a schedule to the scheduler.
 
int execute (IUDPService &udp)
 Execute all due schedules.
 
bool isMSearchActive ()
 Returns true if there is any active schedule with name "MSearch".
 
int size ()
 Number of queued schedules.
 
void setActive (bool flag)
 
bool isActive ()
 

Protected Member Functions

void cleanup ()
 

Protected Attributes

Vector< Schedule * > queue
 
bool is_active = true
 

Detailed Description

Scheduler which processes all due Schedules (to send out UDP replies)

Author
Phil Schatzmann

Member Function Documentation

◆ add()

void tiny_dlna::Scheduler::add ( Schedule schedule)
inline

Add a schedule to the scheduler.

◆ cleanup()

void tiny_dlna::Scheduler::cleanup ( )
inlineprotected

◆ execute()

int tiny_dlna::Scheduler::execute ( IUDPService udp)
inline

Execute all due schedules.

◆ isActive()

bool tiny_dlna::Scheduler::isActive ( )
inline

◆ isMSearchActive()

bool tiny_dlna::Scheduler::isMSearchActive ( )
inline

Returns true if there is any active schedule with name "MSearch".

◆ setActive()

void tiny_dlna::Scheduler::setActive ( bool  flag)
inline

◆ size()

int tiny_dlna::Scheduler::size ( )
inline

Number of queued schedules.

Member Data Documentation

◆ is_active

bool tiny_dlna::Scheduler::is_active = true
protected

◆ queue

Vector<Schedule*> tiny_dlna::Scheduler::queue
protected

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