Messagelib

dkimdownloadkeyjob.h
1 /*
2  SPDX-FileCopyrightText: 2019-2021 Laurent Montel <[email protected]>
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 <[email protected]>
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  Q_REQUIRED_RESULT bool start();
26 
27  Q_REQUIRED_RESULT bool canStart() const;
28 
29  Q_REQUIRED_RESULT QString domainName() const;
30  void setDomainName(const QString &domainName);
31 
32  Q_REQUIRED_RESULT QString selectorName() const;
33  void setSelectorName(const QString &selectorName);
34 
35  Q_REQUIRED_RESULT 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  void resolvDnsDone();
45  QString mDomainName;
46  QString mSelectorName;
47  QDnsLookup *mDnsLookup = nullptr;
48 };
49 }
50 
The DKIMDownloadKeyJob class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Dec 6 2021 23:04:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.