Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Opietooth2::OTSDPAttribute Class Reference

#include </home/clem/local/src/opie/noncore/settings/networksettings2/opietooth2/OTSDPAttribute.h>

Collaboration diagram for Opietooth2::OTSDPAttribute:

Collaboration graph
[legend]
List of all members.

Public Types

enum  AttrType {
  INVALID = 0, NIL = 1, UINT = 2, INT = 3,
  UUID = 4, BOOLEAN = 5, STRING = 6, SEQUENCE = 7,
  ALTERNATIVE = 8, URL = 9, UNKNOWN = 10
}

Public Member Functions

 OTSDPAttribute ()
 OTSDPAttribute (sdp_data_t *D)
 ~OTSDPAttribute ()
QString toString (void)
void setNil ()
void setInt (const OTSDPAttribute::int128_t &val)
void setUInt (const OTSDPAttribute::uint128_t &val)
void setUUID (const OTUUID &val)
void setBool (bool val)
void setString (const QString &val)
void setURL (const QString &val)
void setSequence (const AttributeVector &val)
void setAlternative (const AttributeVector &val)
QString getString ()
QString getURL ()
const OTSDPAttribute::int128_tgetInt ()
const OTSDPAttribute::uint128_tgetUInt ()
const OTUUIDgetUUID ()
bool getBool ()
AttributeVectorgetSequence ()
AttributeVectorgetAlternative ()
UUIDVector getAllUUIDs ()
AttrType getType ()
const char * getTypeString ()

Private Attributes

AttrType type
union {
   OTSDPAttribute::int128_t *   intVal
   OTSDPAttribute::uint128_t *   uintVal
   OTUUID *   uuidVal
   bool   boolVal
   QString *   stringVal
   AttributeVector *   sequenceVal
Value

Classes

class  int128_t
class  uint128_t

Detailed Description

Author:
Fred Schaettgen

Definition at line 32 of file OTSDPAttribute.h.


Member Enumeration Documentation

enum Opietooth2::OTSDPAttribute::AttrType
 

Enumeration values:
INVALID 
NIL 
UINT 
INT 
UUID 
BOOLEAN 
STRING 
SEQUENCE 
ALTERNATIVE 
URL 
UNKNOWN 

Definition at line 36 of file OTSDPAttribute.h.


Constructor & Destructor Documentation

OTSDPAttribute::OTSDPAttribute  ) 
 

Definition at line 21 of file OTSDPAttribute.cpp.

References INVALID, type, and Value.

Referenced by OTSDPAttribute().

OTSDPAttribute::OTSDPAttribute sdp_data_t *  D  ) 
 

Definition at line 44 of file OTSDPAttribute.cpp.

References assert, id, OTSDPAttribute(), setAlternative(), setBool(), setInt(), setNil(), setSequence(), setString(), setUInt(), setURL(), setUUID(), Opietooth2::OTUUID::setUUID128(), Opietooth2::OTUUID::setUUID32(), and uuidVal.

OTSDPAttribute::~OTSDPAttribute  ) 
 

Definition at line 26 of file OTSDPAttribute.cpp.

References ALTERNATIVE, INT, SEQUENCE, STRING, type, UINT, URL, UUID, and Value.


Member Function Documentation

UUIDVector OTSDPAttribute::getAllUUIDs  ) 
 

Definition at line 282 of file OTSDPAttribute.cpp.

References ALTERNATIVE, getAlternative(), getSequence(), getType(), getUUID(), i, SEQUENCE, and UUID.

AttributeVector * OTSDPAttribute::getAlternative  ) 
 

Definition at line 277 of file OTSDPAttribute.cpp.

References ALTERNATIVE, assert, type, and Value.

Referenced by getAllUUIDs().

bool OTSDPAttribute::getBool  ) 
 

Definition at line 267 of file OTSDPAttribute.cpp.

References assert, BOOLEAN, type, and Value.

const OTSDPAttribute::int128_t & OTSDPAttribute::getInt  ) 
 

Definition at line 251 of file OTSDPAttribute.cpp.

References assert, INT, type, and Value.

AttributeVector * OTSDPAttribute::getSequence  ) 
 

Definition at line 272 of file OTSDPAttribute.cpp.

References assert, SEQUENCE, type, and Value.

Referenced by Opietooth2::OTSDPService::classIDList(), getAllUUIDs(), Opietooth2::OTSDPService::hasClassID(), and Opietooth2::OTSDPService::rfcommChannel().

QString OTSDPAttribute::getString  ) 
 

Definition at line 241 of file OTSDPAttribute.cpp.

References assert, STRING, type, and Value.

Referenced by Opietooth2::OTSDPService::description(), and Opietooth2::OTSDPService::name().

AttrType Opietooth2::OTSDPAttribute::getType  )  [inline]
 

Definition at line 117 of file OTSDPAttribute.h.

References type.

Referenced by Opietooth2::OTSDPService::description(), getAllUUIDs(), Opietooth2::OTSDPService::name(), and Opietooth2::OTSDPService::recordHandle().

