|
Arduino DLNA Server
|
Abstract interface for DLNA device functionality. More...
#include <IDevice.h>

Public Member Functions | |
| virtual | ~IDevice ()=default |
| virtual bool | begin (DLNADeviceInfo &device, IUDPService &udp, IHttpServer &server)=0 |
| Initialize device with device info, UDP service, and HTTP server. | |
| virtual ISubscriptionMgrDevice & | getSubscriptionMgr ()=0 |
| Get subscription manager for event handling. | |
| virtual void | end ()=0 |
| Stop device and cleanup resources. | |
| virtual bool | loop (int loopActions=RUN_ALL)=0 |
| Process device loop for UDP and scheduler operations. | |
| virtual bool | loopServer ()=0 |
| Process HTTP server loop. | |
| virtual DLNAServiceInfo & | getService (const char *id)=0 |
| Get service by ID. | |
| virtual DLNAServiceInfo & | getServiceByAbbrev (const char *abbrev)=0 |
| Get service by abbreviation. | |
| virtual DLNAServiceInfo * | getServiceByEventPath (const char *requestPath)=0 |
| Get service by event subscription path. | |
| virtual void | addChange (const char *serviceAbbrev, std::function< size_t(Print &, void *)> changeWriter, void *ref)=0 |
| Add state change event for notification. | |
| virtual DLNADeviceInfo & | getDeviceInfo ()=0 |
| Get device information. | |
| virtual void | setSchedulerActive (bool flag)=0 |
| Enable/disable scheduler for periodic announcements. | |
| virtual bool | isSchedulerActive ()=0 |
| Check if scheduler is active. | |
| virtual void | setPostAliveRepeatMs (uint32_t ms)=0 |
| Set repeat interval for alive announcements (ms) | |
| virtual void | setSubscriptionsActive (bool flag)=0 |
| Enable/disable event subscriptions. | |
| virtual bool | isSubscriptionsActive () const =0 |
| Check if subscriptions are active. | |
| virtual void | setReference (void *ref)=0 |
| Set user reference pointer. | |
| virtual void * | getReference ()=0 |
| Get user reference pointer. | |
Abstract interface for DLNA device functionality.
Defines the contract for implementing a DLNA device that can advertise itself on the network, handle service requests, manage event subscriptions, and provide UPnP device capabilities. Provides methods for device lifecycle, service management, event handling, and periodic announcements.
|
virtualdefault |
|
pure virtual |
Add state change event for notification.
Implemented in tiny_dlna::DLNADevice< ClientType >.
|
pure virtual |
Initialize device with device info, UDP service, and HTTP server.
Implemented in tiny_dlna::DLNADevice< ClientType >.
|
pure virtual |
Stop device and cleanup resources.
Implemented in tiny_dlna::DLNADevice< ClientType >.
|
pure virtual |
Get device information.
Implemented in tiny_dlna::DLNADevice< ClientType >.
|
pure virtual |
Get user reference pointer.
Implemented in tiny_dlna::DLNADevice< ClientType >.
|
pure virtual |
Get service by ID.
Implemented in tiny_dlna::DLNADevice< ClientType >.
|
pure virtual |
Get service by abbreviation.
Implemented in tiny_dlna::DLNADevice< ClientType >.
|
pure virtual |
Get service by event subscription path.
Implemented in tiny_dlna::DLNADevice< ClientType >.
|
pure virtual |
Get subscription manager for event handling.
Implemented in tiny_dlna::DLNADevice< ClientType >.
|
pure virtual |
Check if scheduler is active.
Implemented in tiny_dlna::DLNADevice< ClientType >.
|
pure virtual |
Check if subscriptions are active.
Implemented in tiny_dlna::DLNADevice< ClientType >.
|
pure virtual |
Process device loop for UDP and scheduler operations.
Implemented in tiny_dlna::DLNADevice< ClientType >.
|
pure virtual |
Process HTTP server loop.
Implemented in tiny_dlna::DLNADevice< ClientType >.
|
pure virtual |
Set repeat interval for alive announcements (ms)
Implemented in tiny_dlna::DLNADevice< ClientType >.
|
pure virtual |
Set user reference pointer.
Implemented in tiny_dlna::DLNADevice< ClientType >.
|
pure virtual |
Enable/disable scheduler for periodic announcements.
Implemented in tiny_dlna::DLNADevice< ClientType >.
|
pure virtual |
Enable/disable event subscriptions.
Implemented in tiny_dlna::DLNADevice< ClientType >.