BrisaUpnp::BrisaStateVariable Class Reference

Represents the service's state variables. More...

#include <BrisaUpnp/BrisaStateVariable>

List of all members.

Public Types

enum  BrisaStateVariableAttribute {
  Name, name, SendEvents, sendEvents,
  DataType, dataType, DefaultValue, defaultValue,
  AllowedValue, allowedValue, Minimum, minimum,
  Maximum, maximum, Step, step,
  Value, value, Multicast, multicast


void changed (BrisaStateVariable *)

Public Member Functions

 BrisaStateVariable (QString sendEvents="", QString name="", QString datatype="", QString defaultValue="", QString maximum="", QString minimum="", QString step="", QString multicast="", QObject *parent=0)
 BrisaStateVariable (const BrisaStateVariable &)
BrisaStateVariableoperator= (const BrisaStateVariable &)
void setAttribute (BrisaStateVariableAttribute attr, QVariant newValue)
QString getAttribute (BrisaStateVariableAttribute attr, int index=0) const
QVariant getValue () const
QVariant::Type getDataType () const
bool sendEventsChange () const
void addAllowedValue (QString allowedVal)
QList< QString > getAllowedValueList ()
bool multicastEvents () const
void clear ()
void setMulticastSeq (quint32 *seq)
quint32 getNextMulticastSeq ()
QString getMulticastUsn ()
void setMulticastUsn (QString usn)
QString getMulticastUdn ()
void setMulticastUdn (QString udn)
QString getMulticastSvcid ()
void setMulticastSvcid (QString svcid)

Detailed Description

Represents the service's state variables.

Definition at line 45 of file brisastatevariable.h.

Member Enumeration Documentation


Definition at line 75 of file brisastatevariable.h.

Constructor & Destructor Documentation

BrisaStateVariable::BrisaStateVariable ( QString  sendEvents = "",
QString  name = "",
QString  datatype = "",
QString  defaultValue = "",
QString  maximum = "",
QString  minimum = "",
QString  step = "",
QString  multicast = "",
QObject *  parent = 0 

Constructs a BrisaStateVariable that sendEvents with the given name, datatype, defaultValue, maximum value, minimum value, value step, and parent.

Definition at line 34 of file brisastatevariable.cpp.

BrisaStateVariable::BrisaStateVariable ( const BrisaStateVariable variable  ) 

Constructs a BrisaStateVariable from the given variable.

Definition at line 57 of file brisastatevariable.cpp.

Member Function Documentation

void BrisaStateVariable::addAllowedValue ( QString  allowedVal  ) 

Adds a value to the list of values that can be set to its Value attribute.

Definition at line 187 of file brisastatevariable.cpp.

void BrisaUpnp::BrisaStateVariable::changed ( BrisaStateVariable _t1  )  [signal]

Definition at line 82 of file moc_brisastatevariable.cpp.

void BrisaStateVariable::clear (  ) 

Clears this variable's attributtes.

Definition at line 191 of file brisastatevariable.cpp.

QList< QString > BrisaStateVariable::getAllowedValueList (  ) 

Returns the list of values that can be set to its Value attribute.

Definition at line 183 of file brisastatevariable.cpp.

QString BrisaStateVariable::getAttribute ( BrisaStateVariableAttribute  attr,
int  index = 0 
) const

Returns attr value as a QString.

Definition at line 139 of file brisastatevariable.cpp.

QVariant::Type BrisaStateVariable::getDataType (  )  const

Definition at line 277 of file brisastatevariable.cpp.

QString BrisaStateVariable::getMulticastSvcid (  ) 

Definition at line 374 of file brisastatevariable.cpp.

QString BrisaStateVariable::getMulticastUdn (  ) 

Definition at line 364 of file brisastatevariable.cpp.

QString BrisaStateVariable::getMulticastUsn (  ) 

Definition at line 354 of file brisastatevariable.cpp.

quint32 BrisaStateVariable::getNextMulticastSeq (  ) 

Definition at line 336 of file brisastatevariable.cpp.

QVariant BrisaStateVariable::getValue (  )  const

Returns the stored value as a QVariant.

Definition at line 202 of file brisastatevariable.cpp.

bool BrisaStateVariable::multicastEvents (  )  const

Definition at line 210 of file brisastatevariable.cpp.

BrisaStateVariable & BrisaStateVariable::operator= ( const BrisaStateVariable variable  ) 

Sets this variable equals to variable.

Definition at line 70 of file brisastatevariable.cpp.

bool BrisaStateVariable::sendEventsChange (  )  const

Returns true if the variable is set to send events.

Definition at line 206 of file brisastatevariable.cpp.

void BrisaStateVariable::setAttribute ( BrisaStateVariableAttribute  attr,
QVariant  newValue 

Sets its attribute attr to the given value.

Definition at line 87 of file brisastatevariable.cpp.

void BrisaStateVariable::setMulticastSeq ( quint32 *  seq  ) 

Definition at line 331 of file brisastatevariable.cpp.

void BrisaStateVariable::setMulticastSvcid ( QString  svcid  ) 

Definition at line 369 of file brisastatevariable.cpp.

void BrisaStateVariable::setMulticastUdn ( QString  udn  ) 

Definition at line 359 of file brisastatevariable.cpp.

void BrisaStateVariable::setMulticastUsn ( QString  usn  ) 

Definition at line 349 of file brisastatevariable.cpp.

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