const char * OTSDPAttribute::getTypeString  ) 
 

Definition at line 327 of file OTSDPAttribute.cpp.

References Attr2String, and type.

const OTSDPAttribute::uint128_t & OTSDPAttribute::getUInt  ) 
 

Definition at line 257 of file OTSDPAttribute.cpp.

References assert, type, UINT, and Value.

Referenced by Opietooth2::OTSDPService::recordHandle().

QString OTSDPAttribute::getURL  ) 
 

Definition at line 246 of file OTSDPAttribute.cpp.

References assert, type, URL, and Value.

const OTUUID & OTSDPAttribute::getUUID  ) 
 

Definition at line 262 of file OTSDPAttribute.cpp.

References assert, type, UUID, and Value.

Referenced by getAllUUIDs().

void OTSDPAttribute::setAlternative const AttributeVector val  ) 
 

Definition at line 234 of file OTSDPAttribute.cpp.

References ALTERNATIVE, TRUE, type, and Value.

Referenced by OTSDPAttribute().

void OTSDPAttribute::setBool bool  val  ) 
 

Definition at line 212 of file OTSDPAttribute.cpp.

References BOOLEAN, type, and Value.

Referenced by OTSDPAttribute().

void OTSDPAttribute::setInt const OTSDPAttribute::int128_t val  ) 
 

Definition at line 197 of file OTSDPAttribute.cpp.

References INT, type, and Value.

Referenced by OTSDPAttribute().

void OTSDPAttribute::setNil  ) 
 

Definition at line 193 of file OTSDPAttribute.cpp.

References NIL, and type.

Referenced by OTSDPAttribute().

void OTSDPAttribute::setSequence const AttributeVector val  ) 
 

Definition at line 227 of file OTSDPAttribute.cpp.

References SEQUENCE, TRUE, type, and Value.

Referenced by OTSDPAttribute().

void OTSDPAttribute::setString const QString val  ) 
 

Definition at line 217 of file OTSDPAttribute.cpp.

References STRING, type, and Value.

Referenced by OTSDPAttribute().

void OTSDPAttribute::setUInt const OTSDPAttribute::uint128_t val  ) 
 

Definition at line 202 of file OTSDPAttribute.cpp.

References type, UINT, and Value.

Referenced by OTSDPAttribute().

void OTSDPAttribute::setURL const QString val  ) 
 

Definition at line 222 of file OTSDPAttribute.cpp.

References type, URL, and Value.

Referenced by OTSDPAttribute().

void OTSDPAttribute::setUUID const OTUUID val  ) 
 

Definition at line 207 of file OTSDPAttribute.cpp.

References type, UUID, and Value.

Referenced by OTSDPAttribute().

QString OTSDPAttribute::toString void   ) 
 

Definition at line 153 of file OTSDPAttribute.cpp.

References ALTERNATIVE, BOOLEAN, INT, INVALID, NIL, S, SEQUENCE, QString::sprintf(), STRING, type, UINT, UNKNOWN, URL, UUID, and Value.


Member Data Documentation

bool Opietooth2::OTSDPAttribute::boolVal [private]
 

Definition at line 131 of file OTSDPAttribute.h.

OTSDPAttribute::int128_t* Opietooth2::OTSDPAttribute::intVal [private]
 

Definition at line 128 of file OTSDPAttribute.h.

AttributeVector* Opietooth2::OTSDPAttribute::sequenceVal [private]
 

Definition at line 133 of file OTSDPAttribute.h.

QString* Opietooth2::OTSDPAttribute::stringVal [private]
 

Definition at line 132 of file OTSDPAttribute.h.

AttrType Opietooth2::OTSDPAttribute::type [private]
 

Definition at line 125 of file OTSDPAttribute.h.

Referenced by getAlternative(), getBool(), getInt(), getSequence(), getString(), getType(), getTypeString(), getUInt(), getURL(), getUUID(), OTSDPAttribute(), setAlternative(), setBool(), setInt(), setNil(), setSequence(), setString(), setUInt(), setURL(), setUUID(), toString(), and ~OTSDPAttribute().

OTSDPAttribute::uint128_t* Opietooth2::OTSDPAttribute::uintVal [private]
 

Definition at line 129 of file OTSDPAttribute.h.

OTUUID* Opietooth2::OTSDPAttribute::uuidVal [private]
 

Definition at line 130 of file OTSDPAttribute.h.

Referenced by OTSDPAttribute().

union { ... } Opietooth2::OTSDPAttribute::Value [private]
 

Referenced by getAlternative(), getBool(), getInt(), getSequence(), getString(), getUInt(), getURL(), getUUID(), OTSDPAttribute(), setAlternative(), setBool(), setInt(), setSequence(), setString(), setUInt(), setURL(), setUUID(), toString(), and ~OTSDPAttribute().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:03:08 2005 for OPIE by  doxygen 1.4.2