diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2026-07-08 22:51:44 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2026-07-08 22:51:44 +0200 |
| commit | f4d01d2d9f7a921f40a3b192637959ddf9129669 (patch) | |
| tree | f5f85751d7042088fd152722576f72943a26b472 /accounts/gkleen@sif/shell/quickshell-plugins/ListUnitsEntry.cpp | |
| parent | 4751f7390f1e2d4fd5a6a7e22ca111444e915583 (diff) | |
| download | nixos-flakes.tar nixos-flakes.tar.gz nixos-flakes.tar.bz2 nixos-flakes.tar.xz nixos-flakes.zip | |
...flakes
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell-plugins/ListUnitsEntry.cpp')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell-plugins/ListUnitsEntry.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell-plugins/ListUnitsEntry.cpp b/accounts/gkleen@sif/shell/quickshell-plugins/ListUnitsEntry.cpp new file mode 100644 index 00000000..c1f9537c --- /dev/null +++ b/accounts/gkleen@sif/shell/quickshell-plugins/ListUnitsEntry.cpp | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | #include "ListUnitsEntry.hpp" | ||
| 2 | |||
| 3 | void ListUnitsEntry::registerMetaType() { | ||
| 4 | qRegisterMetaType<ListUnitsEntry>("ListUnitsEntry"); | ||
| 5 | qDBusRegisterMetaType<ListUnitsEntry>(); | ||
| 6 | } | ||
| 7 | |||
| 8 | QDBusArgument& operator<<(QDBusArgument& argument, const ListUnitsEntry& entry) { | ||
| 9 | argument.beginStructure(); | ||
| 10 | argument | ||
| 11 | << entry.primaryName | ||
| 12 | << entry.description | ||
| 13 | << entry.loadState | ||
| 14 | << entry.activeState | ||
| 15 | << entry.subState | ||
| 16 | << entry.followingUnit | ||
| 17 | << entry.unitPath | ||
| 18 | << entry.jobId | ||
| 19 | << entry.jobType | ||
| 20 | << entry.jobPath; | ||
| 21 | argument.endStructure(); | ||
| 22 | |||
| 23 | return argument; | ||
| 24 | } | ||
| 25 | const QDBusArgument& operator>>(const QDBusArgument& argument, ListUnitsEntry& entry) { | ||
| 26 | argument.beginStructure(); | ||
| 27 | argument | ||
| 28 | >> entry.primaryName | ||
| 29 | >> entry.description | ||
| 30 | >> entry.loadState | ||
| 31 | >> entry.activeState | ||
| 32 | >> entry.subState | ||
| 33 | >> entry.followingUnit | ||
| 34 | >> entry.unitPath | ||
| 35 | >> entry.jobId | ||
| 36 | >> entry.jobType | ||
| 37 | >> entry.jobPath; | ||
| 38 | argument.endStructure(); | ||
| 39 | |||
| 40 | return argument; | ||
| 41 | } | ||
