Messagelib

openurlwithjob.h
1/*
2 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org>
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>
13namespace MessageViewer
14{
15class OpenUrlWithJob : public QObject
16{
18public:
19 explicit OpenUrlWithJob(QObject *parent = nullptr);
20 ~OpenUrlWithJob() override;
21
22 [[nodiscard]] bool canStart() const;
23
24 void start();
25
26 [[nodiscard]] const OpenWithUrlInfo &info() const;
27 void setInfo(const OpenWithUrlInfo &newInfo);
28 void setUrl(const QUrl &url);
29
30private:
31 QUrl mUrl;
32 OpenWithUrlInfo mInfo;
33};
34}
Q_OBJECTQ_OBJECT
QObject * parent() const const
T qobject_cast(QObject *object)
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.