summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/rfcommassigndialogitem.cpp
Unidiff
Diffstat (limited to 'noncore/net/opietooth/manager/rfcommassigndialogitem.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/rfcommassigndialogitem.cpp9
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,12 +1,13 @@
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
8using namespace OpieTooth; 9using namespace OpieTooth;
9 10
10 11
11RfcommDialogItem::RfcommDialogItem( QWidget* parent, const char* name, WFlags fl ) 12RfcommDialogItem::RfcommDialogItem( QWidget* parent, const char* name, WFlags fl )
12 : RfcommDialogItemBase( parent, name, fl ) { 13 : RfcommDialogItemBase( parent, name, fl ) {
@@ -30,12 +31,16 @@ int RfcommDialogItem::channel() {
30} 31}
31 32
32QString RfcommDialogItem::comment() { 33QString RfcommDialogItem::comment() {
33 return m_commentLine->text(); 34 return m_commentLine->text();
34} 35}
35 36
37bool RfcommDialogItem::isBind() {
38 return m_bind->isChecked();
39}
40
36void RfcommDialogItem::setIdent( int ident ) { 41void 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
41void RfcommDialogItem::setMac( const QString &mac ) { 46void RfcommDialogItem::setMac( const QString &mac ) {
@@ -47,7 +52,11 @@ void RfcommDialogItem::setChannel( int channel ) {
47} 52}
48 53
49void RfcommDialogItem::setComment( const QString &comment ) { 54void RfcommDialogItem::setComment( const QString &comment ) {
50 m_commentLine->setText( comment ); 55 m_commentLine->setText( comment );
51} 56}
52 57
58void RfcommDialogItem::setBind( bool dobind ) {
59 m_bind->setChecked( dobind );
60}
53 61
62//eof