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

Opietooth2::OTDriver Class Reference

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

Collaboration diagram for Opietooth2::OTDriver:

Collaboration graph
[legend]
List of all members.

Signals

void error (const QString &)
void stateChange (OTDriver *, bool)
void driverDisappeared (OTDriver *)

Public Member Functions

 OTDriver (OTGateway *Ot, struct hci_dev_info *di)
 ~OTDriver ()
OTGatewaygateway () const
void init (struct hci_dev_info *di)
bool open ()
OTHCISocketopenSocket ()
void closeSocket ()
int isOpen ()
int reset ()
void setUp (bool Mode)
void bringUp ()
void bringDown ()
bool isUp () const
int currentState ()
QString name ()
int devId () const
QString devname ()
int fd () const
void setfd (int _fd)
void setType (int _type)
int type () const
QString strType ()
int iscan () const
void setIScan (int _iscan)
int pscan () const
void setPScan (int _pscan)
int authentication () const
void setAuthentication (int _auth)
int encryption () const
void setEncryption (int _encrypt)
void setDevId (int _dev_id)
void setDev (char *_dev)
void setFlags (unsigned long flags)
const OTDeviceAddressaddress ()
void setFeatures (unsigned char *_f)
QString features ()
void setManufacturer (int compid)
QString manufacturer ()
QString revision ()
void setScanMode (bool iscan, bool pscan)
void setClass (unsigned long cls)
void changeDevName (const char *name)
void changeEncryption (bool _encryption)
void changeAuthentication (bool _auth)
void getClass (QString &service, QString &device)
void changeClass (unsigned char service, unsigned char major, unsigned char minor)
QString getPeerName (const OTDeviceAddress &PAddr)
long getLinkQuality (const OTDeviceAddress &Address)

Private Slots

void reinit ()
void SLOT_CloseFd ()

Private Member Functions

QString getRevEricsson ()
QString getRevCsr (unsigned short rev)

Private Attributes

QString Name
QString Dev
QString Revision
QString Manufacturer
OTDeviceAddress Address
QString Features
QTimer * AutoClose
int Dev_id
int Fd
int Type
bool IsUp
int Iscan
int Pscan
int Auth
int Encrypt
OTHCISocketSocket
OTGatewayOT

Constructor & Destructor Documentation

OTDriver::OTDriver OTGateway Ot,
struct hci_dev_info *  di
 

Definition at line 149 of file OTDriver.cpp.

References AutoClose, devname(), init(), IsUp, odebug, oendl, OT, SLOT_CloseFd(), and Socket.

OTDriver::~OTDriver  ) 
 

Definition at line 165 of file OTDriver.cpp.

References closeSocket(), and SLOT_CloseFd().


Member Function Documentation

const OTDeviceAddress& Opietooth2::OTDriver::address  )  [inline]
 

Definition at line 161 of file OTDriver.h.

References Address.

Referenced by Opietooth2::OTPairing::OTPairing(), and Opietooth2::OTManage::SLOT_DriverListChanged().

int Opietooth2::OTDriver::authentication  )  const [inline]
 

Definition at line 144 of file OTDriver.h.

References Auth.

void OTDriver::bringDown  ) 
 

Definition at line 411 of file OTDriver.cpp.

References Dev, devId(), devname(), error(), fd(), isUp(), odebug, oendl, open(), reinit(), and tr.

Referenced by setUp().

void OTDriver::bringUp  ) 
 

Definition at line 388 of file OTDriver.cpp.

References Dev, devId(), devname(), error(), fd(), isUp(), odebug, oendl, open(), reinit(), and tr.

Referenced by setUp().

void OTDriver::changeAuthentication bool  _auth  ) 
 

Definition at line 478 of file OTDriver.cpp.

References devId(), devname(), error(), fd(), open(), reinit(), and tr.

void OTDriver::changeClass unsigned char  service,
unsigned char  major,
unsigned char  minor
 

Definition at line 523 of file OTDriver.cpp.

References devname(), error(), fd(), open(), and tr.

void OTDriver::changeDevName const char *  name  ) 
 

Definition at line 464 of file OTDriver.cpp.

References devname(), error(), fd(), open(), and tr.

void OTDriver::changeEncryption bool  _encryption  ) 
 

Definition at line 500 of file OTDriver.cpp.

References devId(), devname(), error(), fd(), open(), reinit(), and tr.

