MessageViewer::OpenUrlWithManager Class

The OpenUrlWithManager class Author: Laurent Montel <montel@kde.org>. More...

Header: #include <MessageViewer/OpenUrlWithManager>
CMake: find_package(KPim6MessageViewer REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::MessageViewer)
Inherits: QObject

Public Functions

OpenUrlWithManager(QObject *parent = nullptr)
virtual ~OpenUrlWithManager() override
bool alwaysRuleForHost(const QUrl &url)
void clear()
QStringList hosts() const
MessageViewer::OpenWithUrlInfo openWith(const QUrl &url)
const QList<MessageViewer::OpenWithUrlInfo> &openWithUrlInfo() const
void saveRules()
void setOpenWithUrlInfo(const QList<MessageViewer::OpenWithUrlInfo> &newOpenWithUrlInfo)

Static Public Members

MessageViewer::OpenUrlWithManager *self()

Detailed Description

Member Function Documentation

[explicit] OpenUrlWithManager::OpenUrlWithManager(QObject *parent = nullptr)

Constructs an OpenUrlWithManager object with the given parent.

[override virtual noexcept] OpenUrlWithManager::~OpenUrlWithManager()

Destroys the OpenUrlWithManager object.

bool OpenUrlWithManager::alwaysRuleForHost(const QUrl &url)

Returns whether there is an always rule for the given URL's host.

void OpenUrlWithManager::clear()

Clears all the open with URL information.

QStringList OpenUrlWithManager::hosts() const

Returns the list of configured hosts.

MessageViewer::OpenWithUrlInfo OpenUrlWithManager::openWith(const QUrl &url)

Returns the open with URL information for the given URL.

const QList<MessageViewer::OpenWithUrlInfo> &OpenUrlWithManager::openWithUrlInfo() const

Returns the list of open with URL information.

See also setOpenWithUrlInfo().

void OpenUrlWithManager::saveRules()

Saves the rules to persistent storage.

[static] MessageViewer::OpenUrlWithManager *OpenUrlWithManager::self()

Returns the singleton instance of OpenUrlWithManager.

void OpenUrlWithManager::setOpenWithUrlInfo(const QList<MessageViewer::OpenWithUrlInfo> &newOpenWithUrlInfo)

Sets the open with URL information list.

See also openWithUrlInfo().