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

Opietooth2::OTPeer Class Reference

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

Collaboration diagram for Opietooth2::OTPeer:

Collaboration graph
[legend]
List of all members.

Public Types

typedef enum Opietooth2::OTPeer::PeerState_E PeerState_t
enum  PeerState_E { Peer_Unknown = -1, Peer_Down = 0, Peer_Up = 1 }

Signals

void peerStateReport (OTPeer *)
void error (const QString &)

Public Member Functions

 OTPeer (OTGateway *_OT)
 OTPeer (QTextStream &TS, OTGateway *_TS)
 ~OTPeer ()
OTGatewaygateway () const
int deviceClass (void) const
void setDeviceClass (int cls)
void setAddress (const OTDeviceAddress &A)
const OTDeviceAddressaddress (void)
QString name (void) const
void setName (const QString &n)
ServiceVectorservices (bool Force=0)
bool hasServiceClassID (const OTUUID &uuid)
QArray< int > rfcommList (const OTUUID &uuid)
void setState (PeerState_t S)
PeerState_t state (void)
void findOutState (int timeoutInSec=1, bool Force=0)
void stopFindingOutState (void)
OTDriverconnectedTo (void) const
void setConnectedTo (OTDriver *D)
void save (QTextStream &TS)
void load (QTextStream &TS)

Protected Member Functions

void timerEvent (QTimerEvent *ev)

Private Member Functions

void updateServices ()

Private Attributes

OTGatewayOT
OTDeviceAddress Addr
QString Name
int Class
ServiceVector serviceList
PeerState_t State
OTDriverConnectedTo
int ProbeFD
int ProbePhase
long ProbeTimeout

Member Typedef Documentation

typedef enum Opietooth2::OTPeer::PeerState_E Opietooth2::OTPeer::PeerState_t
 


Member Enumeration Documentation

enum Opietooth2::OTPeer::PeerState_E
 

Enumeration values:
Peer_Unknown 
Peer_Down 
Peer_Up 

Definition at line 40 of file OTPeer.h.


Constructor & Destructor Documentation

OTPeer::OTPeer OTGateway _OT  ) 
 

Definition at line 31 of file OTPeer.cpp.

References ConnectedTo, OT, and Peer_Unknown.

OTPeer::OTPeer QTextStream TS,
OTGateway _TS
 

Definition at line 37 of file OTPeer.cpp.

References ConnectedTo, load(), OT, and Peer_Unknown.

OTPeer::~OTPeer  ) 
 

Definition at line 45 of file OTPeer.cpp.


Member Function Documentation

const OTDeviceAddress& Opietooth2::OTPeer::address void   )  [inline]
 

Definition at line 61 of file OTPeer.h.

References Addr.

Referenced by findOutState(), BluetoothRFCOMMRun::getChannel(), PeerLBI::PeerLBI(), save(), Opietooth2::OTScan::SLOT_CleanupOld(), BluetoothRFCOMMEdit::SLOT_FindDevice(), Opietooth2::OTScan::SLOT_Selected(), and timerEvent().

OTDriver* Opietooth2::OTPeer::connectedTo void   )  const [inline]
 

Definition at line 96 of file OTPeer.h.

References ConnectedTo.

Referenced by Opietooth2::OTScan::SLOT_PeerState().

int Opietooth2::OTPeer::deviceClass void   )  const [inline]
 

Definition at line 53 of file OTPeer.h.

References Class.

Referenced by save().

void Opietooth2::OTPeer::error const QString  )  [signal]
 

void OTPeer::findOutState int  timeoutInSec = 1,
bool  Force = 0
 

Definition at line 171 of file OTPeer.cpp.

References address(), ConnectedTo, odebug, oendl, Peer_Unknown, POLLDELAY, ProbeFD, ProbePhase, and ProbeTimeout.

OTGateway* Opietooth2::OTPeer::gateway  )  const [inline]
 

Definition at line 50 of file OTPeer.h.

References OT.

bool OTPeer::hasServiceClassID const OTUUID uuid  ) 
 

Definition at line 121 of file OTPeer.cpp.

References i, and serviceList.

void OTPeer::load QTextStream TS  ) 
 

Definition at line 155 of file OTPeer.cpp.

References QString::mid(), QTextStream::readLine(), S, setAddress(), setDeviceClass(), and setName().

Referenced by OTPeer().

QString Opietooth2::OTPeer::name void   )  const [inline]
 

Definition at line 64 of file OTPeer.h.

References Name.

Referenced by BluetoothRFCOMMRun::getChannel(), Opietooth2::OTPairing::OTPairing(), PeerLBI::PeerLBI(), save(), BluetoothRFCOMMEdit::SLOT_FindDevice(), and Opietooth2::OTGateway::SLOT_PeerDetected().

void Opietooth2::OTPeer::peerStateReport OTPeer  )  [signal]
 

Referenced by timerEvent().

QArray< int > OTPeer::rfcommList const OTUUID uuid  ) 
 

Get a vector of Rfcomm channels of the services having "uuid" in the class ID List

Definition at line 131 of file OTPeer.cpp.

