summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/bluebase.h
Unidiff
Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.h b/noncore/net/opietooth/manager/bluebase.h
index 48883d2..0128a88 100644
--- a/noncore/net/opietooth/manager/bluebase.h
+++ b/noncore/net/opietooth/manager/bluebase.h
@@ -1,43 +1,44 @@
1 1
2#ifndef BLUEBASE_H 2#ifndef BLUEBASE_H
3#define BLUEBASE_H 3#define BLUEBASE_H
4 4
5#include <qvariant.h> 5#include <qvariant.h>
6#include <qwidget.h> 6#include <qwidget.h>
7#include <qscrollview.h> 7#include <qscrollview.h>
8#include <qsplitter.h> 8#include <qsplitter.h>
9#include <qlist.h> 9#include <qlist.h>
10#include <qpixmap.h> 10#include <qpixmap.h>
11 11
12#include "bluetoothbase.h" 12#include "bluetoothbase.h"
13 13
14#include "btserviceitem.h" 14#include "btserviceitem.h"
15#include "btdeviceitem.h" 15#include "btdeviceitem.h"
16 16
17#include "popuphelper.h" 17#include "popuphelper.h"
18 18
19#include "bticonloader.h" 19#include "bticonloader.h"
20#include "forwarder.h"
20 21
21#include <remotedevice.h> 22#include <remotedevice.h>
22#include <manager.h> 23#include <manager.h>
23 24
24class QVBox; 25class QVBox;
25class QHBoxLayout; 26class QHBoxLayout;
26class QGridLayout; 27class QGridLayout;
27class QFrame; 28class QFrame;
28class QLabel; 29class QLabel;
29class QPushButton; 30class QPushButton;
30class QTabWidget; 31class QTabWidget;
31class QCheckBox; 32class QCheckBox;
32class BTConnectionItem; 33class BTConnectionItem;
33 34
34 35
35namespace OpieTooth { 36namespace OpieTooth {
36 37
37 class BlueBase : public BluetoothBase { 38 class BlueBase : public BluetoothBase {
38 Q_OBJECT 39 Q_OBJECT
39 40
40 public: 41 public:
41 BlueBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 42 BlueBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
42 ~BlueBase(); 43 ~BlueBase();
43 44
@@ -58,45 +59,48 @@ namespace OpieTooth {
58 void writeSavedDevices(); 59 void writeSavedDevices();
59 void writeToHciConfig(); 60 void writeToHciConfig();
60 QString status()const; 61 QString status()const;
61 void initGui(); 62 void initGui();
62 void setInfo(); 63 void setInfo();
63 64
64 PopupHelper m_popHelper; 65 PopupHelper m_popHelper;
65 Manager *m_localDevice; 66 Manager *m_localDevice;
66 QMap<QString,BTDeviceItem*> m_deviceList; 67 QMap<QString,BTDeviceItem*> m_deviceList;
67 68
68 void deviceActive( const RemoteDevice &device ); 69 void deviceActive( const RemoteDevice &device );
69 70
70 QString m_deviceName; 71 QString m_deviceName;
71 QString m_defaultPasskey; 72 QString m_defaultPasskey;
72 bool m_useEncryption; 73 bool m_useEncryption;
73 bool m_enableAuthentification; 74 bool m_enableAuthentification;
74 bool m_enablePagescan; 75 bool m_enablePagescan;
75 bool m_enableInquiryscan; 76 bool m_enableInquiryscan;
76 77
77 QPixmap m_offPix; 78 QPixmap m_offPix;
78 QPixmap m_onPix; 79 QPixmap m_onPix;
79 QPixmap m_findPix; 80 QPixmap m_findPix;
80 81
81 BTIconLoader *m_iconLoader; 82 BTIconLoader *m_iconLoader;
83 SerialForwarder* forwarder;
82 84
83 private slots: 85 private slots:
84 void addSearchedDevices( const QValueList<RemoteDevice> &newDevices ); 86 void addSearchedDevices( const QValueList<RemoteDevice> &newDevices );
85 void addServicesToDevices(); 87 void addServicesToDevices();
86 void addServicesToDevice( BTDeviceItem *item ); 88 void addServicesToDevice( BTDeviceItem *item );
87 void addServicesToDevice( const QString& device, Services::ValueList ); 89 void addServicesToDevice( const QString& device, Services::ValueList );
88 void addConnectedDevices(); 90 void addConnectedDevices();
89 void addConnectedDevices( ConnectionState::ValueList ); 91 void addConnectedDevices( ConnectionState::ValueList );
90 void startServiceActionClicked( QListViewItem *item ); 92 void startServiceActionClicked( QListViewItem *item );
91 void startServiceActionHold( QListViewItem *, const QPoint &, int ); 93 void startServiceActionHold( QListViewItem *, const QPoint &, int );
92 void deviceActive( const QString& mac, bool connected ); 94 void deviceActive( const QString& mac, bool connected );
93 void applyConfigChanges(); 95 void applyConfigChanges();
96 void doForward();
97 void forwardExit(Opie::Core::OProcess* proc);
94 void addSignalStrength(); 98 void addSignalStrength();
95 void addSignalStrength( const QString& mac, const QString& strengh ); 99 void addSignalStrength( const QString& mac, const QString& strengh );
96 void rfcommDialog(); 100 void rfcommDialog();
97 101
98 }; 102 };
99 103
100} 104}
101 105
102#endif 106#endif