From 4c7bd601c4df4d03536e97e18e4b88d858330ad9 Mon Sep 17 00:00:00 2001 From: nea Date: Fri, 26 Aug 2022 01:08:13 +0200 Subject: Translations and DBUS???? for some reason. also make the whole thing not buildable for anyone aside from me lol --- .../moe/nea/notenoughupdates/dbus/NEUDbusObject.kt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/main/kotlin/moe/nea/notenoughupdates/dbus/NEUDbusObject.kt (limited to 'src/main/kotlin/moe/nea/notenoughupdates/dbus/NEUDbusObject.kt') 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" + } +} -- cgit