author | korovkin <korovkin> | 2006-03-25 18:10:13 (UTC) |
---|---|---|
committer | korovkin <korovkin> | 2006-03-25 18:10:13 (UTC) |
commit | c4f82599db775f52c7e04cce09c7c45ecc89ccfd (patch) (unidiff) | |
tree | 81d48e5363a2135bb6820510ae7f5dee9999e8f2 /noncore/net/opietooth/manager/rfcommassigndialogitem.cpp | |
parent | da3c4a6231882bc56266162415a8d1a2a1bf0293 (diff) | |
download | opie-c4f82599db775f52c7e04cce09c7c45ecc89ccfd.zip opie-c4f82599db775f52c7e04cce09c7c45ecc89ccfd.tar.gz opie-c4f82599db775f52c7e04cce09c7c45ecc89ccfd.tar.bz2 |
Added RFCOMM binding table functionality.
Diffstat (limited to 'noncore/net/opietooth/manager/rfcommassigndialogitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/rfcommassigndialogitem.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/rfcommassigndialogitem.cpp b/noncore/net/opietooth/manager/rfcommassigndialogitem.cpp index a41f304..472b86c 100644 --- a/noncore/net/opietooth/manager/rfcommassigndialogitem.cpp +++ b/noncore/net/opietooth/manager/rfcommassigndialogitem.cpp | |||
@@ -1,18 +1,19 @@ | |||
1 | 1 | ||
2 | #include "rfcommassigndialogitem.h" | 2 | #include "rfcommassigndialogitem.h" |
3 | 3 | ||
4 | #include <qlineedit.h> | 4 | #include <qlineedit.h> |
5 | #include <qcombobox.h> | 5 | #include <qcombobox.h> |
6 | #include <qgroupbox.h> | 6 | #include <qgroupbox.h> |
7 | #include <qcheckbox.h> | ||
7 | 8 | ||
8 | using namespace OpieTooth; | 9 | using namespace OpieTooth; |
9 | 10 | ||
10 | 11 | ||
11 | RfcommDialogItem::RfcommDialogItem( QWidget* parent, const char* name, WFlags fl ) | 12 | RfcommDialogItem::RfcommDialogItem( QWidget* parent, const char* name, WFlags fl ) |
12 | : RfcommDialogItemBase( parent, name, fl ) { | 13 | : RfcommDialogItemBase( parent, name, fl ) { |
13 | 14 | ||
14 | } | 15 | } |
15 | 16 | ||
16 | RfcommDialogItem::~RfcommDialogItem() { | 17 | RfcommDialogItem::~RfcommDialogItem() { |
17 | } | 18 | } |
18 | 19 | ||
@@ -24,30 +25,38 @@ int RfcommDialogItem::ident() { | |||
24 | QString RfcommDialogItem::mac() { | 25 | QString RfcommDialogItem::mac() { |
25 | return m_macAddress->text(); | 26 | return m_macAddress->text(); |
26 | } | 27 | } |
27 | 28 | ||
28 | int RfcommDialogItem::channel() { | 29 | int RfcommDialogItem::channel() { |
29 | return m_channelDropdown->currentItem(); | 30 | return m_channelDropdown->currentItem(); |
30 | } | 31 | } |
31 | 32 | ||
32 | QString RfcommDialogItem::comment() { | 33 | QString RfcommDialogItem::comment() { |
33 | return m_commentLine->text(); | 34 | return m_commentLine->text(); |
34 | } | 35 | } |
35 | 36 | ||
37 | bool RfcommDialogItem::isBind() { | ||
38 | return m_bind->isChecked(); | ||
39 | } | ||
40 | |||
36 | void RfcommDialogItem::setIdent( int ident ) { | 41 | void RfcommDialogItem::setIdent( int ident ) { |
37 | m_ident = ident; | 42 | m_ident = ident; |
38 | m_identLabel->setTitle( QString( "rfcomm%1").arg( ident ) ); | 43 | m_identLabel->setTitle( QString( "rfcomm%1").arg( ident ) ); |
39 | } | 44 | } |
40 | 45 | ||
41 | void RfcommDialogItem::setMac( const QString &mac ) { | 46 | void RfcommDialogItem::setMac( const QString &mac ) { |
42 | m_macAddress->setText( mac ); | 47 | m_macAddress->setText( mac ); |
43 | } | 48 | } |
44 | 49 | ||
45 | void RfcommDialogItem::setChannel( int channel ) { | 50 | void RfcommDialogItem::setChannel( int channel ) { |
46 | m_channelDropdown->setCurrentItem( channel ); | 51 | m_channelDropdown->setCurrentItem( channel ); |
47 | } | 52 | } |
48 | 53 | ||
49 | void RfcommDialogItem::setComment( const QString &comment ) { | 54 | void RfcommDialogItem::setComment( const QString &comment ) { |
50 | m_commentLine->setText( comment ); | 55 | m_commentLine->setText( comment ); |
51 | } | 56 | } |
52 | 57 | ||
58 | void RfcommDialogItem::setBind( bool dobind ) { | ||
59 | m_bind->setChecked( dobind ); | ||
60 | } | ||
53 | 61 | ||
62 | //eof | ||