blob: c1f9537ce501464a998932301dc791300cacc566 (
plain)
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
33
34
35
36
37
38
39
40
41
|
#include "ListUnitsEntry.hpp"
void ListUnitsEntry::registerMetaType() {
qRegisterMetaType<ListUnitsEntry>("ListUnitsEntry");
qDBusRegisterMetaType<ListUnitsEntry>();
}
QDBusArgument& operator<<(QDBusArgument& argument, const ListUnitsEntry& entry) {
argument.beginStructure();
argument
<< entry.primaryName
<< entry.description
<< entry.loadState
<< entry.activeState
<< entry.subState
<< entry.followingUnit
<< entry.unitPath
<< entry.jobId
<< entry.jobType
<< entry.jobPath;
argument.endStructure();
return argument;
}
const QDBusArgument& operator>>(const QDBusArgument& argument, ListUnitsEntry& entry) {
argument.beginStructure();
argument
>> entry.primaryName
>> entry.description
>> entry.loadState
>> entry.activeState
>> entry.subState
>> entry.followingUnit
>> entry.unitPath
>> entry.jobId
>> entry.jobType
>> entry.jobPath;
argument.endStructure();
return argument;
}
|