digiKam
Loading...
Searching...
No Matches
dbenginedbusutils.h
Go to the documentation of this file.
1/* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2008-09-09
7 * Description : Database engine hint data containers for Dbus
8 *
9 * SPDX-FileCopyrightText: 2008 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17class QDBusArgument;
18
19#define DECLARE_METATYPE_FOR_DBUS(x) \
20Q_DECLARE_METATYPE(x) \
21 \
22inline QDBusArgument& operator<<(QDBusArgument& argument, const x& changeset) \
23{ \
24 changeset >> argument; \
25 return argument; \
26} \
27 \
28inline const QDBusArgument& operator>>(const QDBusArgument& argument, x& changeset) \
29{ \
30 changeset << argument; \
31 return argument; \
32}