Attica
providermanager.cpp
69 connect(d->m_internals->nam(), &QNetworkAccessManager::authenticationRequired, this, &ProviderManager::authenticate);
135 qWarning() << "ProviderManager::addProviderFile: could not open provider file: " << url.toString();
142 req.setAttribute(QNetworkRequest::RedirectPolicyAttribute, QNetworkRequest::RedirectPolicy::NoLessSafeRedirectPolicy);
311 if (!d->m_authenticationSuppressed && d->m_internals->askForCredentials(baseUrl, user, password)) {
318 qWarning() << "ProviderManager::authenticate: No authentication credentials provided, aborting." << reply->url().toString();
323void ProviderManager::proxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *authenticator)
void addProviderFromXml(const QString &providerXml)
Parse a xml file containing a provider description.
Definition providermanager.cpp:168
void addProviderFileToDefaultProviders(const QUrl &url)
Add a provider file to the default providers (xml that contains provider descriptions).
Definition providermanager.cpp:119
void setAuthenticationSuppressed(bool suppressed)
Suppresses the authentication, so that the application can take care of authenticating itself.
Definition providermanager.cpp:87
QList< Provider > providers() const
Definition providermanager.cpp:275
Provider providerByUrl(const QUrl &url) const
Definition providermanager.cpp:270
void loadDefaultProviders()
Load available providers from configuration.
Definition providermanager.cpp:72
void clear()
Remove all providers and provider files that have been loaded.
Definition providermanager.cpp:92
QList< QUrl > defaultProviderFiles()
The list of provider files that get loaded by loadDefaultProviders.
Definition providermanager.cpp:109
Provider providerFor(const QUrl &url) const
Definition providermanager.cpp:265
The Provider class represents one Open Collaboration Service provider.
Definition provider.h:97
QString password() const const
void setPassword(const QString &password)
void setUser(const QString &user)
QString user() const const
void clear()
bool contains(const Key &key) const const
iterator insert(const Key &key, const T &value)
bool isEmpty() const const
QList< Key > keys() const const
T take(const Key &key)
T value(const Key &key) const const
QByteArray readAll()
ReadOnly
void authenticationRequired(QNetworkReply *reply, QAuthenticator *authenticator)
UnknownNetworkError
virtual void abort()=0
NetworkError error() const const
void finished()
QNetworkAccessManager::Operation operation() const const
QUrl url() const const
RedirectPolicyAttribute
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void deleteLater()
virtual bool event(QEvent *e)
T qobject_cast(QObject *object)
bool isEmpty() const const
QueuedConnection
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
singleShot
bool isEmpty() const const
bool isLocalFile() const const
bool isParentOf(const QUrl &childUrl) const const
QString toLocalFile() const const
QString toString(FormattingOptions options) const const
NoError
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:36 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:36 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.