summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/isode')
-rw-r--r--src/com/isode/stroke/muc/MUC.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/com/isode/stroke/muc/MUC.java b/src/com/isode/stroke/muc/MUC.java
index 9806e34..19dbdd3 100644
--- a/src/com/isode/stroke/muc/MUC.java
+++ b/src/com/isode/stroke/muc/MUC.java
@@ -68,6 +68,14 @@ public abstract class MUC {
public abstract Map<String, MUCOccupant> getOccupants();
public abstract void changeNickname(final String newNickname);
public abstract void part();
+ /**
+ * Disconnect signals for this MUC.
+ * Java-specific method (not in Swiften) required so that any connected
+ * signals can be disconnected when the object is no longer required.
+ * While any signals are still connected, the MUC object will not be
+ * eligible for garbage collection.
+ */
+ public abstract void disconnect();
/*public abstract void handleIncomingMessage(Message::ref message); */
/** Expose public so it can be called when e.g. user goes offline */
public abstract void handleUserLeft(LeavingType l);
@@ -105,4 +113,4 @@ public abstract class MUC {
public final Signal onUnlocked = new Signal();
/* public final Signal1<MUCInfo> onInfoResult; */
/* public final Signal1<blah> onItemsResult; */
-} \ No newline at end of file
+}