void OTDriver::closeSocket  ) 
 

Definition at line 672 of file OTDriver.cpp.

References devname(), odebug, oendl, and Socket.

Referenced by Opietooth2::OTInquiry::stopInquiring(), and ~OTDriver().

int OTDriver::currentState  ) 
 

Definition at line 207 of file OTDriver.cpp.

References Dev_id, Opietooth2::OTGateway::getSocket(), init(), IsUp, OT, and SLOT_CloseFd().

Referenced by reinit(), and Opietooth2::OTGateway::timerEvent().

int Opietooth2::OTDriver::devId  )  const [inline]
 

Definition at line 109 of file OTDriver.h.

References Dev_id.

Referenced by bringDown(), bringUp(), changeAuthentication(), changeEncryption(), Opietooth2::OTHCISocket::open(), open(), reset(), and setScanMode().

QString Opietooth2::OTDriver::devname  )  [inline]
 

Definition at line 116 of file OTDriver.h.

References Dev.

Referenced by bringDown(), bringUp(), changeAuthentication(), changeClass(), changeDevName(), changeEncryption(), closeSocket(), getClass(), getRevEricsson(), name(), Opietooth2::OTHCISocket::open(), open(), openSocket(), OTDriver(), Opietooth2::OTPairing::OTPairing(), reset(), revision(), setScanMode(), Opietooth2::OTGateway::SLOT_DriverDisappeared(), Opietooth2::OTMain::SLOT_DriverListChanged(), Opietooth2::OTManage::SLOT_DriverListChanged(), Opietooth2::OTManage::SLOT_UpDriver(), and Opietooth2::OTHCISocket::slotSocketError().

void Opietooth2::OTDriver::driverDisappeared OTDriver  )  [signal]
 

int Opietooth2::OTDriver::encryption  )  const [inline]
 

Definition at line 149 of file OTDriver.h.

References Encrypt.

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

Referenced by bringDown(), bringUp(), changeAuthentication(), changeClass(), changeDevName(), changeEncryption(), getClass(), getRevEricsson(), name(), open(), reset(), revision(), and setScanMode().

int Opietooth2::OTDriver::fd  )  const [inline]
 

Definition at line 123 of file OTDriver.h.

References Fd.

Referenced by bringDown(), bringUp(), changeAuthentication(), changeClass(), changeDevName(), changeEncryption(), getClass(), getLinkQuality(), getPeerName(), getRevEricsson(), name(), open(), reset(), revision(), setScanMode(), and SLOT_CloseFd().

QString Opietooth2::OTDriver::features  )  [inline]
 

Definition at line 165 of file OTDriver.h.

References Features.

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

Definition at line 48 of file OTDriver.h.

References OT.

Referenced by Opietooth2::OTInquiry::slotHCIEvent().

void OTDriver::getClass QString service,
QString device
 

Definition at line 544 of file OTDriver.cpp.

References CM, ClassMap_t::Description, devname(), error(), fd(), MainClassMap_t::Major, major_devices, MainClassMap_t::Map, ClassMap_t::Minor, open(), s, services, and tr.

Referenced by Opietooth2::OTManage::SLOT_DriverListChanged().

long OTDriver::getLinkQuality const OTDeviceAddress Address  ) 
 

Definition at line 699 of file OTDriver.cpp.

References fd(), GET_LINK_QUALITY_RP_SIZE, Opietooth2::OTDeviceAddress::getBDAddr(), odebug, oendl, and open().

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

QString OTDriver::getPeerName const OTDeviceAddress PAddr  ) 
 

Definition at line 680 of file OTDriver.cpp.

References fd(), Opietooth2::OTDeviceAddress::getBDAddr(), name(), open(), and S.

Referenced by Opietooth2::OTInquiry::slotHCIEvent().

QString OTDriver::getRevCsr unsigned short  rev  )  [private]
 

Definition at line 348 of file OTDriver.cpp.

References csr_map, i, str, and tr.

Referenced by revision().

QString OTDriver::getRevEricsson  )  [private]
 

Definition at line 320 of file OTDriver.cpp.

References devname(), error(), fd(), NULL, open(), revision(), and tr.

Referenced by revision().

void OTDriver::init struct hci_dev_info *  di  ) 
 

Definition at line 178 of file OTDriver.cpp.

