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>
11 class QDnsLookup;
12 namespace MessageViewer
13 {
14 /**
15  * @brief The DKIMDownloadKeyJob class
16  * @author Laurent Montel <montel@kde.org>
17  */
18 class MESSAGEVIEWER_EXPORT DKIMDownloadKeyJob : public QObject
19 {
20  Q_OBJECT
21 public:
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  QDnsLookup *dnsLookup() const;
38 
39 Q_SIGNALS:
40  void error(const QString &error);
41  void success(const QList<QByteArray> &, const QString &domain, const QString &selector);
42 
43 private:
44  MESSAGEVIEWER_NO_EXPORT void resolvDnsDone();
45  QString mDomainName;
46  QString mSelectorName;
47  QDnsLookup *mDnsLookup = nullptr;
48 };
49 }
Q_SCRIPTABLE Q_NOREPLY void start()
The DKIMDownloadKeyJob class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Feb 15 2024 03:55:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.