KDECore
kauthorized.cpp
Go to the documentation of this file.
118 bool destMatch(const KUrl &url, const QString &protClass, const KUrl &base, const QString &baseClass) const
189 Q_ASSERT_X(QCoreApplication::instance(),"KAuthorizedPrivate()","There has to be an existing QCoreApplication::instance() pointer");
193 Q_ASSERT_X(config,"KAuthorizedPrivate()","There has to be an existing KGlobal::config() pointer");
283 URLActionRule("redirect", QLatin1String(":internet"), Any, Any, QLatin1String("file"), Any, Any, false));
342 void KAuthorized::allowUrlAction(const QString &action, const KUrl &_baseURL, const KUrl &_destURL)
350 ( action.toLatin1(), _baseURL.protocol(), _baseURL.host(), _baseURL.path(KUrl::RemoveTrailingSlash),
354 bool KAuthorized::authorizeUrlAction(const QString &action, const KUrl &_baseURL, const KUrl &_destURL)
QString saveLocation(const char *type, const QString &suffix=QString(), bool create=true) const
Finds a location to save files into for the given type in the user's home directory.
Definition: kstandarddirs.cpp:1478
QString & append(QChar ch)
strips a trailing '/', except when the path is already just "/".
Definition: kurl.h:125
QString host() const
bool isEmpty() const
QString homePath()
void clear()
int count(const T &value) const
void append(const T &value)
QStringList authorizeControlModules(const QStringList &menuIds)
Returns which control modules from a given list are authorized for access.
Definition: kauthorized.cpp:245
bool authorizeUrlAction(const QString &action, const KUrl &baseUrl, const KUrl &destUrl)
Returns whether a certain URL related action is authorized.
Definition: kauthorized.cpp:354
QString protocol() const
Returns the protocol for the URL (i.e., file, http, etc.), lowercased.
Definition: kurl.cpp:672
bool isEmpty() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
QCoreApplication * instance()
static QString protocolClass(const QString &protocol)
Returns the protocol class for the specified protocol.
Definition: kprotocolinfo.cpp:368
iterator end()
void allowUrlAction(const QString &action, const KUrl &baseUrl, const KUrl &_destUrl)
Allow a certain URL action.
Definition: kauthorized.cpp:342
QString & replace(int position, int n, QChar after)
QString cleanPath(const QString &path)
QByteArray toLatin1() const
typedef ConstIterator
bool authorize(const QString &genericAction)
Returns whether a certain action is authorized.
Definition: kauthorized.cpp:215
QString fromLatin1(const char *str, int size)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
T readEntry(const QString &key, const T &aDefault) const
Reads the value of an entry specified by pKey in the current group.
Definition: kconfiggroup.h:248
iterator begin()
bool authorizeControlModule(const QString &menuId)
Returns whether access to a certain control module is authorized.
Definition: kauthorized.cpp:237
bool authorizeKAction(const QString &action)
Returns whether a certain KAction is authorized.
Definition: kauthorized.cpp:227
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 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:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.