mUPnP for C++
mUPnP::SubscriptionRequest Class Reference

#include <SubscriptionRequest.h>

Inheritance diagram for mUPnP::SubscriptionRequest:

Public Member Functions

 SubscriptionRequest ()
 
 SubscriptionRequest (uHTTP::HTTPRequest *httpReq)
 
void setSubscribeRequest (Service *service, const std::string &callback, long timeout)
 
void setRenewRequest (Service *service, const std::string &uuid, long timeout)
 
void setUnsubscribeRequest (Service *service)
 
void setNT (const std::string &value)
 
const char * getNT ()
 
void setCallback (const std::string &value)
 
const char * getCallback (std::string &buf)
 
bool hasCallback ()
 
void setSID (const std::string &sid)
 
const char * getSID (std::string &buf)
 
bool hasSID ()
 
void setTimeout (long value)
 
long getTimeout ()
 
uHTTP::HTTP::StatusCode post (SubscriptionResponse *subRes)
 
SubscriptionResponsepost ()
 

Private Member Functions

void setService (Service *service)
 

Private Attributes

SubscriptionResponse subRes
 

Static Private Attributes

static const char CALLBACK_START_WITH
 
static const char CALLBACK_END_WITH
 

Constructor & Destructor Documentation

◆ SubscriptionRequest() [1/2]

mUPnP::SubscriptionRequest::SubscriptionRequest ( )
inline

◆ SubscriptionRequest() [2/2]

mUPnP::SubscriptionRequest::SubscriptionRequest ( uHTTP::HTTPRequest * httpReq)
inline

Member Function Documentation

◆ getCallback()

const char * mUPnP::SubscriptionRequest::getCallback ( std::string & buf)
inline

◆ getNT()

const char * mUPnP::SubscriptionRequest::getNT ( )
inline

◆ getSID()

const char * mUPnP::SubscriptionRequest::getSID ( std::string & buf)
inline

◆ getTimeout()

long mUPnP::SubscriptionRequest::getTimeout ( )
inline

◆ hasCallback()

bool mUPnP::SubscriptionRequest::hasCallback ( )
inline

◆ hasSID()

bool mUPnP::SubscriptionRequest::hasSID ( )
inline

◆ post() [1/2]

SubscriptionResponse * mUPnP::SubscriptionRequest::post ( )
inline

◆ post() [2/2]

uHTTP::HTTP::StatusCode mUPnP::SubscriptionRequest::post ( SubscriptionResponse * subRes)
inline

◆ setCallback()

void mUPnP::SubscriptionRequest::setCallback ( const std::string & value)
inline

◆ setNT()

void mUPnP::SubscriptionRequest::setNT ( const std::string & value)
inline

◆ setRenewRequest()

void mUPnP::SubscriptionRequest::setRenewRequest ( Service * service,
const std::string & uuid,
long timeout )

◆ setService()

void mUPnP::SubscriptionRequest::setService ( Service * service)
private

◆ setSID()

void mUPnP::SubscriptionRequest::setSID ( const std::string & sid)
inline

◆ setSubscribeRequest()

void mUPnP::SubscriptionRequest::setSubscribeRequest ( Service * service,
const std::string & callback,
long timeout )

◆ setTimeout()

void mUPnP::SubscriptionRequest::setTimeout ( long value)
inline

◆ setUnsubscribeRequest()

void mUPnP::SubscriptionRequest::setUnsubscribeRequest ( Service * service)

Field Documentation

◆ CALLBACK_END_WITH

const char mUPnP::SubscriptionRequest::CALLBACK_END_WITH
staticprivate

◆ CALLBACK_START_WITH

const char mUPnP::SubscriptionRequest::CALLBACK_START_WITH
staticprivate

◆ subRes

SubscriptionResponse mUPnP::SubscriptionRequest::subRes
private

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