BrisaUpnp::BrisaAbstractEventSubscription Class Reference

Abstract class that represents an event subscription. More...

#include <BrisaUpnp/BrisaAbstractEventSubscription>

Inheritance diagram for BrisaUpnp::BrisaAbstractEventSubscription:
BrisaUpnp::BrisaEventProxy BrisaUpnp::BrisaEventSubscription

List of all members.

Public Member Functions

 BrisaAbstractEventSubscription (const QString &sid, const QStringList &callbackUrls, const int &timeout=-1, QObject *parent=0)
virtual void renew (const int &newTimeout=-1)=0
bool hasExpired () const
quint32 getNextSeq ()
QString getSid () const
QStringList getCallbackUrls () const
QUrl getUrl ()

Protected Attributes

QString SID
const QStringList CALLBACK_URLS
QDateTime date
int timeout
quint32 lastSeq
bool firstMessageSent

Detailed Description

Abstract class that represents an event subscription.

Definition at line 48 of file brisaabstracteventsubscription.h.


Constructor & Destructor Documentation

BrisaAbstractEventSubscription::BrisaAbstractEventSubscription ( const QString &  sid,
const QStringList &  callbackUrls,
const int &  timeout = -1,
QObject *  parent = 0 
)

Construtcs an abstract event subscription with given sid, list of callbackUrls, timeout and parent. timeout less than 0 means infinite.

Definition at line 33 of file brisaabstracteventsubscription.cpp.


Member Function Documentation

QStringList BrisaAbstractEventSubscription::getCallbackUrls (  )  const

Returns this subscription's list of callback URLs.

Definition at line 73 of file brisaabstracteventsubscription.cpp.

quint32 BrisaAbstractEventSubscription::getNextSeq (  ) 

Returns the next event key for this subscription.

Definition at line 57 of file brisaabstracteventsubscription.cpp.

QString BrisaAbstractEventSubscription::getSid (  )  const

Returns this subscription's SID.

Definition at line 69 of file brisaabstracteventsubscription.cpp.

QUrl BrisaAbstractEventSubscription::getUrl (  ) 

Returns this subscription's first callback URL.

Definition at line 77 of file brisaabstracteventsubscription.cpp.

bool BrisaAbstractEventSubscription::hasExpired (  )  const

Checks if the subscription has already expired. Returns true if it has expired, else returns false.

Definition at line 52 of file brisaabstracteventsubscription.cpp.

void BrisaAbstractEventSubscription::renew ( const int &  newTimeout = -1  )  [pure virtual]

Renews the subscription for the given newTimeout.

Implemented in BrisaUpnp::BrisaEventProxy, and BrisaUpnp::BrisaEventSubscription.

Definition at line 47 of file brisaabstracteventsubscription.cpp.


Member Data Documentation

Definition at line 96 of file brisaabstracteventsubscription.h.

Definition at line 98 of file brisaabstracteventsubscription.h.

Definition at line 102 of file brisaabstracteventsubscription.h.

Definition at line 101 of file brisaabstracteventsubscription.h.

Definition at line 94 of file brisaabstracteventsubscription.h.

Definition at line 99 of file brisaabstracteventsubscription.h.


The documentation for this class was generated from the following files:
Generated on Thu Sep 30 14:04:30 2010 for Brisa by  doxygen 1.6.3