Changeset View
Changeset View
Standalone View
Standalone View
libs/models/networkmodel.cpp
Show First 20 Lines • Show All 588 Lines • ▼ Show 20 Line(s) | 576 | Q_FOREACH (NetworkModelItem * item, m_list.returnItems(NetworkItemsList::ActiveConnection, activePtr->path())) { | |||
---|---|---|---|---|---|
589 | qCDebug(PLASMA_NM) << "Item " << item->name() << ": active connection changed to " << item->connectionState(); | 589 | qCDebug(PLASMA_NM) << "Item " << item->name() << ": active connection changed to " << item->connectionState(); | ||
590 | } | 590 | } | ||
591 | } | 591 | } | ||
592 | } | 592 | } | ||
593 | 593 | | |||
594 | void NetworkModel::availableConnectionAppeared(const QString& connection) | 594 | void NetworkModel::availableConnectionAppeared(const QString& connection) | ||
595 | { | 595 | { | ||
596 | NetworkManager::Device::Ptr device = NetworkManager::findNetworkInterface(qobject_cast<NetworkManager::Device*>(sender())->uni()); | 596 | NetworkManager::Device::Ptr device = NetworkManager::findNetworkInterface(qobject_cast<NetworkManager::Device*>(sender())->uni()); | ||
597 | if (device) { | ||||
597 | addAvailableConnection(connection, device); | 598 | addAvailableConnection(connection, device); | ||
598 | } | 599 | } | ||
600 | } | ||||
599 | 601 | | |||
600 | void NetworkModel::availableConnectionDisappeared(const QString& connection) | 602 | void NetworkModel::availableConnectionDisappeared(const QString& connection) | ||
601 | { | 603 | { | ||
602 | Q_FOREACH (NetworkModelItem * item, m_list.returnItems(NetworkItemsList::Connection, connection)) { | 604 | Q_FOREACH (NetworkModelItem * item, m_list.returnItems(NetworkItemsList::Connection, connection)) { | ||
603 | bool available = false; | 605 | bool available = false; | ||
604 | const QString devicePath = item->devicePath(); | 606 | const QString devicePath = item->devicePath(); | ||
605 | const QString specificPath = item->specificPath(); | 607 | const QString specificPath = item->specificPath(); | ||
606 | 608 | | |||
▲ Show 20 Lines • Show All 401 Lines • Show Last 20 Lines |