2
* Copyright © 2016 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU Lesser General Public License version 3,
6
* as published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
#ifndef MESSAGING_QT_TP_INTERFACES_TYPES_H
18
#define MESSAGING_QT_TP_INTERFACES_TYPES_H
20
#include <messaging/visibility.h>
34
* \struct HandleRolesMap
36
* \headerfile TelepathyQt/types.h <TelepathyQt/Types>
39
* QMap<uint, uint>, but needed to have a discrete type in the Qt type system.
41
* A map from channel-specific handles to their owners.
43
struct MESSAGING_FW_PUBLIC HandleRolesMap : public QMap<uint, uint>
45
inline HandleRolesMap() : QMap<uint, uint>() {}
46
inline HandleRolesMap(const QMap<uint, uint>& a) : QMap<uint, uint>(a) {}
48
inline HandleRolesMap& operator=(const QMap<uint, uint>& a)
50
*(static_cast<QMap<uint, uint>*>(this)) = a;
60
Q_DECLARE_METATYPE(messaging::qt::tp::interfaces::HandleRolesMap)
62
#endif // MESSAGING_QT_TP_INTERFACES_TYPES_H