summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/bluebase.h
blob: 7b03f82d0ab94f0eac96903cb3cded65a0b35ebc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75

#ifndef BLUEBASE_H
#define BLUEBASE_H

#include <qvariant.h>
#include <qwidget.h>
#include <qscrollview.h>
#include <qsplitter.h>
#include <qlist.h>
#include <qpixmap.h>

#include "bluetoothbase.h"

#include <remotedevice.h>

class QVBox;
class QHBoxLayout;
class QGridLayout;
class QFrame;
class QLabel;
class QPushButton;
class QTabWidget;
class QCheckBox;


namespace OpieTooth {



    class BlueBase : public BluetoothBase {
        Q_OBJECT

    public:
        BlueBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
        ~BlueBase();

    protected:


            private slots:
        void startScan();

    private:
	void readConfig();
	void writeConfig();
        void readSavedDevices();
        void writeSavedDevices();
	QString getStatus();
	void initGui();
        void setInfo();

        bool deviceActive( RemoteDevice *device );

	QString deviceName;
	QString defaultPasskey;
	int useEncryption;
	int enableAuthentification;
	int enablePagescan;
	int enableInquiryscan;

        QPixmap offPix;
        QPixmap onPix;

	private slots:
        void addSearchedDevices( QList<RemoteDevice> &newDevices );
        void addServicesToDevice( QListViewItem * item );
        void startServiceActionClicked( QListViewItem * item );
        void startServiceActionHold( QListViewItem * item, const QPoint & point, int column);
      	void applyConfigChanges();

    };

}

#endif