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

Opietooth2::OTScan Class Reference

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

Collaboration diagram for Opietooth2::OTScan:

Collaboration graph
[legend]
List of all members.

Signals

void selected (void)

Public Member Functions

 OTScan (QWidget *parent, OTIcons *_Ic=0)
 ~OTScan ()
void setScanFilter (const UUIDVector &Filter)
void resetScanFilter (void)
OTPeerselectedPeer (void)
int selectedChannel (void)

Static Public Member Functions

static int getDevice (OTPeer *&Peer, int &Channel, OTGateway *OT, const UUIDVector &Filter=0, QWidget *Parent=0)

Private Slots

void SLOT_DoScan (bool)
void SLOT_NewPeer (OTPeer *, bool)
void SLOT_FinishedDetecting ()
void SLOT_Show (QListViewItem *)
void SLOT_RefreshServices (void)
void SLOT_RefreshState (void)
void SLOT_CleanupOld (void)
void SLOT_UpdateStrength (void)
void SLOT_PeerState (OTPeer *)
void SLOT_Selected (QListViewItem *)

Private Member Functions

void refreshState (PeerLVI *, bool)
void scanMode (bool)

Private Attributes

bool MyIcons
OTIconsIcons
OTGatewayOT
OTInquiryScanning
UUIDVector Filter
Opie::Ui::OLedBoxPaired_Led
QTimer * StrengthTimer
PeerLVICurrent
OTPeerSelectedPeer
int SelectedChannel

Constructor & Destructor Documentation

OTScan::OTScan QWidget *  parent,
OTIcons _Ic = 0
 

Definition at line 375 of file Opietooth.cpp.

References Current, Opietooth2::OTGateway::getOTGateway(), H(), i, Icons, MyIcons, OT, P, Paired_Led, Opietooth2::OTGateway::peers(), SelectedChannel, SelectedPeer, SLOT_FinishedDetecting(), SLOT_NewPeer(), SLOT_UpdateStrength(), StrengthTimer, tr, and TRUE.

Referenced by getDevice().

OTScan::~OTScan  ) 
 

Definition at line 425 of file Opietooth.cpp.

References Icons, MyIcons, and Opietooth2::OTGateway::releaseOTGateway().


Member Function Documentation

int OTScan::getDevice OTPeer *&  Peer,
int &  Channel,
OTGateway OT,
const UUIDVector Filter = 0,
QWidget *  Parent = 0
[static]
 

Definition at line 439 of file Opietooth.cpp.

References DL, Opietooth2::OTGateway::driver(), Opietooth2::OTGateway::getDriverList(), i, Opietooth2::OTGateway::isEnabled(), IsUp, OTScan(), selected(), setScanFilter(), Opietooth2::OTGateway::setScanWith(), tr, TRUE, and warning().

void OTScan::refreshState PeerLVI ,
bool 
[private]
 

Definition at line 688 of file Opietooth.cpp.

References Icons, Opietooth2::OTIcons::loadPixmap(), and Opietooth2::PeerLVI::peer().

Referenced by SLOT_NewPeer(), and SLOT_RefreshState().

void OTScan::resetScanFilter void   ) 
 

Definition at line 510 of file Opietooth.cpp.

References Filter.

void OTScan::scanMode bool   )  [private]
 

Definition at line 881 of file Opietooth.cpp.

References FALSE, tr, and TRUE.

Referenced by SLOT_DoScan(), SLOT_FinishedDetecting(), and SLOT_RefreshServices().

void Opietooth2::OTScan::selected void   )  [signal]
 

Referenced by getDevice(), and SLOT_Selected().

int Opietooth2::OTScan::selectedChannel void   )  [inline]
 

Definition at line 117 of file Opietooth.h.

References SelectedChannel.

OTPeer* Opietooth2::OTScan::selectedPeer void   )  [inline]
 

Definition at line 115 of file Opietooth.h.

References SelectedPeer.

void OTScan::setScanFilter const UUIDVector Filter  ) 
 

Definition at line 506 of file Opietooth.cpp.

References Filter.

Referenced by getDevice().

void OTScan::SLOT_CleanupOld void   )  [private, slot]
 

Definition at line 557 of file Opietooth.cpp.

References Opietooth2::OTPeer::address(), Opietooth2::OTGateway::getLinkKeys(), odebug, oendl, OT, Opietooth2::OTPeer::Peer_Down, Opietooth2::OTGateway::removePeer(), and Opietooth2::OTPeer::state().

void OTScan::SLOT_DoScan bool   )  [private, slot]
 

Definition at line 514 of file Opietooth.cpp.

References OT, scanMode(), Opietooth2::OTGateway::scanNeighbourhood(), and Opietooth2::OTGateway::stopScanOfNeighbourhood().

