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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.h b/noncore/net/opietooth/manager/bluebase.h
index 743062c..a8ab3db 100644
--- a/noncore/net/opietooth/manager/bluebase.h
+++ b/noncore/net/opietooth/manager/bluebase.h
@@ -19,79 +19,83 @@
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
44 static QString appName() { return QString::fromLatin1("bluetooth-manager"); }
43 45
44 protected: 46 protected:
45 47
46 48
47 private slots: 49 private slots:
48 void startScan(); 50 void startScan();
49 51
52
50 private: 53 private:
51 bool find( const RemoteDevice& device ); 54 bool find( const RemoteDevice& device );
52 void readConfig(); 55 void readConfig();
53 void writeConfig(); 56 void writeConfig();
54 void readSavedDevices(); 57 void readSavedDevices();
55 void writeSavedDevices(); 58 void writeSavedDevices();
56 void writeToHciConfig(); 59 void writeToHciConfig();
57 QString status()const; 60 QString status()const;
58 void initGui(); 61 void initGui();
59 void setInfo(); 62 void setInfo();
60 63
61 PopupHelper m_popHelper; 64 PopupHelper m_popHelper;
62 Manager *m_localDevice; 65 Manager *m_localDevice;
63 QMap<QString,BTDeviceItem*> m_deviceList; 66 QMap<QString,BTDeviceItem*> m_deviceList;
64 67
65 void deviceActive( const RemoteDevice &device ); 68 void deviceActive( const RemoteDevice &device );
66 69
67 QString m_deviceName; 70 QString m_deviceName;
68 QString m_defaultPasskey; 71 QString m_defaultPasskey;
69 bool m_useEncryption; 72 bool m_useEncryption;
70 bool m_enableAuthentification; 73 bool m_enableAuthentification;
71 bool m_enablePagescan; 74 bool m_enablePagescan;
72 bool m_enableInquiryscan; 75 bool m_enableInquiryscan;
73 76
74 QPixmap m_offPix; 77 QPixmap m_offPix;
75 QPixmap m_onPix; 78 QPixmap m_onPix;
76 QPixmap m_findPix; 79 QPixmap m_findPix;
77 80
78 BTIconLoader *m_iconLoader; 81 BTIconLoader *m_iconLoader;
79 82
80 private slots: 83 private slots:
81 void addSearchedDevices( const QValueList<RemoteDevice> &newDevices ); 84 void addSearchedDevices( const QValueList<RemoteDevice> &newDevices );
82 void addServicesToDevice( BTDeviceItem *item ); 85 void addServicesToDevice( BTDeviceItem *item );
83 void addServicesToDevice( const QString& device, Services::ValueList ); 86 void addServicesToDevice( const QString& device, Services::ValueList );
84 void addConnectedDevices(); 87 void addConnectedDevices();
85 void addConnectedDevices( ConnectionState::ValueList ); 88 void addConnectedDevices( ConnectionState::ValueList );
86 void startServiceActionClicked( QListViewItem *item ); 89 void startServiceActionClicked( QListViewItem *item );
87 void startServiceActionHold( QListViewItem *, const QPoint &, int ); 90 void startServiceActionHold( QListViewItem *, const QPoint &, int );
88 void deviceActive( const QString& mac, bool connected ); 91 void deviceActive( const QString& mac, bool connected );
89 void applyConfigChanges(); 92 void applyConfigChanges();
90 void addSignalStrength(); 93 void addSignalStrength();
91 void addSignalStrength( const QString& mac, const QString& strengh ); 94 void addSignalStrength( const QString& mac, const QString& strengh );
95 void rfcommDialog();
92 96
93 }; 97 };
94 98
95} 99}
96 100
97#endif 101#endif