// Path: app/src/main/java/com/batsw/anonimitychat/tor/listener/ITorBundleStatusListener.java
// public interface ITorBundleStatusListener {
//     public void tellStatusMessage(String torLogMessage);
// }


import com.batsw.anonimitychat.tor.listener.ITorBundleStatusListener;
import java.util.ArrayList;
import java.util.List;
package com.batsw.anonimitychat.chat.listener;



/**
 * Created by tudor on 2/5/2017.
 */

public class IncomingConnectionListenerManager {
    private List<IIncomingConnectionListener> mIncomingConnectionListenerList = null;

    public IncomingConnectionListenerManager() {
        mIncomingConnectionListenerList = new ArrayList<>();
    }

    public void triggerPartnerChatRequest(String partnerHostname) {
        for (IIncomingConnectionListener torStatusListener : mIncomingConnectionListenerList) {

            torStatusListener.triggerIncomingPartnerConnectionEvent(partnerHostname);

        }
    }

    public void addIncomingConnectionListener(IIncomingConnectionListener iIncomingConnectionListener) {
        mIncomingConnectionListenerList.add(iIncomingConnectionListener);
    }

// Path: app/src/main/java/com/batsw/anonimitychat/tor/listener/ITorBundleStatusListener.java
// public interface ITorBundleStatusListener {
//     public void tellStatusMessage(String torLogMessage);
// }


// Path: app/src/main/java/com/batsw/anonimitychat/chat/listener/IncomingConnectionListenerManager.java
import com.batsw.anonimitychat.tor.listener.ITorBundleStatusListener;
import java.util.ArrayList;
import java.util.List;

package com.batsw.anonimitychat.chat.listener;



/**
 * Created by tudor on 2/5/2017.
 */

public class IncomingConnectionListenerManager {
    private List<IIncomingConnectionListener> mIncomingConnectionListenerList = null;

    public IncomingConnectionListenerManager() {
        mIncomingConnectionListenerList = new ArrayList<>();
    }

    public void triggerPartnerChatRequest(String partnerHostname) {
        for (IIncomingConnectionListener torStatusListener : mIncomingConnectionListenerList) {

            torStatusListener.triggerIncomingPartnerConnectionEvent(partnerHostname);

        }
    }

    public void addIncomingConnectionListener(IIncomingConnectionListener iIncomingConnectionListener) {
        mIncomingConnectionListenerList.add(iIncomingConnectionListener);
    }

    public void removeIncomingConnectionListener(ITorBundleStatusListener iTorBundleStatusListener) {