void OTScan::SLOT_FinishedDetecting  )  [private, slot]
 

Definition at line 553 of file Opietooth.cpp.

References scanMode().

Referenced by OTScan().

void OTScan::SLOT_NewPeer OTPeer ,
bool 
[private, slot]
 

Definition at line 599 of file Opietooth.cpp.

References Opietooth2::OTIcons::deviceIcon(), Opietooth2::OTGateway::deviceTypeToName(), Icons, odebug, oendl, OT, refreshState(), and SLOT_PeerState().

Referenced by OTScan().

void OTScan::SLOT_PeerState OTPeer  )  [private, slot]
 

Definition at line 643 of file Opietooth.cpp.

References Opietooth2::OTPeer::connectedTo(), Current, FALSE, Icons, Opietooth2::OTIcons::loadPixmap(), Opietooth2::PeerLVI::peer(), Opietooth2::OTPeer::Peer_Down, Opietooth2::OTPeer::Peer_Unknown, Opietooth2::OTPeer::Peer_Up, SLOT_UpdateStrength(), Opietooth2::OTPeer::state(), and StrengthTimer.

Referenced by SLOT_NewPeer().

void OTScan::SLOT_RefreshServices void   )  [private, slot]
 

Definition at line 747 of file Opietooth.cpp.

References Filter, i, Icons, ID, QString::isEmpty(), name, Opietooth2::PeerLVI::peer(), PI, qApp, S, scanMode(), and Opietooth2::OTIcons::serviceIcon().

void OTScan::SLOT_RefreshState void   )  [private, slot]
 

Definition at line 672 of file Opietooth.cpp.

References refreshState().

void OTScan::SLOT_Selected QListViewItem *   )  [private, slot]
 

Definition at line 525 of file Opietooth.cpp.

References Opietooth2::OTPeer::address(), Filter, odebug, oendl, selected(), SelectedChannel, and SelectedPeer.

void OTScan::SLOT_Show QListViewItem *   )  [private, slot]
 

Definition at line 693 of file Opietooth.cpp.

References Current, FALSE, Opietooth2::OTGateway::getLinkKeys(), i, OT, Paired_Led, Opietooth2::PeerLVI::peer(), Opietooth2::OTPeer::Peer_Up, S, Opie::Ui::OLedBox::setOn(), SLOT_UpdateStrength(), StrengthTimer, and TRUE.

void OTScan::SLOT_UpdateStrength void   )  [private, slot]
 

Definition at line 728 of file Opietooth.cpp.

References Current, FALSE, Opietooth2::OTDriver::getLinkQuality(), Opietooth2::PeerLVI::peer(), StrengthTimer, and TRUE.

Referenced by OTScan(), SLOT_PeerState(), and SLOT_Show().


Member Data Documentation

PeerLVI* Opietooth2::OTScan::Current [private]
 

Definition at line 156 of file Opietooth.h.

Referenced by OTScan(), SLOT_PeerState(), SLOT_Show(), and SLOT_UpdateStrength().

UUIDVector Opietooth2::OTScan::Filter [private]
 

Definition at line 152 of file Opietooth.h.

Referenced by resetScanFilter(), setScanFilter(), SLOT_RefreshServices(), and SLOT_Selected().

OTIcons* Opietooth2::OTScan::Icons [private]
 

Definition at line 149 of file Opietooth.h.

Referenced by OTScan(), refreshState(), SLOT_NewPeer(), SLOT_PeerState(), SLOT_RefreshServices(), and ~OTScan().

bool Opietooth2::OTScan::MyIcons [private]
 

Definition at line 148 of file Opietooth.h.

Referenced by OTScan(), and ~OTScan().

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

Definition at line 150 of file Opietooth.h.

Referenced by OTScan(), SLOT_CleanupOld(), SLOT_DoScan(), SLOT_NewPeer(), and SLOT_Show().

Opie::Ui::OLedBox* Opietooth2::OTScan::Paired_Led [private]
 

Definition at line 154 of file Opietooth.h.

Referenced by OTScan(), and SLOT_Show().

OTInquiry* Opietooth2::OTScan::Scanning [private]
 

Definition at line 151 of file Opietooth.h.

int Opietooth2::OTScan::SelectedChannel [private]
 

Definition at line 159 of file Opietooth.h.

Referenced by OTScan(), selectedChannel(), and SLOT_Selected().

OTPeer* Opietooth2::OTScan::SelectedPeer [private]
 

Definition at line 158 of file Opietooth.h.

Referenced by OTScan(), selectedPeer(), and SLOT_Selected().

QTimer* Opietooth2::OTScan::StrengthTimer [private]
 

Definition at line 155 of file Opietooth.h.

Referenced by OTScan(), SLOT_PeerState(), SLOT_Show(), and SLOT_UpdateStrength().


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