KIO
kprotocolmanager.cpp
90 if (nptr[-1] == '/' && hptr == host) { // "bugs.kde.org" vs "http://bugs.kde.org", the config UI says URLs are ok
376 const QString proxy(QString::fromLocal8Bit(qgetenv(proxyVar.toLocal8Bit().constData())).trimmed());
414 QDBusInterface(QStringLiteral("org.kde.kded6"), QStringLiteral("/modules/proxyscout"), QStringLiteral("org.kde.KPAC.ProxyScout"))
472 if (url.host().isEmpty() || KProtocolInfo::protocolClass(protocol) == QLatin1String(":local") || kProtocolManagerPrivate->proxyType() == NoProxy) {
559 const bool sysInfoFound = KProtocolManagerPrivate::getSystemNameVersionAndMachine(systemName, systemVersion, machine);
590 + QLatin1String("KIO/%1.%2 ").arg(QString::number(KIO_VERSION_MAJOR), QString::number(KIO_VERSION_MINOR))
597bool KProtocolManagerPrivate::getSystemNameVersionAndMachine(QString &systemName, QString &systemVersion, QString &machine)
605 // try calling GetVersionEx using the OSVERSIONINFOEX, if that fails, try using the OSVERSIONINFO
874 const QList<KProtocolInfoPrivate *> allProtocols = KProtocolInfoFactory::self()->allProtocols();
887 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 QString protocolClass(const QString &protocol)
Returns the protocol class for the specified protocol.
Definition kprotocolinfo.cpp:250
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:289
static bool isKnownProtocol(const QUrl &url)
Returns whether a protocol is installed that is able to handle url.
Definition kprotocolinfo.cpp:319
static int proxyConnectTimeout()
Returns the preferred timeout value for proxy connections in seconds.
Definition kprotocolmanager.cpp:289
static bool supportsOpening(const QUrl &url)
Returns whether the protocol can be opened using KIO::open(const QUrl&).
Definition kprotocolmanager.cpp:779
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:679
static bool supportsPermissions(const QUrl &url)
Returns whether the protocol suppports KIO/POSIX permissions handling.
Definition kprotocolmanager.cpp:890
static QString charsetFor(const QUrl &url)
Returns the charset to use for the specified url.
Definition kprotocolmanager.cpp:885
static QStringList listing(const QUrl &url)
Returns the list of fields this protocol returns when listing The current possibilities are Name,...
Definition kprotocolmanager.cpp:709
static bool canRenameToFile(const QUrl &url)
Returns whether the protocol can rename (i.e.
Definition kprotocolmanager.cpp:829
static bool supportsReading(const QUrl &url)
Returns whether the protocol can retrieve data from URLs.
Definition kprotocolmanager.cpp:719
static bool canCopyFromFile(const QUrl &url)
Returns whether the protocol can copy files/objects directly from the filesystem itself.
Definition kprotocolmanager.cpp:799
static QString defaultMimetype(const QUrl &url)
Returns default MIME type for this URL based on the protocol.
Definition kprotocolmanager.cpp:859
static bool canRenameFromFile(const QUrl &url)
Returns whether the protocol can rename (i.e.
Definition kprotocolmanager.cpp:819
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:669
static bool supportsListing(const QUrl &url)
Returns whether the protocol can list files/objects.
Definition kprotocolmanager.cpp:699
static bool supportsDeleting(const QUrl &url)
Returns whether the protocol can delete files/objects.
Definition kprotocolmanager.cpp:749
static bool supportsLinking(const QUrl &url)
Returns whether the protocol can create links between files/objects.
Definition kprotocolmanager.cpp:759
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:849
static QString protocolForArchiveMimetype(const QString &mimeType)
Returns which protocol handles this MIME type, if it's an archive MIME type.
Definition kprotocolmanager.cpp:869
static bool supportsTruncating(const QUrl &url)
Returns whether the protocol can be truncated with FileJob::truncate(KIO::filesize_t length).
Definition kprotocolmanager.cpp:789
static int connectTimeout()
Returns the preferred timeout value for remote connections in seconds.
Definition kprotocolmanager.cpp:280
static bool autoResume()
Returns true if partial downloads should be automatically resumed.
Definition kprotocolmanager.cpp:646
static bool markPartial()
Returns true if partial downloads should be marked with a ".part" extension.
Definition kprotocolmanager.cpp:631
static bool isSourceProtocol(const QUrl &url)
Returns whether the protocol can act as a source protocol.
Definition kprotocolmanager.cpp:689
static bool supportsMoving(const QUrl &url)
Returns whether the protocol can move files/objects between different locations.
Definition kprotocolmanager.cpp:769
static bool canCopyToFile(const QUrl &url)
Returns whether the protocol can copy files/objects directly to the filesystem itself.
Definition kprotocolmanager.cpp:809
static int minimumKeepSize()
Returns the minimum file size for keeping aborted downloads.
Definition kprotocolmanager.cpp:638
static bool supportsMakeDir(const QUrl &url)
Returns whether the protocol can create directories/folders.
Definition kprotocolmanager.cpp:739
static bool canDeleteRecursive(const QUrl &url)
Returns whether the protocol can recursively delete directories by itself.
Definition kprotocolmanager.cpp:839
static void reparseConfiguration()
Force a reload of the general config file of KIO workers ( kioslaverc).
Definition kprotocolmanager.cpp:211
static bool supportsWriting(const QUrl &url)
Returns whether the protocol can store data to URLs.
Definition kprotocolmanager.cpp:729
static int responseTimeout()
Returns the preferred response timeout value for remote connecting in seconds.
Definition kprotocolmanager.cpp:298
static int readTimeout()
Returns the preferred timeout value for reading from remote connections in seconds.
Definition kprotocolmanager.cpp:271
Type type(const QSqlDatabase &db)
KSERVICE_EXPORT KService::List query(FilterFunc filterFunc)
void lookupHost(const QString &hostName, QObject *receiver, const char *member)
Definition hostinfo.cpp:237
PostalAddress address(const QVariant &location)
KGuiItem ok()
ProxyType
QCA_EXPORT QString appName()
const char * constData() const const
bool isEmpty() const const
applicationName
applicationVersion
QDBusMessage call(QDBus::CallMode mode, const QString &method, Args &&... args)
QPair< QHostAddress, int > parseSubnet(const QString &subnet)
QList< QHostAddress > addresses() const const
void clear()
qsizetype count() const const
T & first()
iterator insert(const_iterator before, parameter_type value)
bool isEmpty() const const
void reserve(qsizetype size)
qsizetype size() const const
QString languageToString(Language language)
void unlock()
ProxyType
QList< QNetworkProxy > systemProxyForQuery(const QNetworkProxyQuery &query)
int compare(QLatin1StringView s1, const QString &s2, Qt::CaseSensitivity cs)
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
QString fromLocal8Bit(QByteArrayView str)
QString fromUtf8(QByteArrayView str)
qsizetype indexOf(QChar ch, qsizetype from, Qt::CaseSensitivity cs) const const
QString & insert(qsizetype position, QChar ch)
bool isEmpty() const const
QString number(double n, char format, int precision)
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
QByteArray toLatin1() const const
QByteArray toLocal8Bit() const const
QString toLower() const const
QString trimmed() const const
QStringView left(qsizetype length) const const
QStringView mid(qsizetype start, qsizetype length) const const
QStringView right(qsizetype length) const const
const_iterator cbegin() const const
const_iterator cend() const const
CaseInsensitive
QString host(ComponentFormattingOptions options) const const
bool isEmpty() const const
bool isValid() const const
int port(int defaultPort) const const
QString scheme() const const
void setHost(const QString &host, ParsingMode mode)
void setPort(int port)
void setScheme(const QString &scheme)
void setUserName(const QString &userName, ParsingMode mode)
QString url(FormattingOptions options) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:51 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:51 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.