From e439d0e6eaa6704a8b1b89ea32aa8a0520738a04 Mon Sep 17 00:00:00 2001 From: skyhusker Date: Wed, 20 Apr 2005 10:25:20 +0000 Subject: First commit of OpieStumbler, an application which performs wireless networks scanning using Wireless Extensions --- (limited to 'noncore/net/opiestumbler/stationinfo.cpp') diff --git a/noncore/net/opiestumbler/stationinfo.cpp b/noncore/net/opiestumbler/stationinfo.cpp new file mode 100644 index 0000000..926610e --- a/dev/null +++ b/noncore/net/opiestumbler/stationinfo.cpp @@ -0,0 +1,63 @@ +#include +#include + + +#include "stationinfo.h" + + +StationInfo::StationInfo( const QString &ssid, const QString &type, const QString &channel, + const QString &maxrate, const QString &level, const QString &encryption, const QString &address, + const QString &vendor, const QString &time, + QWidget *parent, const char *name, bool modal, WFlags f) + : QDialog( parent, name, modal, f) +{ + setCaption(tr("Station Details")); + + QGridLayout *grid = new QGridLayout( this, 1, 2, 5); + QVBoxLayout *layLeft = new QVBoxLayout(0, 0, 6); + QVBoxLayout *layRight = new QVBoxLayout(0, 0, 6); + + + m_ssidLabel = new QLabel( tr("SSID:"), this ); + layLeft->addWidget(m_ssidLabel); + m_typeLabel = new QLabel( tr("Type:"), this ); + layLeft->addWidget(m_typeLabel); + m_channelLabel = new QLabel( tr("Channel:"), this ); + layLeft->addWidget(m_channelLabel); + m_maxRateLabel = new QLabel( tr("Max Rate"), this ); + layLeft->addWidget(m_maxRateLabel); + m_levelLabel = new QLabel( tr("Max Signal:"), this ); + layLeft->addWidget(m_levelLabel); + m_encLabel = new QLabel( tr("Encryption:"), this ); + layLeft->addWidget(m_encLabel); + m_addrLabel = new QLabel( tr("Address:"), this ); + layLeft->addWidget(m_addrLabel); + m_vendorLabel = new QLabel( tr("Vendor:"), this ); + layLeft->addWidget(m_vendorLabel); + m_timeLabel = new QLabel( tr("Last Time Seen:"), this ); + layLeft->addWidget(m_timeLabel); + + + m_ssid = new QLabel( ssid, this); + layRight->addWidget(m_ssid); + m_type = new QLabel( type, this); + layRight->addWidget(m_type); + m_channel = new QLabel( channel, this); + layRight->addWidget(m_channel); + m_maxRate = new QLabel( maxrate + " " + tr("Mb/s"), this ); + layRight->addWidget( m_maxRate ); + m_level = new QLabel( level, this); + layRight->addWidget(m_level); + m_encryption = new QLabel( encryption, this); + layRight->addWidget(m_encryption); + m_address = new QLabel( address, this); + layRight->addWidget(m_address); + m_vendor = new QLabel( vendor, this); + layRight->addWidget(m_vendor); + m_lastTime = new QLabel( time, this); + layRight->addWidget(m_lastTime); + + + grid->addLayout( layRight, 0, 1); + grid->addLayout( layLeft, 0, 0 ); +} -- cgit v0.9.0.2