Messagelib

dmarcrecordjob.h
1 /*
2  SPDX-FileCopyrightText: 2019-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "messageviewer_private_export.h"
10 #include <QObject>
11 class QDnsLookup;
12 namespace MessageViewer
13 {
14 class MESSAGEVIEWER_TESTS_EXPORT DMARCRecordJob : public QObject
15 {
16  Q_OBJECT
17 public:
18  explicit DMARCRecordJob(QObject *parent = nullptr);
19  ~DMARCRecordJob() override;
20 
21  Q_REQUIRED_RESULT bool start();
22 
23  Q_REQUIRED_RESULT bool canStart() const;
24 
25  Q_REQUIRED_RESULT QString domainName() const;
26  void setDomainName(const QString &domainName);
27 
28 Q_SIGNALS:
29  void success(const QList<QByteArray> &lst, const QString &domainName);
30  void error(const QString &err, const QString &domainName);
31 
32 private:
33  void resolvDnsDone();
34  Q_REQUIRED_RESULT QString resolvDnsValue() const;
35  QString mDomainName;
36  QDnsLookup *mDnsLookup = nullptr;
37 };
38 }
Q_SCRIPTABLE Q_NOREPLY void start()
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Mar 27 2023 04:08:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.