summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/bluebase.h
Unidiff
Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/bluebase.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.h b/noncore/net/opietooth/manager/bluebase.h
index a8ab3db..48883d2 100644
--- a/noncore/net/opietooth/manager/bluebase.h
+++ b/noncore/net/opietooth/manager/bluebase.h
@@ -19,83 +19,84 @@
19#include "bticonloader.h" 19#include "bticonloader.h"
20 20
21#include <remotedevice.h> 21#include <remotedevice.h>
22#include <manager.h> 22#include <manager.h>
23 23
24class QVBox; 24class QVBox;
25class QHBoxLayout; 25class QHBoxLayout;
26class QGridLayout; 26class QGridLayout;
27class QFrame; 27class QFrame;
28class QLabel; 28class QLabel;
29class QPushButton; 29class QPushButton;
30class QTabWidget; 30class QTabWidget;
31class QCheckBox; 31class QCheckBox;
32class BTConnectionItem; 32class BTConnectionItem;
33 33
34 34
35namespace OpieTooth { 35namespace OpieTooth {
36 36
37 class BlueBase : public BluetoothBase { 37 class BlueBase : public BluetoothBase {
38 Q_OBJECT 38 Q_OBJECT
39 39
40 public: 40 public:
41 BlueBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 41 BlueBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
42 ~BlueBase(); 42 ~BlueBase();
43 43
44 static QString appName() { return QString::fromLatin1("bluetooth-manager"); } 44 static QString appName() { return QString::fromLatin1("bluetooth-manager"); }
45 45
46 protected: 46 protected:
47 47
48 48
49 private slots: 49 private slots:
50 void startScan(); 50 void startScan();
51 51
52 52
53 private: 53 private:
54 bool find( const RemoteDevice& device ); 54 bool find( const RemoteDevice& device );
55 void readConfig(); 55 void readConfig();
56 void writeConfig(); 56 void writeConfig();
57 void readSavedDevices(); 57 void readSavedDevices();
58 void writeSavedDevices(); 58 void writeSavedDevices();
59 void writeToHciConfig(); 59 void writeToHciConfig();
60 QString status()const; 60 QString status()const;
61 void initGui(); 61 void initGui();
62 void setInfo(); 62 void setInfo();
63 63
64 PopupHelper m_popHelper; 64 PopupHelper m_popHelper;
65 Manager *m_localDevice; 65 Manager *m_localDevice;
66 QMap<QString,BTDeviceItem*> m_deviceList; 66 QMap<QString,BTDeviceItem*> m_deviceList;
67 67
68 void deviceActive( const RemoteDevice &device ); 68 void deviceActive( const RemoteDevice &device );
69 69
70 QString m_deviceName; 70 QString m_deviceName;
71 QString m_defaultPasskey; 71 QString m_defaultPasskey;
72 bool m_useEncryption; 72 bool m_useEncryption;
73 bool m_enableAuthentification; 73 bool m_enableAuthentification;
74 bool m_enablePagescan; 74 bool m_enablePagescan;
75 bool m_enableInquiryscan; 75 bool m_enableInquiryscan;
76 76
77 QPixmap m_offPix; 77 QPixmap m_offPix;
78 QPixmap m_onPix; 78 QPixmap m_onPix;
79 QPixmap m_findPix; 79 QPixmap m_findPix;
80 80
81 BTIconLoader *m_iconLoader; 81 BTIconLoader *m_iconLoader;
82 82
83 private slots: 83 private slots:
84 void addSearchedDevices( const QValueList<RemoteDevice> &newDevices ); 84 void addSearchedDevices( const QValueList<RemoteDevice> &newDevices );
85 void addServicesToDevices();
85 void addServicesToDevice( BTDeviceItem *item ); 86 void addServicesToDevice( BTDeviceItem *item );
86 void addServicesToDevice( const QString& device, Services::ValueList ); 87 void addServicesToDevice( const QString& device, Services::ValueList );
87 void addConnectedDevices(); 88 void addConnectedDevices();
88 void addConnectedDevices( ConnectionState::ValueList ); 89 void addConnectedDevices( ConnectionState::ValueList );
89 void startServiceActionClicked( QListViewItem *item ); 90 void startServiceActionClicked( QListViewItem *item );
90 void startServiceActionHold( QListViewItem *, const QPoint &, int ); 91 void startServiceActionHold( QListViewItem *, const QPoint &, int );
91 void deviceActive( const QString& mac, bool connected ); 92 void deviceActive( const QString& mac, bool connected );
92 void applyConfigChanges(); 93 void applyConfigChanges();
93 void addSignalStrength(); 94 void addSignalStrength();
94 void addSignalStrength( const QString& mac, const QString& strengh ); 95 void addSignalStrength( const QString& mac, const QString& strengh );
95 void rfcommDialog(); 96 void rfcommDialog();
96 97
97 }; 98 };
98 99
99} 100}
100 101
101#endif 102#endif