References Address, Dev, Manufacturer, Opietooth2::OTDeviceAddress::setBDAddr(), setDevId(), setfd(), setFeatures(), setFlags(), and setType().

Referenced by currentState(), and OTDriver().

int Opietooth2::OTDriver::iscan  )  const [inline]
 

Definition at line 134 of file OTDriver.h.

References Iscan.

int Opietooth2::OTDriver::isOpen  )  [inline]
 

Definition at line 71 of file OTDriver.h.

References Fd.

Referenced by open(), and SLOT_CloseFd().

bool Opietooth2::OTDriver::isUp  )  const [inline]
 

Definition at line 96 of file OTDriver.h.

References IsUp.

Referenced by bringDown(), bringUp(), setFlags(), setUp(), Opietooth2::OTMain::SLOT_DriverListChanged(), Opietooth2::OTManage::SLOT_DriverListChanged(), and Opietooth2::OTGateway::timerEvent().

QString Opietooth2::OTDriver::manufacturer  )  [inline]
 

Definition at line 169 of file OTDriver.h.

References Manufacturer.

Referenced by Opietooth2::OTManage::SLOT_DriverListChanged().

QString OTDriver::name  ) 
 

Definition at line 250 of file OTDriver.cpp.

References devname(), error(), fd(), open(), and tr.

Referenced by getPeerName(), and Opietooth2::OTManage::SLOT_DriverListChanged().

bool OTDriver::open  ) 
 

Definition at line 227 of file OTDriver.cpp.

References AutoClose, devId(), devname(), error(), fd(), isOpen(), setfd(), tr, and TRUE.

Referenced by bringDown(), bringUp(), changeAuthentication(), changeClass(), changeDevName(), changeEncryption(), getClass(), getLinkQuality(), getPeerName(), getRevEricsson(), name(), reset(), revision(), and setScanMode().

OTHCISocket * OTDriver::openSocket  ) 
 

Definition at line 664 of file OTDriver.cpp.

References devname(), odebug, oendl, and Socket.

Referenced by Opietooth2::OTInquiry::OTInquiry().

int Opietooth2::OTDriver::pscan  )  const [inline]
 

Definition at line 139 of file OTDriver.h.

References Pscan.

void OTDriver::reinit  )  [private, slot]
 

Definition at line 193 of file OTDriver.cpp.

References currentState(), IsUp, and stateChange().

Referenced by bringDown(), bringUp(), changeAuthentication(), changeEncryption(), and setScanMode().

int OTDriver::reset  ) 
 

Definition at line 360 of file OTDriver.cpp.

References devId(), devname(), error(), fd(), open(), and tr.

QString OTDriver::revision  ) 
 

Definition at line 289 of file OTDriver.cpp.

References devname(), error(), fd(), getRevCsr(), getRevEricsson(), open(), setManufacturer(), and tr.

Referenced by getRevEricsson(), and Opietooth2::OTManage::SLOT_DriverListChanged().

void Opietooth2::OTDriver::setAuthentication int  _auth  )  [inline]
 

Definition at line 146 of file OTDriver.h.

References Auth.

Referenced by setFlags().

void Opietooth2::OTDriver::setClass unsigned long  cls  ) 
 

void Opietooth2::OTDriver::setDev char *  _dev  )  [inline]
 

Definition at line 156 of file OTDriver.h.

References Dev.

void Opietooth2::OTDriver::setDevId int  _dev_id  )  [inline]
 

Definition at line 154 of file OTDriver.h.

References Dev_id.

Referenced by init().

void Opietooth2::OTDriver::setEncryption int  _encrypt  )  [inline]
 

Definition at line 151 of file OTDriver.h.

References Encrypt.

Referenced by setFlags().

void Opietooth2::OTDriver::setfd int  _fd  )  [inline]
 

Definition at line 125 of file OTDriver.h.

References Fd.

Referenced by init(), open(), and SLOT_CloseFd().

void OTDriver::setFeatures unsigned char *  _f  ) 
 

Definition at line 656 of file OTDriver.cpp.

References Features, and NULL.

Referenced by init().

void OTDriver::setFlags unsigned long  flags  ) 
 

Definition at line 271 of file OTDriver.cpp.

References BT_UNKNOWN, BTVALUE, isUp(), IsUp, setAuthentication(), setEncryption(), setIScan(), and setPScan().

Referenced by init().

