-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libcommhistory] Don't leak DBus in headers.
Don't export serialisation in QDBusArgument in headers.
- Loading branch information
Showing
12 changed files
with
64 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/****************************************************************************** | ||
** | ||
** This file is part of libcommhistory. | ||
** | ||
** Copyright (C) 2024 Jolla Ltd. | ||
** | ||
** This library is free software; you can redistribute it and/or modify it | ||
** under the terms of the GNU Lesser General Public License version 2.1 as | ||
** published by the Free Software Foundation. | ||
** | ||
** This library is distributed in the hope that it will be useful, but | ||
** WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ||
** or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public | ||
** License for more details. | ||
** | ||
** You should have received a copy of the GNU Lesser General Public License | ||
** along with this library; if not, write to the Free Software Foundation, Inc., | ||
** 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
** | ||
******************************************************************************/ | ||
|
||
#ifndef DBUS_P_H | ||
#define DBUS_P_H | ||
|
||
#include <QDBusArgument> | ||
|
||
#include "recipient.h" | ||
#include "event.h" | ||
#include "messagepart.h" | ||
#include "group.h" | ||
|
||
QDBusArgument &operator<<(QDBusArgument &argument, const CommHistory::Recipient &recipient); | ||
const QDBusArgument &operator>>(const QDBusArgument &argument, CommHistory::Recipient &recipient); | ||
|
||
QDBusArgument &operator<<(QDBusArgument &argument, const CommHistory::RecipientList &recipients); | ||
const QDBusArgument &operator>>(const QDBusArgument &argument, CommHistory::RecipientList &recipients); | ||
|
||
QDBusArgument &operator<<(QDBusArgument &argument, const CommHistory::Event &event); | ||
const QDBusArgument &operator>>(const QDBusArgument &argument, CommHistory::Event &event); | ||
|
||
QDBusArgument &operator<<(QDBusArgument &argument, const CommHistory::Event::Contact &contact); | ||
const QDBusArgument &operator>>(const QDBusArgument &argument, CommHistory::Event::Contact &contact); | ||
|
||
QDBusArgument &operator<<(QDBusArgument &argument, const CommHistory::MessagePart &part); | ||
const QDBusArgument &operator>>(const QDBusArgument &argument, | ||
CommHistory::MessagePart &part); | ||
|
||
QDBusArgument &operator<<(QDBusArgument &argument, const CommHistory::Group &group); | ||
const QDBusArgument &operator>>(const QDBusArgument &argument, CommHistory::Group &group); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
|
||
#include "group.h" | ||
#include "event.h" | ||
#include "dbus_p.h" | ||
|
||
namespace CommHistory { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters