7#include "openwithurlinfo.h"
9using namespace MessageViewer;
10OpenWithUrlInfo::OpenWithUrlInfo() =
default;
12OpenWithUrlInfo::~OpenWithUrlInfo() =
default;
16 d.
space() <<
"command " << t.command();
17 d.
space() <<
"command line " << t.commandLine();
18 d.
space() <<
"url " << t.url();
19 d.
space() <<
"isLocalOpenWith" << t.isLocalOpenWithInfo();
20 d.
space() <<
"enabled" << t.enabled();
24const QString &OpenWithUrlInfo::command()
const
29void OpenWithUrlInfo::setCommand(
const QString &newCommand)
31 mCommand = newCommand;
34const QString &OpenWithUrlInfo::url()
const
39void OpenWithUrlInfo::setUrl(
const QString &newUrl)
44bool OpenWithUrlInfo::isValid()
const
49const QString &OpenWithUrlInfo::commandLine()
const
54void OpenWithUrlInfo::setCommandLine(
const QString &newCommandLine)
56 mCommandLine = newCommandLine;
61 return mCommandLine == other.commandLine() && mCommand == other.command() && mUrl == other.url() && mIsLocalOpenWithInfo == other.isLocalOpenWithInfo()
62 && mEnabled == other.enabled();
65bool OpenWithUrlInfo::isLocalOpenWithInfo()
const
67 return mIsLocalOpenWithInfo;
70void OpenWithUrlInfo::setIsLocalOpenWithInfo(
bool newLocalOpenWith)
72 mIsLocalOpenWithInfo = newLocalOpenWith;
75bool OpenWithUrlInfo::enabled()
const
80void OpenWithUrlInfo::setEnabled(
bool newEnabled)
82 mEnabled = newEnabled;
85#include "moc_openwithurlinfo.cpp"
The OpenWithUrlInfo class.
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.