|
Arduino DLNA Server
|
Abstract interface for DLNA Control Point functionality. More...
#include <IControlPoint.h>
Public Member Functions | |
| virtual | ~IControlPoint ()=default |
| virtual void | setParseDevice (bool flag)=0 |
| Enable/disable parsing of device descriptions during discovery. | |
| virtual void | setLocalURL (Url url)=0 |
| Set the local callback URL for event subscriptions. | |
| virtual void | setLocalURL (IPAddress url, int port=9001, const char *path="")=0 |
| Set the local callback URL for event subscriptions. | |
| virtual void | setSearchRepeatMs (int repeatMs)=0 |
| Set the repeat interval for M-SEARCH requests. | |
| virtual void | setReference (void *ref)=0 |
| Set user reference pointer for callbacks. | |
| virtual void | setDeviceIndex (int idx)=0 |
| Set index of device to operate on. | |
| virtual void | setEventSubscriptionCallback (std::function< void(const char *sid, const char *varName, const char *newValue, void *reference)> cb, void *ref=nullptr)=0 |
| Set callback for event subscription notifications. | |
| virtual void | setHttpServer (IHttpServer &server)=0 |
| Set HTTP server for handling event callbacks. | |
| virtual void | onResultNode (std::function< void(const char *nodeName, const char *text, const char *attributes)> cb)=0 |
| Set callback for processing XML result nodes. | |
| virtual bool | begin (const char *searchTarget="ssdp:all", uint32_t minWaitMs=3000, uint32_t maxWaitMs=60000)=0 |
| Start discovery with default HTTP/UDP services. | |
| virtual bool | begin (IHttpRequest &http, IUDPService &udp, const char *searchTarget="ssdp:all", uint32_t minWaitMs=3000, uint32_t maxWaitMs=60000)=0 |
| Start discovery with provided HTTP/UDP services. | |
| virtual void | end ()=0 |
| Stop discovery and cleanup resources. | |
| virtual ActionRequest & | addAction (ActionRequest act)=0 |
| Queue an action for execution. | |
| virtual ActionReply & | executeActions (XMLCallback xmlProcessor=nullptr)=0 |
| Execute queued actions and process responses. | |
| virtual bool | loop ()=0 |
| Process discovery loop and handle events. | |
| virtual DLNAServiceInfo & | getService (const char *id)=0 |
| Get service by ID from discovered devices. | |
| virtual DLNADeviceInfo & | getDevice ()=0 |
| Get current device (by index) | |
| virtual DLNADeviceInfo & | getDevice (int idx)=0 |
| Get device by index. | |
| virtual DLNADeviceInfo & | getDevice (DLNAServiceInfo &service)=0 |
| Get device containing the specified service. | |
| virtual DLNADeviceInfo & | getDevice (Url location)=0 |
| Get device by location URL. | |
| virtual Vector< DLNADeviceInfo > & | getDevices ()=0 |
| Get list of all discovered devices. | |
| virtual const char * | getUrl (DLNADeviceInfo &device, const char *suffix, char *buffer, int len)=0 |
| Build URL for device service endpoint. | |
| virtual bool | addDevice (DLNADeviceInfo dev)=0 |
| Manually add a device to the list. | |
| virtual bool | addDevice (Url url)=0 |
| Add device by discovery URL. | |
| virtual void | setActive (bool flag)=0 |
| Set active state for processing. | |
| virtual bool | isActive ()=0 |
| Check if control point is active. | |
| virtual void | setAllowLocalhost (bool flag)=0 |
| Allow localhost devices in discovery. | |
| virtual ActionReply & | getLastReply ()=0 |
| Get last action reply. | |
| virtual SubscriptionMgrControlPoint * | getSubscriptionMgr ()=0 |
| Get subscription manager for event handling. | |
| virtual void | setSubscribeNotificationsActive (bool flag)=0 |
| Enable/disable event subscription notifications. | |
| virtual const char * | registerString (const char *s)=0 |
| Register string for memory management. | |
Abstract interface for DLNA Control Point functionality.
Defines the contract for implementing a DLNA Control Point that discovers, manages, and controls DLNA devices on the network. Provides methods for device discovery, service interaction, action execution, and event subscription.
Implementations should handle SSDP discovery, SOAP action invocation, and UPnP event subscription management.
|
virtualdefault |
|
pure virtual |
Queue an action for execution.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Manually add a device to the list.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Add device by discovery URL.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Start discovery with default HTTP/UDP services.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Start discovery with provided HTTP/UDP services.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Stop discovery and cleanup resources.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Execute queued actions and process responses.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Get current device (by index)
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Get device containing the specified service.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Get device by index.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Get device by location URL.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Get list of all discovered devices.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Get last action reply.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Get service by ID from discovered devices.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Get subscription manager for event handling.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Build URL for device service endpoint.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Check if control point is active.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Process discovery loop and handle events.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Set callback for processing XML result nodes.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Register string for memory management.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Set active state for processing.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Allow localhost devices in discovery.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Set index of device to operate on.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Set callback for event subscription notifications.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Set HTTP server for handling event callbacks.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Set the local callback URL for event subscriptions.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Set the local callback URL for event subscriptions.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Enable/disable parsing of device descriptions during discovery.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Set user reference pointer for callbacks.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Set the repeat interval for M-SEARCH requests.
Implemented in tiny_dlna::DLNAControlPoint.
|
pure virtual |
Enable/disable event subscription notifications.
Implemented in tiny_dlna::DLNAControlPoint.