KDECore
kprotocolinfo.cpp
Go to the documentation of this file.
106 // currently QVariant::Type and ExtraField::Type use the same subset of values, so we can just cast.
260 void KProtocolInfo::selectServiceOrHelper(const QString& protocol, KProtocolInfo::Ptr& returnProtocol, KService::Ptr& returnService)
267 // A) if the .protocol file says "launch an application", then the new-style handler-app has priority
274 const KService::Ptr service = KMimeTypeTrader::self()->preferredService(QString::fromLatin1("x-scheme-handler/") + protocol);
275 if (service && prot && prot->m_isHelperProtocol) { // for helper protocols, the handler app has priority over the hardcoded one (see A above)
462 const KService::Ptr service = KMimeTypeTrader::self()->preferredService(QString::fromLatin1("x-scheme-handler/") + protocol);
Information about I/O (Internet, etc.) protocols supported by KDE.
Definition: kprotocolinfo.h:50
QDataStream & operator>>(QDataStream &s, KProtocolInfo::ExtraField &field)
Definition: kprotocolinfo.cpp:478
static bool determineMimetypeFromExtension(const QString &protocol)
Returns whether mimetypes can be determined based on extension for this protocol. ...
Definition: kprotocolinfo.cpp:328
static int maxSlaves(const QString &protocol)
Returns the soft limit on the number of slaves for this protocol.
Definition: kprotocolinfo.cpp:310
KProtocolInfo(QDataStream &_str, int offset)
Definition: kprotocolinfo.cpp:116
Definition of an extra field in the UDS entries, returned by a listDir operation. ...
Definition: kprotocolinfo.h:120
QDataStream & operator<<(QDataStream &s, const KProtocolInfo::ExtraField &field)
Definition: kprotocolinfo.cpp:486
static bool isKnownProtocol(const KUrl &url)
Returns whether a protocol is installed that is able to handle url.
Definition: kprotocolinfo.cpp:466
static QString config(const QString &protocol)
Returns the name of the config file associated with the specified protocol.
Definition: kprotocolinfo.cpp:300
static QStringList protocols()
Returns list of all known protocols.
Definition: kprotocolinfo.cpp:245
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
This function is just for convenience.
Definition: kstandarddirs.cpp:2085
static bool isFilterProtocol(const KUrl &url)
Returns whether the protocol can act as a filter protocol.
Definition: kprotocolinfo.cpp:445
static QStringList capabilities(const QString &protocol)
Returns the list of capabilities provided by the kioslave implementing this protocol.
Definition: kprotocolinfo.cpp:386
static QString docPath(const QString &protocol)
Returns the documentation path for the specified protocol.
Definition: kprotocolinfo.cpp:359
static ExtraFieldList extraFields(const KUrl &url)
Definition of extra fields in the UDS entries, returned by a listDir operation.
Definition: kprotocolinfo.cpp:350
FileNameUsedForCopying fileNameUsedForCopying() const
Definition: kprotocolinfo.cpp:439
static int maxSlavesPerHost(const QString &protocol)
Returns the limit on the number of slaves for this protocol per host.
Definition: kprotocolinfo.cpp:319
static KProtocolInfoFactory * self()
The instance of the KProtocolInfoFactory.
Definition: kprotocolinfofactory.cpp:119
static QString icon(const QString &protocol)
Returns the name of the icon, associated with the specified protocol.
Definition: kprotocolinfo.cpp:287
QStringList archiveMimeTypes() const
Definition: kprotocolinfo.cpp:410
QString protocol() const
Returns the protocol for the URL (i.e., file, http, etc.), lowercased.
Definition: kurl.cpp:672
Type nameToType(const char *name)
KProtocolInfo::FileNameUsedForCopying fileNameUsedForCopying
Definition: kprotocolinfo_p.h:57
static KMimeTypeTrader * self()
This is a static pointer to the KMimeTypeTrader singleton.
Definition: kmimetypetrader.cpp:38
static QString proxiedBy(const QString &protocol)
Returns the name of the protocol through which the request will be routed if proxy support is enabled...
Definition: kprotocolinfo.cpp:395
static QString protocolClass(const QString &protocol)
Returns the protocol class for the specified protocol.
Definition: kprotocolinfo.cpp:368
KProtocolInfo::Ptr findProtocol(const QString &protocol)
Definition: kprotocolinfofactory.cpp:91
Definition: kprotocolinfo_p.h:26
iterator end()
bool m_determineMimetypeFromExtension
Definition: kprotocolinfo.h:352
static bool showFilePreview(const QString &protocol)
Returns whether file previews should be shown for the specified protocol.
Definition: kprotocolinfo.cpp:377
static QString exec(const QString &protocol)
Returns the library / executable to open for the protocol protocol Example : "kio_ftp", meaning either the executable "kio_ftp" or the library "kio_ftp.la" (recommended), whichever is available.
Definition: kprotocolinfo.cpp:337
static bool isHelperProtocol(const KUrl &url)
Returns whether the protocol can act as a helper protocol.
Definition: kprotocolinfo.cpp:450
KProtocolInfo::ExtraFieldList extraFields
Definition: kprotocolinfo_p.h:52
QStringList protocols() const
Returns list of all known protocols.
Definition: kprotocolinfofactory.cpp:63
QString fromLatin1(const char *str, int size)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
iterator begin()
KService::Ptr preferredService(const QString &mimeType, const QString &genericServiceType=QString::fromLatin1("Application"))
Returns the preferred service for mimeType and genericServiceType.
Definition: kmimetypetrader.cpp:157
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.