Messagelib

openurlwithjob.h
1 /*
2  SPDX-FileCopyrightText: 2022-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "openwithurlinfo.h"
10 #include <QUrl>
11 
12 #include <QObject>
13 namespace MessageViewer
14 {
15 class OpenUrlWithJob : public QObject
16 {
17  Q_OBJECT
18 public:
19  explicit OpenUrlWithJob(QObject *parent = nullptr);
20  ~OpenUrlWithJob() override;
21 
22  Q_REQUIRED_RESULT bool canStart() const;
23 
24  void start();
25 
26  const OpenWithUrlInfo &info() const;
27  void setInfo(const OpenWithUrlInfo &newInfo);
28  void setUrl(const QUrl &url);
29 
30 private:
31  QUrl mUrl;
32  OpenWithUrlInfo mInfo;
33 };
34 }
Q_OBJECTQ_OBJECT
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:01:57 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.