File indexing completed on 2024-04-21 05:30:46

0001 /*
0002     SPDX-FileCopyrightText: 2020 Michail Vourlakos <mvourlakos@gmail.com>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #include "layouticondata.h"
0007 
0008 
0009 namespace Latte {
0010 namespace Data {
0011 
0012 LayoutIcon::LayoutIcon()
0013     : Generic()
0014 {
0015 }
0016 
0017 LayoutIcon::LayoutIcon(LayoutIcon &&o)
0018     : Generic(o),
0019       isBackgroundFile(o.isBackgroundFile)
0020 {
0021 }
0022 
0023 LayoutIcon::LayoutIcon(const LayoutIcon &o)
0024     : Generic(o),
0025       isBackgroundFile(o.isBackgroundFile)
0026 {
0027 }
0028 
0029 bool LayoutIcon::isEmpty() const
0030 {
0031     return (id.isEmpty() && name.isEmpty());
0032 }
0033 
0034 LayoutIcon &LayoutIcon::operator=(LayoutIcon &&rhs)
0035 {
0036     id = rhs.id;
0037     isBackgroundFile = rhs.isBackgroundFile;
0038     name = rhs.name;
0039 
0040     return (*this);
0041 }
0042 
0043 LayoutIcon &LayoutIcon::operator=(const LayoutIcon &rhs)
0044 {
0045     id = rhs.id;
0046     isBackgroundFile = rhs.isBackgroundFile;
0047     name = rhs.name;
0048 
0049     return (*this);
0050 }
0051 
0052 bool LayoutIcon::operator==(const LayoutIcon &rhs) const
0053 {
0054     return (id == rhs.id)
0055             && (name == rhs.name)
0056             && (isBackgroundFile == rhs.isBackgroundFile);
0057 }
0058 
0059 bool LayoutIcon::operator!=(const LayoutIcon &rhs) const
0060 {
0061     return !(*this == rhs);
0062 }
0063 
0064 }
0065 }
0066