~ubuntu-branches/ubuntu/karmic/plasma-widget-network-manager/karmic

« back to all changes in this revision

Viewing changes to applet/wirelessinterfaceitem.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2009-02-24 11:55:30 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090224115530-t9l7etoc91iewga9
Tags: 0.0+svn930811-0ubuntu1
* New SVN snapshot
* Essentially bug fixes, including memory leak

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
            break;
115
115
        case Solid::Control::NetworkInterface::Disconnected:
116
116
        case Solid::Control::NetworkInterface::Failed:
117
 
            kDebug() << "Activating default connection.";
 
117
             kDebug() << "Activating default connection.";
118
118
             connections = availableConnections();
119
119
             accesspoints = availableAccessPoints();
120
120
             connections = appropriateConnections(connections, accesspoints);
146
146
    //kDebug() << m_activeAccessPoint;
147
147
    //kDebug() << m_activeConnections;
148
148
    if (m_activeAccessPoint) {
149
 
        m_connectionInfoLabel->setText(i18n("<b>Signal Strength:</b> %1 %", m_activeAccessPoint->signalStrength())); //TODO:
 
149
 
 
150
        //TODO:
150
151
        if (m_strengthMeter) {
151
152
            m_strengthMeter->setValue(m_activeAccessPoint->signalStrength());
152
153
            m_strengthMeter->show();
187
188
                m_connectionInfoIcon->setToolTip(i18n("WPA-EAP Encryption"));
188
189
                m_connectionInfoIcon->setIcon("object-locked");
189
190
            }
 
191
            m_connectionNameLabel->setText(i18n("xxxConnected to \"%1\"", m_activeAccessPoint->ssid()));
 
192
            m_connectionInfoLabel->setText(i18n("Address: %1", m_currentIp));
190
193
        } else {
191
 
            m_connectionInfoLabel->setText(i18n("No active connection"));
 
194
            kDebug() << "FIXME: tjkActive connections is empty while connected?";
192
195
        }
193
196
        m_connectionInfoIcon->show();
194
197
    } else {