SubscriptionRequest Class Reference

This class represents the Upnp_Subscription_Request type from the SDK. More...

#include <subscription_request.h>

Inheritance diagram for SubscriptionRequest:
zmm::Object

Public Member Functions

 SubscriptionRequest (Upnp_Subscription_Request *upnp_request)
 The Constructor takes the values from the upnp_request and fills in internal variables.
zmm::String getServiceID ()
 Returns the service ID (should be one of the services that we support).
zmm::String getUDN ()
 Returns the UDN of the recepient device (should be ours).
zmm::String getSubscriptionID ()
 Returns the subscription ID.
void retain ()
void release ()
int getRefCount ()

Static Public Member Functions

static void * operator new (size_t size)
static void operator delete (void *ptr)

Protected Attributes

Upnp_Subscription_Requestupnp_request
 Upnp_Subscription_Request that comes from the SDK.
zmm::String serviceID
 ID of the service.
zmm::String UDN
 UDN of the recepient device (it should be our UDN).
zmm::String sID
 Subscription ID.
mt_atomic_t _ref_count
pthread_mutex_t mutex

Detailed Description

This class represents the Upnp_Subscription_Request type from the SDK.

When we get a Upnp_Subscription_Request from the SDK we convert it to our structure. We then have the possibility to easily access various information inside it.

Definition at line 44 of file subscription_request.h.


Constructor & Destructor Documentation

SubscriptionRequest::SubscriptionRequest ( Upnp_Subscription_Request upnp_request  ) 

The Constructor takes the values from the upnp_request and fills in internal variables.

Parameters:
*upnp_request Pointer to the Upnp_Subscription_Request structure.

Definition at line 42 of file subscription_request.cc.

References Upnp_Subscription_Request::ServiceId, serviceID, Upnp_Subscription_Request::Sid, sID, Upnp_Subscription_Request::UDN, and UDN.


Member Function Documentation

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file object.cc.

References zmm::Object::_ref_count, and atomic_get().

String SubscriptionRequest::getServiceID (  ) 

Returns the service ID (should be one of the services that we support).

Definition at line 51 of file subscription_request.cc.

References serviceID.

String SubscriptionRequest::getSubscriptionID (  ) 

Returns the subscription ID.

Definition at line 61 of file subscription_request.cc.

References sID.

String SubscriptionRequest::getUDN (  ) 

Returns the UDN of the recepient device (should be ours).

Definition at line 56 of file subscription_request.cc.

References UDN.

void Object::operator delete ( void *  ptr  )  [static, inherited]

Definition at line 87 of file object.cc.

References FREE.

void * Object::operator new ( size_t  size  )  [static, inherited]

Definition at line 83 of file object.cc.

References MALLOC.

void Object::release (  )  [inherited]
void Object::retain (  )  [inherited]

Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]
pthread_mutex_t zmm::Object::mutex [protected, inherited]

ID of the service.

Returned by getServiceID()

Definition at line 53 of file subscription_request.h.

Referenced by getServiceID(), and SubscriptionRequest().

Subscription ID.

Returned by getSubscriptionID()

Definition at line 63 of file subscription_request.h.

Referenced by getSubscriptionID(), and SubscriptionRequest().

UDN of the recepient device (it should be our UDN).

Returned by getUDN()

Definition at line 58 of file subscription_request.h.

Referenced by getUDN(), and SubscriptionRequest().

Upnp_Subscription_Request that comes from the SDK.

Definition at line 48 of file subscription_request.h.


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

Generated on Fri Mar 26 20:16:57 2010 for MediaTomb by  doxygen 1.6.1