Search in sources :

Example 1 with JingleRoomState

use of org.jivesoftware.sparkplugin.JingleStateManager.JingleRoomState in project Spark by igniterealtime.

the class JingleTabHandler method isTabHandled.

public boolean isTabHandled(SparkTab tab, Component component, boolean isSelectedTab, boolean chatFrameFocused) {
    if (component instanceof ChatRoom) {
        JingleRoomState roomState = manager.getJingleRoomState((ChatRoom) component);
        if (roomState == null) {
            // This is not a jingle room.
            return false;
        }
        // This is a room with a jingle session.
        handleJingleRoom(roomState, tab, (ChatRoom) component, isSelectedTab, chatFrameFocused);
        return true;
    }
    return false;
}
Also used : ChatRoom(org.jivesoftware.spark.ui.ChatRoom) JingleRoomState(org.jivesoftware.sparkplugin.JingleStateManager.JingleRoomState)

Aggregations

ChatRoom (org.jivesoftware.spark.ui.ChatRoom)1 JingleRoomState (org.jivesoftware.sparkplugin.JingleStateManager.JingleRoomState)1