Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
geocluetypes.cpp
Go to the documentation of this file.
1// Copyright (C) 2018 Denis Shienkov <denis.shienkov@gmail.com>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include "geocluetypes.h"
5
6QT_BEGIN_NAMESPACE
7
8QT_IMPL_METATYPE_EXTERN(Timestamp)
9
10QDBusArgument &operator<<(QDBusArgument &arg, const Timestamp &ts)
11{
12 arg.beginStructure();
13 arg << ts.m_seconds;
14 arg << ts.m_microseconds;
15 arg.endStructure();
16 return arg;
17}
18
19const QDBusArgument &operator>>(const QDBusArgument &arg, Timestamp &ts)
20{
21 arg.beginStructure();
22 arg >> ts.m_seconds;
23 arg >> ts.m_microseconds;
24 arg.endStructure();
25 return arg;
26}
27
28QT_END_NAMESPACE