KProtocolInfoFactory Class
Header: | #include <KProtocolInfoFactory> |
CMake: | find_package(KF6 REQUIRED COMPONENTS KIO) target_link_libraries(mytarget PRIVATE KF6::KIOCore) |
Public Functions
QList<KProtocolInfoPrivate *> | allProtocols() |
KProtocolInfoPrivate * | findProtocol(const QString &protocol, bool updateCacheIfNotfound = true) |
QStringList | protocols() |
Static Public Members
KProtocolInfoFactory * | self() |
Detailed Description
@internal
KProtocolInfoFactory is a factory for getting KProtocolInfo. The factory is a singleton (only one instance can exist).
Member Function Documentation
QList<KProtocolInfoPrivate *> KProtocolInfoFactory::allProtocols()
Loads all protocols. Slow, obviously, but fills the cache once and for all.
KProtocolInfoPrivate *KProtocolInfoFactory::findProtocol(const QString &protocol, bool updateCacheIfNotfound = true)
Returns protocol info for @p protocol.
Does not take proxy settings into account. @param protocol the protocol to search for @param updateCacheIfNotfound Flag for revalidating the cache. This will cause all plugins to be reloaded @return the pointer to the KProtocolInfo, or @c nullptr if not found
QStringList KProtocolInfoFactory::protocols()
Returns list of all known protocols. @return a list of all protocols
[static]
KProtocolInfoFactory *KProtocolInfoFactory::self()
@return the instance of KProtocolInfoFactory (singleton).