Changeset View
Changeset View
Standalone View
Standalone View
kioclient/kioclient.cpp
Show First 20 Lines • Show All 218 Lines • ▼ Show 20 Line(s) | 211 | { | |||
---|---|---|---|---|---|
219 | return m_ok; | 219 | return m_ok; | ||
220 | } | 220 | } | ||
221 | 221 | | |||
222 | void ClientApp::slotEntries(KIO::Job*, const KIO::UDSEntryList& list) | 222 | void ClientApp::slotEntries(KIO::Job*, const KIO::UDSEntryList& list) | ||
223 | { | 223 | { | ||
224 | KIO::UDSEntryList::ConstIterator it=list.begin(); | 224 | KIO::UDSEntryList::ConstIterator it=list.begin(); | ||
225 | for (; it != list.end(); ++it) { | 225 | for (; it != list.end(); ++it) { | ||
226 | // For each file... | 226 | // For each file... | ||
227 | QString name = (*it).stringValue( KIO::UDSEntry::UDS_NAME ); | 227 | QString name = (*it).stringValue( KIO::UDSEntry::UDS_DISPLAY_NAME ); | ||
228 | std::cout << qPrintable(name) << std::endl; | 228 | std::cout << qPrintable(name) << std::endl; | ||
229 | } | 229 | } | ||
230 | } | 230 | } | ||
231 | 231 | | |||
232 | bool ClientApp::doList( const QStringList& urls ) | 232 | bool ClientApp::doList( const QStringList& urls ) | ||
233 | { | 233 | { | ||
234 | QUrl dir = makeURL(urls.first()); | 234 | QUrl dir = makeURL(urls.first()); | ||
235 | KIO::Job * job = KIO::listDir(dir, KIO::HideProgressInfo); | 235 | KIO::Job * job = KIO::listDir(dir, KIO::HideProgressInfo); | ||
▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines |