X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FIdentityManager.kt;fp=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FIdentityManager.kt;h=e90af91102b774a89a4f1b2d3deb0aa4799d8702;hp=0000000000000000000000000000000000000000;hb=d50730f6a330439e0e7ef97ca9329dffe72d5640;hpb=97fe04482ebb8a08e43294acde041c2975cbd8ee diff --git a/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityManager.kt b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityManager.kt new file mode 100644 index 0000000..e90af91 --- /dev/null +++ b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityManager.kt @@ -0,0 +1,18 @@ +package net.pterodactylus.sone.freenet.wot + +import net.pterodactylus.util.service.Service + +import com.google.common.eventbus.EventBus +import com.google.inject.ImplementedBy + +/** + * Connects to a [WebOfTrustConnector] and sends identity events to an + * [EventBus]. + */ +@ImplementedBy(IdentityManagerImpl::class) +interface IdentityManager : Service { + + val isConnected: Boolean + val allOwnIdentities: Set + +}