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

Opietooth.h

Go to the documentation of this file.
00001 #ifndef OPIETOOTH_H
00002 #define OPIETOOTH_H
00003 
00004 #include "OTIcons.h"
00005 
00006 class MyProcess;
00007 
00008 namespace Opie { 
00009 
00010   namespace Ui { 
00011 
00012     class OLedBox;
00013 
00014   }
00015 
00016 }
00017 
00018 #include "OTSniffGUI.h"
00019 namespace Opietooth2 {
00020 
00021 class OTGateway;
00022 class OTDriver;
00023 class OTInquiry;
00024 class OTPeer;
00025 class PeerLVI;
00026 
00027 class OTSniffing : public OTSniffGUI {
00028 
00029       Q_OBJECT
00030 
00031 public :
00032 
00033       OTSniffing( QWidget * parent );
00034       ~OTSniffing();
00035 
00036 private slots :
00037 
00038       void SLOT_Trace( bool );
00039       void SLOT_ClearLog( void );
00040       void SLOT_Load( void );
00041       void SLOT_Save( void );
00042       void SLOT_ProcessExited( MyProcess * );
00043       void SLOT_Show( const QString & );
00044 
00045 signals :
00046 
00047 protected :
00048 
00049 private :
00050 
00051       OTGateway *       OT;
00052       MyProcess *       HciDump;
00053 };
00054 }
00055 
00056 #include "OTPairingGUI.h"
00057 
00058 namespace Opietooth2 {
00059 class OTPairing : public OTPairingGUI {
00060 
00061       Q_OBJECT
00062 
00063 public :
00064 
00065       OTPairing( QWidget * parent, 
00066                  OTIcons * _Ic = 0 );
00067       ~OTPairing();
00068 
00069 private slots :
00070 
00071       void SLOT_Unpair( void );
00072 
00073 signals :
00074 
00075 protected :
00076 
00077 private :
00078 
00079       bool              MyIcons;
00080       OTIcons *         Icons;
00081       OTGateway *       OT;
00082 };
00083 }
00084 
00085 #include "OTScanGUI.h"
00086 
00087 namespace Opietooth2 {
00088 
00089 class OTGateway;
00090 class OTDriver;
00091 class OTInquiry;
00092 class OTPeer;
00093 
00094 class OTScan : public OTScanGUI {
00095 
00096       Q_OBJECT
00097 
00098 public :
00099 
00100       OTScan( QWidget * parent, 
00101               OTIcons * _Ic = 0 );
00102       ~OTScan();
00103 
00104       // static function to return a device and a channel
00105       static int getDevice( OTPeer *& Peer, 
00106                             int & Channel,
00107                             OTGateway * OT,
00108                             const UUIDVector & Filter = 0,
00109                             QWidget* Parent = 0);
00110 
00111       // show only services that match any of the filter
00112       void setScanFilter( const UUIDVector & Filter );
00113       void resetScanFilter( void );
00114 
00115       inline OTPeer * selectedPeer( void )
00116         { return SelectedPeer; }
00117       inline int selectedChannel( void )
00118         { return SelectedChannel; }
00119 
00120 public slots :
00121 
00122 private slots :
00123 
00124       void SLOT_DoScan( bool );
00125       void SLOT_NewPeer( OTPeer *, bool );
00126       void SLOT_FinishedDetecting();
00127       void SLOT_Show( QListViewItem *);
00128       void SLOT_RefreshServices( void );
00129       void SLOT_RefreshState( void );
00130       void SLOT_CleanupOld( void );
00131       void SLOT_UpdateStrength( void );
00132       void SLOT_PeerState( OTPeer * );
00133       void SLOT_Selected( QListViewItem * );
00134 
00135 signals :
00136 
00137       void selected( void );
00138 
00139 protected :
00140 
00141 private :
00142 
00143       void refreshState( PeerLVI *, bool );
00144       void scanMode( bool );
00145 
00146       // load scanned devices
00147 
00148       bool              MyIcons;
00149       OTIcons *         Icons;
00150       OTGateway *       OT;
00151       OTInquiry *       Scanning;
00152       UUIDVector        Filter;
00153 
00154       Opie::Ui::OLedBox *         Paired_Led;
00155       QTimer *          StrengthTimer;
00156       PeerLVI *         Current;
00157 
00158       OTPeer *          SelectedPeer;
00159       int               SelectedChannel;
00160 };
00161 }
00162 
00163 #include "OTManageGUI.h"
00164 namespace Opietooth2 {
00165 
00166 class OTManage : public OTManageGUI {
00167 
00168       Q_OBJECT
00169 
00170 public :
00171 
00172       OTManage( QWidget * parent,
00173                 OTIcons * _IC = 0 );
00174       ~OTManage();
00175 
00176 public slots :
00177 
00178 private slots :
00179 
00180       void SLOT_ShowDriver( QListViewItem * );
00181       void SLOT_UpDriver( bool );
00182       void SLOT_StateChange( OTDriver * , bool );
00183       void SLOT_DriverListChanged();
00184       void SLOT_SetRefreshTimer( int );
00185 
00186 signals :
00187 
00188 protected :
00189 
00190 private :
00191 
00192       // load scanned devices
00193 
00194       bool              MyIcons;
00195       OTIcons *         Icons;
00196       OTGateway *       OT;
00197       OTInquiry *       Scanning;
00198 };
00199 }
00200 
00201 #include "OTMainGUI.h"
00202 
00203 namespace Opietooth2 {
00204 class OTMain : public OTMainGUI {
00205 
00206       Q_OBJECT
00207 
00208 public :
00209 
00210       OTMain( QWidget * parent );
00211       ~OTMain();
00212 
00213 public slots :
00214 
00215 private slots :
00216 
00217       void SLOT_Pairing( void );
00218       void SLOT_Manage( void );
00219       void SLOT_Sniffing( void );
00220       void SLOT_Scan( void );
00221       void SLOT_EnableBluetooth( bool );
00222       void SLOT_DriverListChanged();
00223       void SLOT_DeviceIsEnabled( bool );
00224       void SLOT_StateChange( OTDriver * , bool );
00225 
00226 signals :
00227 
00228 protected :
00229 
00230 private :
00231 
00232       // load scanned devices
00233       OTIcons *         Icons;
00234       OTGateway *       OT;
00235       QDialog *         SnifWindow;
00236 };
00237 }
00238 #endif

Generated on Sat Nov 5 16:17:55 2005 for OPIE by  doxygen 1.4.2