void Opietooth2::OTDriver::setIScan int  _iscan  )  [inline]
 

Definition at line 136 of file OTDriver.h.

References Iscan.

Referenced by setFlags().

void OTDriver::setManufacturer int  compid  ) 
 

Definition at line 660 of file OTDriver.cpp.

References Manufacturer.

Referenced by revision().

void Opietooth2::OTDriver::setPScan int  _pscan  )  [inline]
 

Definition at line 141 of file OTDriver.h.

References Pscan.

Referenced by setFlags().

void OTDriver::setScanMode bool  iscan,
bool  pscan
 

Definition at line 433 of file OTDriver.cpp.

References devId(), devname(), error(), fd(), open(), reinit(), and tr.

void Opietooth2::OTDriver::setType int  _type  )  [inline]
 

Definition at line 128 of file OTDriver.h.

References Type.

Referenced by init().

void OTDriver::setUp bool  Mode  ) 
 

Definition at line 380 of file OTDriver.cpp.

References bringDown(), bringUp(), and isUp().

Referenced by Opietooth2::OTManage::SLOT_UpDriver().

void OTDriver::SLOT_CloseFd  )  [private, slot]
 

Definition at line 170 of file OTDriver.cpp.

References AutoClose, fd(), isOpen(), and setfd().

Referenced by currentState(), OTDriver(), and ~OTDriver().

void Opietooth2::OTDriver::stateChange OTDriver ,
bool 
[signal]
 

Referenced by reinit().

QString OTDriver::strType  ) 
 

Definition at line 652 of file OTDriver.cpp.

References Type.

int Opietooth2::OTDriver::type  )  const [inline]
 

Definition at line 130 of file OTDriver.h.

References Type.


Member Data Documentation

OTDeviceAddress Opietooth2::OTDriver::Address [private]
 

Definition at line 216 of file OTDriver.h.

Referenced by address(), and init().

int Opietooth2::OTDriver::Auth [private]
 

Definition at line 222 of file OTDriver.h.

Referenced by authentication(), and setAuthentication().

QTimer* Opietooth2::OTDriver::AutoClose [private]
 

Definition at line 218 of file OTDriver.h.

Referenced by open(), OTDriver(), and SLOT_CloseFd().

QString Opietooth2::OTDriver::Dev [private]
 

Definition at line 213 of file OTDriver.h.

Referenced by bringDown(), bringUp(), devname(), init(), and setDev().

int Opietooth2::OTDriver::Dev_id [private]
 

Definition at line 220 of file OTDriver.h.

Referenced by currentState(), devId(), and setDevId().

int Opietooth2::OTDriver::Encrypt [private]
 

Definition at line 222 of file OTDriver.h.

Referenced by encryption(), and setEncryption().

int Opietooth2::OTDriver::Fd [private]
 

Definition at line 220 of file OTDriver.h.

Referenced by fd(), isOpen(), and setfd().

QString Opietooth2::OTDriver::Features [private]
 

Definition at line 217 of file OTDriver.h.

Referenced by features(), and setFeatures().

int Opietooth2::OTDriver::Iscan [private]
 

Definition at line 222 of file OTDriver.h.

Referenced by iscan(), and setIScan().

bool Opietooth2::OTDriver::IsUp [private]
 

Definition at line 221 of file OTDriver.h.

Referenced by currentState(), isUp(), OTDriver(), reinit(), and setFlags().

QString Opietooth2::OTDriver::Manufacturer [private]
 

Definition at line 215 of file OTDriver.h.

Referenced by init(), manufacturer(), and setManufacturer().

QString Opietooth2::OTDriver::Name [private]
 

Definition at line 212 of file OTDriver.h.

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

Definition at line 228 of file OTDriver.h.

Referenced by currentState(), gateway(), and OTDriver().

int Opietooth2::OTDriver::Pscan [private]
 

Definition at line 222 of file OTDriver.h.

Referenced by pscan(), and setPScan().

QString Opietooth2::OTDriver::Revision [private]
 

Definition at line 214 of file OTDriver.h.

OTHCISocket* Opietooth2::OTDriver::Socket [private]
 

Definition at line 225 of file OTDriver.h.

Referenced by closeSocket(), openSocket(), and OTDriver().

int Opietooth2::OTDriver::Type [private]
 

Definition at line 220 of file OTDriver.h.

Referenced by setType(), strType(), and type().


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