Changeset View
Changeset View
Standalone View
Standalone View
network/ioslave/networkslave.cpp
Show All 23 Lines | |||||
24 | 24 | | |||
25 | // ioslave | 25 | // ioslave | ||
26 | #include "networkuri.h" | 26 | #include "networkuri.h" | ||
27 | #include "mimetypes.h" | 27 | #include "mimetypes.h" | ||
28 | #include "networkdbusinterface.h" | 28 | #include "networkdbusinterface.h" | ||
29 | // network | 29 | // network | ||
30 | #include <netdevice.h> | 30 | #include <netdevice.h> | ||
31 | #include <netservice.h> | 31 | #include <netservice.h> | ||
32 | // KDE Libs | ||||
33 | #include <KLocalizedString> | ||||
32 | // Qt | 34 | // Qt | ||
33 | #include <QEventLoop> | 35 | #include <QEventLoop> | ||
34 | #include <QDebug> | 36 | #include <QDebug> | ||
35 | 37 | | |||
36 | // static const char NetworkIconName[] = "network-workgroup"; | 38 | // static const char NetworkIconName[] = "network-workgroup"; | ||
37 | 39 | | |||
38 | 40 | | |||
39 | NetworkSlave::NetworkSlave( const QByteArray& name, const QByteArray& poolSocket, const QByteArray& programSocket ) | 41 | NetworkSlave::NetworkSlave( const QByteArray& name, const QByteArray& poolSocket, const QByteArray& programSocket ) | ||
▲ Show 20 Lines • Show All 233 Lines • ▼ Show 20 Line(s) | 259 | //qDebug()<<reply.isValid(); | |||
273 | if( ! successfulListing ) | 275 | if( ! successfulListing ) | ||
274 | error( KIO::ERR_DOES_NOT_EXIST, url.toDisplayString() ); | 276 | error( KIO::ERR_DOES_NOT_EXIST, url.toDisplayString() ); | ||
275 | } | 277 | } | ||
276 | 278 | | |||
277 | 279 | | |||
278 | void NetworkSlave::feedEntryAsNetwork( KIO::UDSEntry* entry ) | 280 | void NetworkSlave::feedEntryAsNetwork( KIO::UDSEntry* entry ) | ||
279 | { | 281 | { | ||
280 | entry->fastInsert( KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR ); | 282 | entry->fastInsert( KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR ); | ||
283 | entry->fastInsert( KIO::UDSEntry::UDS_DISPLAY_NAME, i18n("Network")); | ||||
281 | // entry->fastInsert( KIO::UDSEntry::UDS_ICON_NAME, NetworkIconName ); | 284 | // entry->fastInsert( KIO::UDSEntry::UDS_ICON_NAME, NetworkIconName ); | ||
282 | entry->fastInsert( KIO::UDSEntry::UDS_MIME_TYPE, QLatin1String(Mimetypes::NetworkMimetype) ); | 285 | entry->fastInsert( KIO::UDSEntry::UDS_MIME_TYPE, QLatin1String(Mimetypes::NetworkMimetype) ); | ||
283 | 286 | | |||
284 | } | 287 | } | ||
285 | 288 | | |||
286 | void NetworkSlave::feedEntryAsDevice( KIO::UDSEntry* entry, const Mollet::NetDevice& deviceData ) | 289 | void NetworkSlave::feedEntryAsDevice( KIO::UDSEntry* entry, const Mollet::NetDevice& deviceData ) | ||
287 | { | 290 | { | ||
288 | entry->fastInsert( KIO::UDSEntry::UDS_NAME, deviceData.hostAddress() ); | 291 | entry->fastInsert( KIO::UDSEntry::UDS_NAME, deviceData.hostAddress() ); | ||
Show All 29 Lines |