References channel, i, QCString::resize(), and serviceList.

void OTPeer::save QTextStream TS  ) 
 

Definition at line 149 of file OTPeer.cpp.

References address(), deviceClass(), Opie::Core::endl(), and name().

ServiceVector& Opietooth2::OTPeer::services bool  Force = 0  )  [inline]
 

Definition at line 69 of file OTPeer.h.

References serviceList, and updateServices().

void Opietooth2::OTPeer::setAddress const OTDeviceAddress A  )  [inline]
 

Definition at line 58 of file OTPeer.h.

References Addr.

Referenced by load(), Opietooth2::OTGateway::loadActiveNetworkSetups(), BluetoothRFCOMMEdit::showData(), BluetoothRFCOMMEdit::SLOT_AddServer(), and Opietooth2::OTInquiry::slotHCIEvent().

void Opietooth2::OTPeer::setConnectedTo OTDriver D  )  [inline]
 

Definition at line 98 of file OTPeer.h.

References ConnectedTo.

Referenced by Opietooth2::OTGateway::loadActiveNetworkSetups().

void Opietooth2::OTPeer::setDeviceClass int  cls  )  [inline]
 

Definition at line 55 of file OTPeer.h.

References Class.

Referenced by load(), and Opietooth2::OTInquiry::slotHCIEvent().

void Opietooth2::OTPeer::setName const QString n  )  [inline]
 

Definition at line 66 of file OTPeer.h.

References Name.

Referenced by load(), Opietooth2::OTGateway::loadActiveNetworkSetups(), BluetoothRFCOMMEdit::showData(), BluetoothRFCOMMEdit::SLOT_AddServer(), and Opietooth2::OTInquiry::slotHCIEvent().

void Opietooth2::OTPeer::setState PeerState_t  S  )  [inline]
 

Definition at line 84 of file OTPeer.h.

Referenced by Opietooth2::OTGateway::loadActiveNetworkSetups(), and Opietooth2::OTInquiry::slotHCIEvent().

PeerState_t Opietooth2::OTPeer::state void   )  [inline]
 

Definition at line 86 of file OTPeer.h.

Referenced by Opietooth2::OTScan::SLOT_CleanupOld(), Opietooth2::OTScan::SLOT_PeerState(), and Opietooth2::OTInquiry::slotHCIEvent().

void OTPeer::stopFindingOutState void   ) 
 

Definition at line 363 of file OTPeer.cpp.

References PREMAGICNR, and ProbeTimeout.

void OTPeer::timerEvent QTimerEvent *  ev  )  [protected]
 

Definition at line 189 of file OTPeer.cpp.

References address(), Opietooth2::OTDeviceAddress::any, buf, Opietooth2::OTDeviceAddress::getBDAddr(), i, odebug, oendl, Peer_Down, Peer_Unknown, Peer_Up, peerStateReport(), PINGSIZE, POLLDELAY, ProbeFD, ProbePhase, and ProbeTimeout.

void OTPeer::updateServices  )  [private]
 

Definition at line 49 of file OTPeer.cpp.

References Opietooth2::OTSDPService::addAttribute(), Addr, Opietooth2::OTDeviceAddress::any, Opietooth2::OTDeviceAddress::getBDAddr(), NULL, odebug, oendl, range, rec, seq, serviceList, and Opietooth2::OTDeviceAddress::toString().

Referenced by services().


Member Data Documentation

OTDeviceAddress Opietooth2::OTPeer::Addr [private]
 

Definition at line 120 of file OTPeer.h.

Referenced by address(), setAddress(), and updateServices().

int Opietooth2::OTPeer::Class [private]
 

Definition at line 122 of file OTPeer.h.

Referenced by deviceClass(), and setDeviceClass().

OTDriver* Opietooth2::OTPeer::ConnectedTo [private]
 

Definition at line 126 of file OTPeer.h.

Referenced by connectedTo(), findOutState(), OTPeer(), and setConnectedTo().

QString Opietooth2::OTPeer::Name [private]
 

Definition at line 121 of file OTPeer.h.

Referenced by name(), and setName().

OTGateway* Opietooth2::OTPeer::OT [private]
 

Definition at line 119 of file OTPeer.h.

Referenced by gateway(), and OTPeer().

int Opietooth2::OTPeer::ProbeFD [private]
 

Definition at line 128 of file OTPeer.h.

Referenced by findOutState(), and timerEvent().

int Opietooth2::OTPeer::ProbePhase [private]
 

Definition at line 129 of file OTPeer.h.

Referenced by findOutState(), and timerEvent().

long Opietooth2::OTPeer::ProbeTimeout [private]
 

Definition at line 130 of file OTPeer.h.

Referenced by findOutState(), stopFindingOutState(), and timerEvent().

ServiceVector Opietooth2::OTPeer::serviceList [private]
 

Definition at line 123 of file OTPeer.h.

Referenced by hasServiceClassID(), rfcommList(), services(), and updateServices().

PeerState_t Opietooth2::OTPeer::State [private]
 

Definition at line 125 of file OTPeer.h.


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