00001 00002 #include "rfcommassigndialogitem.h" 00003 00004 #include <qlineedit.h> 00005 #include <qcombobox.h> 00006 #include <qgroupbox.h> 00007 00008 using namespace OpieTooth; 00009 00010 00011 RfcommDialogItem::RfcommDialogItem( QWidget* parent, const char* name, WFlags fl ) 00012 : RfcommDialogItemBase( parent, name, fl ) { 00013 00014 } 00015 00016 RfcommDialogItem::~RfcommDialogItem() { 00017 } 00018 00019 00020 int RfcommDialogItem::ident() { 00021 return m_ident; 00022 } 00023 00024 QString RfcommDialogItem::mac() { 00025 return m_macAddress->text(); 00026 } 00027 00028 int RfcommDialogItem::channel() { 00029 return m_channelDropdown->currentItem(); 00030 } 00031 00032 QString RfcommDialogItem::comment() { 00033 return m_commentLine->text(); 00034 } 00035 00036 void RfcommDialogItem::setIdent( int ident ) { 00037 m_ident = ident; 00038 m_identLabel->setTitle( QString( "rfcomm%1").arg( ident ) ); 00039 } 00040 00041 void RfcommDialogItem::setMac( const QString &mac ) { 00042 m_macAddress->setText( mac ); 00043 } 00044 00045 void RfcommDialogItem::setChannel( int channel ) { 00046 m_channelDropdown->setCurrentItem( channel ); 00047 } 00048 00049 void RfcommDialogItem::setComment( const QString &comment ) { 00050 m_commentLine->setText( comment ); 00051 } 00052 00053
1.4.2