39 #ifndef _PLT_UPNP_CONSTANTS_H_
40 #define _PLT_UPNP_CONSTANTS_H_
63 void SetDefaultDeviceLease(NPT_TimeInterval lease) { m_DefaultDeviceLease =
new NPT_TimeInterval(lease); }
64 NPT_Reference<NPT_TimeInterval> GetDefaultDeviceLease() {
return m_DefaultDeviceLease; }
66 void SetDefaultSubscribeLease(NPT_TimeInterval lease) { m_DefaultSubscribeLease =
new NPT_TimeInterval(lease); }
67 NPT_Reference<NPT_TimeInterval> GetDefaultSubscribeLease() {
return m_DefaultSubscribeLease; }
69 void SetDefaultUserAgent(
const char* agent) { m_DefaultUserAgent =
new NPT_String(agent); }
70 NPT_Reference<NPT_String> GetDefaultUserAgent() {
return m_DefaultUserAgent; }
72 void SetSearchMulticastTimeToLive(NPT_UInt32 ttl) { m_SearchMulticastTimeToLive = ttl; }
73 NPT_UInt32 GetSearchMulticastTimeToLive() {
return m_SearchMulticastTimeToLive; }
75 void SetAnnounceMulticastTimeToLive(NPT_UInt32 ttl) { m_AnnounceMulticastTimeToLive = ttl; }
76 NPT_UInt32 GetAnnounceMulticastTimeToLive() {
return m_AnnounceMulticastTimeToLive; }
80 NPT_Reference<NPT_TimeInterval> m_DefaultDeviceLease;
81 NPT_Reference<NPT_TimeInterval> m_DefaultSubscribeLease;
82 NPT_Reference<NPT_String> m_DefaultUserAgent;
83 NPT_UInt32 m_SearchMulticastTimeToLive;
84 NPT_UInt32 m_AnnounceMulticastTimeToLive;
The PLT_Constants class provides a way to globally set or get certain UPnP constants.
Definition: PltConstants.h:54