Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 721 Bytes

ssud_dbus.h

File metadata and controls

32 lines (26 loc) · 721 Bytes
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef SSUD_INCLUDE_H
#define SSUD_INCLUDE_H
#include <QDBusArgument>
#include <QString>
#include <QVariantMap>
struct SsuRepo {
QString name;
QString url;
QVariantMap parameters;
};
inline QDBusArgument &operator<<(QDBusArgument &argument, const SsuRepo &myRepo)
{
argument.beginStructure();
argument << myRepo.name << myRepo.url << myRepo.parameters;
argument.endStructure();
return argument;
}
inline const QDBusArgument &operator>>(const QDBusArgument &argument, SsuRepo &myRepo)
{
argument.beginStructure();
argument >> myRepo.name >> myRepo.url >> myRepo.parameters;
argument.endStructure();
return argument;
}
Q_DECLARE_METATYPE(SsuRepo)
#endif // SSUD_INCLUDE_H