🔀 Merge next
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / freenet / wot / IdentityManager.kt
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 (file)
index 0000000..e90af91
--- /dev/null
@@ -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<OwnIdentity>
+
+}