KIO
kprotocolmanager.cpp
364 const QList<KProtocolInfoPrivate *> allProtocols = KProtocolInfoFactory::self()->allProtocols();
377 return KIO::WorkerConfig::self()->configData(url.scheme(), url.host(), QStringLiteral("Charset"));
QString readEntry(const char *key, const char *aDefault=nullptr) const
NoGlobals
MetaData configData(const QString &protocol, const QString &host)
Query worker configuration for workers of type protocol when dealing with host.
Definition workerconfig.cpp:189
static int proxyConnectTimeout()
Returns the preferred timeout value for proxy connections in seconds.
Definition kprotocolmanager.cpp:106
static bool supportsOpening(const QUrl &url)
Returns whether the protocol can be opened using KIO::open(const QUrl&).
Definition kprotocolmanager.cpp:269
static KProtocolInfo::Type outputType(const QUrl &url)
Returns whether the protocol should be treated as a filesystem or as a stream when writing to it.
Definition kprotocolmanager.cpp:169
static bool supportsPermissions(const QUrl &url)
Returns whether the protocol suppports KIO/POSIX permissions handling.
Definition kprotocolmanager.cpp:380
static QString charsetFor(const QUrl &url)
Returns the charset to use for the specified url.
Definition kprotocolmanager.cpp:375
static QStringList listing(const QUrl &url)
Returns the list of fields this protocol returns when listing The current possibilities are Name,...
Definition kprotocolmanager.cpp:199
static bool canRenameToFile(const QUrl &url)
Returns whether the protocol can rename (i.e.
Definition kprotocolmanager.cpp:319
static bool supportsReading(const QUrl &url)
Returns whether the protocol can retrieve data from URLs.
Definition kprotocolmanager.cpp:209
static bool canCopyFromFile(const QUrl &url)
Returns whether the protocol can copy files/objects directly from the filesystem itself.
Definition kprotocolmanager.cpp:289
static QString defaultMimetype(const QUrl &url)
Returns default MIME type for this URL based on the protocol.
Definition kprotocolmanager.cpp:349
static bool canRenameFromFile(const QUrl &url)
Returns whether the protocol can rename (i.e.
Definition kprotocolmanager.cpp:309
static KProtocolInfo::Type inputType(const QUrl &url)
Returns whether the protocol should be treated as a filesystem or as a stream when reading from it.
Definition kprotocolmanager.cpp:159
static bool supportsListing(const QUrl &url)
Returns whether the protocol can list files/objects.
Definition kprotocolmanager.cpp:189
static bool supportsDeleting(const QUrl &url)
Returns whether the protocol can delete files/objects.
Definition kprotocolmanager.cpp:239
static bool supportsLinking(const QUrl &url)
Returns whether the protocol can create links between files/objects.
Definition kprotocolmanager.cpp:249
static KProtocolInfo::FileNameUsedForCopying fileNameUsedForCopying(const QUrl &url)
This setting defines the strategy to use for generating a filename, when copying a file or directory ...
Definition kprotocolmanager.cpp:339
static QString protocolForArchiveMimetype(const QString &mimeType)
Returns which protocol handles this MIME type, if it's an archive MIME type.
Definition kprotocolmanager.cpp:359
static bool supportsTruncating(const QUrl &url)
Returns whether the protocol can be truncated with FileJob::truncate(KIO::filesize_t length).
Definition kprotocolmanager.cpp:279
static int connectTimeout()
Returns the preferred timeout value for remote connections in seconds.
Definition kprotocolmanager.cpp:97
static bool autoResume()
Returns true if partial downloads should be automatically resumed.
Definition kprotocolmanager.cpp:141
static bool markPartial()
Returns true if partial downloads should be marked with a ".part" extension.
Definition kprotocolmanager.cpp:126
static bool isSourceProtocol(const QUrl &url)
Returns whether the protocol can act as a source protocol.
Definition kprotocolmanager.cpp:179
static bool supportsMoving(const QUrl &url)
Returns whether the protocol can move files/objects between different locations.
Definition kprotocolmanager.cpp:259
static bool canCopyToFile(const QUrl &url)
Returns whether the protocol can copy files/objects directly to the filesystem itself.
Definition kprotocolmanager.cpp:299
static int minimumKeepSize()
Returns the minimum file size for keeping aborted downloads.
Definition kprotocolmanager.cpp:133
static bool supportsMakeDir(const QUrl &url)
Returns whether the protocol can create directories/folders.
Definition kprotocolmanager.cpp:229
static bool canDeleteRecursive(const QUrl &url)
Returns whether the protocol can recursively delete directories by itself.
Definition kprotocolmanager.cpp:329
static void reparseConfiguration()
Force a reload of the general config file of KIO workers ( kioslaverc).
Definition kprotocolmanager.cpp:56
static bool supportsWriting(const QUrl &url)
Returns whether the protocol can store data to URLs.
Definition kprotocolmanager.cpp:219
static int responseTimeout()
Returns the preferred response timeout value for remote connecting in seconds.
Definition kprotocolmanager.cpp:115
static int readTimeout()
Returns the preferred timeout value for reading from remote connections in seconds.
Definition kprotocolmanager.cpp:88
void unlock()
QString host(ComponentFormattingOptions options) const const
bool isValid() const const
QString scheme() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.