Messagelib

openwithurlinfo.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 #include "messageviewer_export.h"
9 #include <QDebug>
10 namespace MessageViewer
11 {
12 /**
13  * @brief The OpenWithUrlInfo class
14  * @author Laurent Montel <[email protected]>
15  */
16 class MESSAGEVIEWER_EXPORT OpenWithUrlInfo
17 {
18  Q_GADGET
19 public:
21  ~OpenWithUrlInfo();
22 
23  Q_REQUIRED_RESULT const QString &command() const;
24  void setCommand(const QString &newCommand);
25 
26  Q_REQUIRED_RESULT const QString &url() const;
27  void setUrl(const QString &newUrl);
28 
29  Q_REQUIRED_RESULT bool isValid() const;
30 
31  Q_REQUIRED_RESULT const QString &commandLine() const;
32  void setCommandLine(const QString &newCommandLine);
33 
34  Q_REQUIRED_RESULT bool operator==(const OpenWithUrlInfo &other) const;
35 
36 private:
37  QString mCommandLine;
38  QString mCommand;
39  QString mUrl;
40 };
41 }
42 Q_DECLARE_TYPEINFO(MessageViewer::OpenWithUrlInfo, Q_RELOCATABLE_TYPE);
43 MESSAGEVIEWER_EXPORT QDebug operator<<(QDebug d, const MessageViewer::OpenWithUrlInfo &t);
The OpenWithUrlInfo class.
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 03:53:35 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.