summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/rfcommassigndialogitem.cpp
Side-by-side diff
Diffstat (limited to 'noncore/net/opietooth/manager/rfcommassigndialogitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/rfcommassigndialogitem.cpp54
1 files changed, 54 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/rfcommassigndialogitem.cpp b/noncore/net/opietooth/manager/rfcommassigndialogitem.cpp
new file mode 100644
index 0000000..1e7130f
--- a/dev/null
+++ b/noncore/net/opietooth/manager/rfcommassigndialogitem.cpp
@@ -0,0 +1,54 @@
+
+#include "rfcommassigndialogitem.h"
+
+#include <qlineedit.h>
+#include <qcombobox.h>
+#include <qlabel.h>
+#include <qgroupbox.h>
+
+using namespace OpieTooth;
+
+
+RfcommDialogItem::RfcommDialogItem( QWidget* parent, const char* name, WFlags fl )
+ : RfcommDialogItemBase( parent, name, fl ) {
+
+}
+
+RfcommDialogItem::~RfcommDialogItem() {
+}
+
+
+int RfcommDialogItem::ident() {
+ return m_ident;
+}
+
+QString RfcommDialogItem::mac() {
+ return m_macAddress->text();
+}
+
+int RfcommDialogItem::channel() {
+ return m_channelDropdown->currentItem();
+}
+
+QString RfcommDialogItem::comment() {
+ return m_commentLine->text();
+}
+
+void RfcommDialogItem::setIdent( int ident ) {
+ m_ident = ident;
+ m_identLabel->setTitle( QString( "rfcomm%1").arg( ident ) );
+}
+
+void RfcommDialogItem::setMac( const QString &mac ) {
+ m_macAddress->setText( mac );
+}
+
+void RfcommDialogItem::setChannel( int channel ) {
+ m_channelDropdown->setCurrentItem( channel );
+}
+
+void RfcommDialogItem::setComment( const QString &comment ) {
+ m_commentLine->setText( comment );
+}
+
+