Changeset View
Changeset View
Standalone View
Standalone View
src/core/kprotocolmanager.cpp
Context not available. | |||||
1301 | return prot->m_defaultMimetype; | 1301 | return prot->m_defaultMimetype; | ||
---|---|---|---|---|---|
1302 | } | 1302 | } | ||
1303 | 1303 | | |||
1304 | QString KProtocolManager::protocolForArchiveMimetype(const QString &mimeType) | 1304 | QList<QString> KProtocolManager::protocolsForArchiveMimetype(const QString &mimeType) | ||
1305 | { | 1305 | { | ||
1306 | PRIVATE_DATA; | 1306 | PRIVATE_DATA; | ||
1307 | QMutexLocker lock(&d->mutex); | 1307 | QMutexLocker lock(&d->mutex); | ||
Context not available. | |||||
1311 | it != allProtocols.end(); ++it) { | 1311 | it != allProtocols.end(); ++it) { | ||
1312 | const QStringList archiveMimetypes = (*it)->m_archiveMimeTypes; | 1312 | const QStringList archiveMimetypes = (*it)->m_archiveMimeTypes; | ||
1313 | Q_FOREACH (const QString &mime, archiveMimetypes) { | 1313 | Q_FOREACH (const QString &mime, archiveMimetypes) { | ||
1314 | d->protocolForArchiveMimetypes.insert(mime, (*it)->m_name); | 1314 | d->protocolForArchiveMimetypes.insertMulti(mime, (*it)->m_name); | ||
1315 | } | 1315 | } | ||
1316 | } | 1316 | } | ||
1317 | } | 1317 | } | ||
1318 | return d->protocolForArchiveMimetypes.value(mimeType); | 1318 | return d->protocolForArchiveMimetypes.values(mimeType); | ||
1319 | } | ||||
1320 | | ||||
1321 | QString KProtocolManager::protocolForArchiveMimetype(const QString &mimeType) | ||||
1322 | { | ||||
1323 | return protocolsForArchiveMimetype(mimeType).value(0); | ||||
1319 | } | 1324 | } | ||
1320 | 1325 | | |||
1321 | QString KProtocolManager::charsetFor(const QUrl &url) | 1326 | QString KProtocolManager::charsetFor(const QUrl &url) | ||
Context not available. |