diff options
author | nea <romangraef@gmail.com> | 2022-08-26 01:08:13 +0200 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2022-08-26 01:08:13 +0200 |
commit | 4c7bd601c4df4d03536e97e18e4b88d858330ad9 (patch) | |
tree | 328a90e5fc5a524b1c2cbba6dac60498ee2b8210 /src/main/kotlin/moe/nea/notenoughupdates/dbus/NEUDbusObject.kt | |
parent | 9245c261f11f907b3dd23379d81f5b9f65e6e9bb (diff) | |
download | firmament-4c7bd601c4df4d03536e97e18e4b88d858330ad9.tar.gz firmament-4c7bd601c4df4d03536e97e18e4b88d858330ad9.tar.bz2 firmament-4c7bd601c4df4d03536e97e18e4b88d858330ad9.zip |
Translations and DBUS???? for some reason. also make the whole thing not buildable for anyone aside from me lol
Diffstat (limited to 'src/main/kotlin/moe/nea/notenoughupdates/dbus/NEUDbusObject.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/notenoughupdates/dbus/NEUDbusObject.kt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/notenoughupdates/dbus/NEUDbusObject.kt b/src/main/kotlin/moe/nea/notenoughupdates/dbus/NEUDbusObject.kt new file mode 100644 index 0000000..4e3d362 --- /dev/null +++ b/src/main/kotlin/moe/nea/notenoughupdates/dbus/NEUDbusObject.kt @@ -0,0 +1,21 @@ +package moe.nea.notenoughupdates.dbus + +import moe.nea.notenoughupdates.repo.RepoManager + +object NEUDbusObject : NEUDbusInterface { + override fun sayHello(): String { + return "Hello from NEU" + } + + override fun getCurrentRepoCommit(): String { + return RepoManager.currentDownloadedSha ?: "none" + } + + override fun requestRepoReDownload() { + RepoManager.launchAsyncUpdate() + } + + override fun getObjectPath(): String { + return "/moe/nea/NotEnoughUpdates" + } +} |