BrisaUpnp::BrisaAbstractService Class Reference

An abstract class for the control point side and device side service. More...

#include <BrisaUpnp/BrisaAbstractService>

Inheritance diagram for BrisaUpnp::BrisaAbstractService:
BrisaUpnp::BrisaControlPointService BrisaUpnp::BrisaService

List of all members.

Public Types

enum  xmlTags {
  Major, Minor, FileAddress, ServiceType,
  ServiceId, ScpdUrl, ControlUrl, EventSubUrl,
  Host, Port
}

Signals

void requestFinished (BrisaOutArgument arguments, QString methodName)
void requestError (QString errorMessage, QString methodName)

Public Member Functions

 BrisaAbstractService (QObject *parent=0)
 BrisaAbstractService (const QString &serviceType, const QString &serviceId="", const QString &scpdUrl="", const QString &controlUrl="", const QString &eventSubUrl="", const QString &host="", QObject *parent=0)
 BrisaAbstractService (BrisaAbstractService &service)
virtual ~BrisaAbstractService ()
void setAttribute (xmlTags key, const QString &value)
QString getAttribute (xmlTags key)
void addAction (const QString &name)
void addAction (BrisaAction *action)
BrisaActiongetAction (const QString &name)
QList< BrisaAction * > getActionList ()
void addStateVariable (BrisaStateVariable *stateVariable)
void addStateVariable (const QString &sendEvents, const QString &name, const QString &datatype, const QString &defaultValue, const QString &maximum, const QString &minimum, const QString &step)
const QList< BrisaStateVariable * > getStateVariableList ()
void clear ()
QString errorCodeToString (int errorCode)
void setUdn (QString udn)

Protected Member Functions

virtual void call (const QString &method, BrisaInArgument &param)=0

Protected Attributes

QList< BrisaAction * > actionList
QList< BrisaStateVariable * > stateVariableList
QString controlUrl
QString eventSubUrl
QString fileAddress
QString major
QString minor
QString scpdUrl
QString serviceType
QString serviceId
QString host
int port
QtSoapHttpTransport * http
quint32 * nextMulticastSeq
quint32 initialSeq
QString udn

Detailed Description

An abstract class for the control point side and device side service.

Definition at line 60 of file brisaabstractservice.h.


Member Enumeration Documentation

Enumerator:
Major 
Minor 
FileAddress 
ServiceType 
ServiceId 
ScpdUrl 
ControlUrl 
EventSubUrl 
Host 
Port 

Definition at line 88 of file brisaabstractservice.h.


Constructor & Destructor Documentation

BrisaAbstractService::BrisaAbstractService ( QObject *  parent = 0  ) 

Definition at line 32 of file brisaabstractservice.cpp.

BrisaAbstractService::BrisaAbstractService ( const QString &  serviceType,
const QString &  serviceId = "",
const QString &  scpdUrl = "",
const QString &  controlUrl = "",
const QString &  eventSubUrl = "",
const QString &  host = "",
QObject *  parent = 0 
)

Constructs an abstract service with given serviceType, serviceId, scpdUrl, controlUrl, eventSubUrl, host and parent.

Definition at line 41 of file brisaabstractservice.cpp.

BrisaAbstractService::BrisaAbstractService ( BrisaAbstractService service  ) 

Definition at line 62 of file brisaabstractservice.cpp.

BrisaAbstractService::~BrisaAbstractService (  )  [virtual]

Definition at line 87 of file brisaabstractservice.cpp.


Member Function Documentation

void BrisaAbstractService::addAction ( BrisaAction action  ) 

Definition at line 185 of file brisaabstractservice.cpp.

void BrisaAbstractService::addAction ( const QString &  name  ) 

Definition at line 177 of file brisaabstractservice.cpp.

void BrisaAbstractService::addStateVariable ( const QString &  sendEvents,
const QString &  name,
const QString &  datatype,
const QString &  defaultValue,
const QString &  maximum,
const QString &  minimum,
const QString &  step 
)

Definition at line 217 of file brisaabstractservice.cpp.

void BrisaAbstractService::addStateVariable ( BrisaStateVariable stateVariable  ) 

Definition at line 207 of file brisaabstractservice.cpp.

virtual void BrisaUpnp::BrisaAbstractService::call ( const QString &  method,
BrisaInArgument param 
) [protected, pure virtual]
void BrisaAbstractService::clear (  ) 

Definition at line 230 of file brisaabstractservice.cpp.

QString BrisaAbstractService::errorCodeToString ( int  errorCode  ) 

Definition at line 244 of file brisaabstractservice.cpp.

BrisaAction * BrisaAbstractService::getAction ( const QString &  name  ) 

Definition at line 193 of file brisaabstractservice.cpp.

QList< BrisaAction * > BrisaAbstractService::getActionList (  ) 

Definition at line 203 of file brisaabstractservice.cpp.

QString BrisaAbstractService::getAttribute ( xmlTags  key  ) 

Definition at line 139 of file brisaabstractservice.cpp.

const QList< BrisaStateVariable * > BrisaAbstractService::getStateVariableList (  ) 

Definition at line 226 of file brisaabstractservice.cpp.

void BrisaUpnp::BrisaAbstractService::requestError ( QString  errorMessage,
QString  methodName 
) [signal]
void BrisaUpnp::BrisaAbstractService::requestFinished ( BrisaOutArgument  arguments,
QString  methodName 
) [signal]
void BrisaAbstractService::setAttribute ( xmlTags  key,
const QString &  value 
)

Definition at line 102 of file brisaabstractservice.cpp.

void BrisaAbstractService::setUdn ( QString  udn  ) 

Definition at line 268 of file brisaabstractservice.cpp.


Member Data Documentation

Definition at line 191 of file brisaabstractservice.h.

Definition at line 194 of file brisaabstractservice.h.

Definition at line 195 of file brisaabstractservice.h.

Definition at line 196 of file brisaabstractservice.h.

Definition at line 203 of file brisaabstractservice.h.

QtSoapHttpTransport* BrisaUpnp::BrisaAbstractService::http [protected]

Definition at line 206 of file brisaabstractservice.h.

Definition at line 213 of file brisaabstractservice.h.

Definition at line 197 of file brisaabstractservice.h.

Definition at line 198 of file brisaabstractservice.h.

SEQ number used on multicast event messages.

Definition at line 211 of file brisaabstractservice.h.

Definition at line 204 of file brisaabstractservice.h.

Definition at line 199 of file brisaabstractservice.h.

Definition at line 201 of file brisaabstractservice.h.

Definition at line 200 of file brisaabstractservice.h.

Definition at line 192 of file brisaabstractservice.h.

Definition at line 215 of file brisaabstractservice.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