mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-01 07:05:48 +00:00
38 lines
934 B
C++
38 lines
934 B
C++
![]() |
// SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
|
||
|
//
|
||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||
|
|
||
|
#include "windowinfomap.h"
|
||
|
|
||
|
QDebug operator<<(QDebug argument, const WindowInfo &info)
|
||
|
{
|
||
|
argument << '(' << info.title << ',' << info.attention << info.uuid << ')';
|
||
|
|
||
|
return argument;
|
||
|
}
|
||
|
|
||
|
QDBusArgument &operator<<(QDBusArgument &argument, const WindowInfo &info)
|
||
|
{
|
||
|
argument.beginStructure();
|
||
|
argument << info.title << info.attention << info.uuid;
|
||
|
argument.endStructure();
|
||
|
|
||
|
return argument;
|
||
|
}
|
||
|
|
||
|
const QDBusArgument &operator>>(const QDBusArgument &argument, WindowInfo &info)
|
||
|
{
|
||
|
argument.beginStructure();
|
||
|
argument >> info.title >> info.attention >> info.uuid;
|
||
|
argument.endStructure();
|
||
|
|
||
|
return argument;
|
||
|
}
|
||
|
|
||
|
bool WindowInfo::operator==(const WindowInfo &rhs) const
|
||
|
{
|
||
|
return attention == rhs.attention &&
|
||
|
title == rhs.title &&
|
||
|
uuid == rhs.uuid;
|
||
|
}
|