Replace references to NEU with Firmament
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package moe.nea.firmament.dbus
|
||||
|
||||
import org.freedesktop.dbus.annotations.DBusInterfaceName
|
||||
import org.freedesktop.dbus.interfaces.DBusInterface
|
||||
|
||||
@DBusInterfaceName("moe.nea.Firmament")
|
||||
interface FirmamentDbusInterface : DBusInterface {
|
||||
fun sayHello(): String
|
||||
fun getCurrentRepoCommit(): String
|
||||
fun requestRepoReDownload()
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package moe.nea.firmament.dbus
|
||||
|
||||
import moe.nea.firmament.repo.RepoManager
|
||||
|
||||
object FirmamentDbusObject : FirmamentDbusInterface {
|
||||
override fun sayHello(): String {
|
||||
return "Hello from Firmanet"
|
||||
}
|
||||
|
||||
override fun getCurrentRepoCommit(): String {
|
||||
return RepoManager.currentDownloadedSha ?: "none"
|
||||
}
|
||||
|
||||
override fun requestRepoReDownload() {
|
||||
RepoManager.launchAsyncUpdate()
|
||||
}
|
||||
|
||||
override fun getObjectPath(): String {
|
||||
return "/moe/nea/Firmament"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user