Messagelib

dkimdownloadkeyjob.h
1/*
2 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "messageviewer_export.h"
10#include <QObject>
11class QDnsLookup;
12namespace MessageViewer
13{
14/**
15 * @brief The DKIMDownloadKeyJob class
16 * @author Laurent Montel <montel@kde.org>
17 */
18class MESSAGEVIEWER_EXPORT DKIMDownloadKeyJob : public QObject
19{
20 Q_OBJECT
21public:
22 explicit DKIMDownloadKeyJob(QObject *parent = nullptr);
23 ~DKIMDownloadKeyJob() override;
24
25 [[nodiscard]] bool start();
26
27 [[nodiscard]] bool canStart() const;
28
29 [[nodiscard]] QString domainName() const;
30 void setDomainName(const QString &domainName);
31
32 [[nodiscard]] QString selectorName() const;
33 void setSelectorName(const QString &selectorName);
34
35 [[nodiscard]] QString resolvDnsValue() const;
36
37 [[nodiscard]] QDnsLookup *dnsLookup() const;
38
39Q_SIGNALS:
40 void error(const QString &error);
41 void success(const QList<QByteArray> &, const QString &domain, const QString &selector);
42
43private:
44 MESSAGEVIEWER_NO_EXPORT void resolvDnsDone();
45 QString mDomainName;
46 QString mSelectorName;
47 QDnsLookup *mDnsLookup = nullptr;
48};
49}
The DKIMDownloadKeyJob class.
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.