You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.3 KiB
C++
70 lines
1.3 KiB
C++
/*
|
|
SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com>
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#include "errorinformationdata.h"
|
|
|
|
namespace Latte {
|
|
namespace Data {
|
|
|
|
ErrorInformation::ErrorInformation()
|
|
: Generic()
|
|
{
|
|
}
|
|
|
|
ErrorInformation::ErrorInformation(ErrorInformation &&o)
|
|
: Generic(o),
|
|
containment(o.containment),
|
|
applet(o.applet)
|
|
{
|
|
}
|
|
|
|
ErrorInformation::ErrorInformation(const ErrorInformation &o)
|
|
: Generic(o),
|
|
containment(o.containment),
|
|
applet(o.applet)
|
|
{
|
|
}
|
|
|
|
ErrorInformation &ErrorInformation::operator=(const ErrorInformation &rhs)
|
|
{
|
|
id = rhs.id;
|
|
name = rhs.name;
|
|
containment = rhs.containment;
|
|
applet = rhs.applet;
|
|
|
|
return (*this);
|
|
}
|
|
|
|
ErrorInformation &ErrorInformation::operator=(ErrorInformation &&rhs)
|
|
{
|
|
id = rhs.id;
|
|
name = rhs.name;
|
|
containment = rhs.containment;
|
|
applet = rhs.applet;
|
|
|
|
return (*this);
|
|
}
|
|
|
|
bool ErrorInformation::operator==(const ErrorInformation &rhs) const
|
|
{
|
|
return (id == rhs.id)
|
|
&& (name == rhs.name)
|
|
&& (containment == rhs.containment)
|
|
&& (applet == rhs.applet);
|
|
}
|
|
|
|
bool ErrorInformation::operator!=(const ErrorInformation &rhs) const
|
|
{
|
|
return !(*this == rhs);
|
|
}
|
|
|
|
bool ErrorInformation::isValid() const
|
|
{
|
|
return containment.isValid() || applet.isValid();
|
|
}
|
|
|
|
}
|
|
}
|