diff options
author | Ingo Bauersachs <ingo@jitsi.org> | 2011-10-04 12:22:16 +0000 |
---|---|---|
committer | Ingo Bauersachs <ingo@jitsi.org> | 2011-10-04 12:22:16 +0000 |
commit | 0f09a0cc4e6f29d238ee4ed4dea31e13b688ec99 (patch) | |
tree | 4fc3399adff81ecb8ef31f631ef4c00661b4ebc8 /src/net/java/sip/communicator/service/protocol | |
parent | 4568262a8e6b89d6e7560a523433a7a40c24951c (diff) | |
download | jitsi-0f09a0cc4e6f29d238ee4ed4dea31e13b688ec99.zip jitsi-0f09a0cc4e6f29d238ee4ed4dea31e13b688ec99.tar.gz jitsi-0f09a0cc4e6f29d238ee4ed4dea31e13b688ec99.tar.bz2 |
Rename generic srtp classes from Zrtp* to Srtp*
Diffstat (limited to 'src/net/java/sip/communicator/service/protocol')
-rw-r--r-- | src/net/java/sip/communicator/service/protocol/media/CallPeerMediaHandler.java | 16 | ||||
-rw-r--r-- | src/net/java/sip/communicator/service/protocol/media/MediaAwareCallPeer.java | 2 | ||||
-rw-r--r-- | src/net/java/sip/communicator/service/protocol/media/SrtpAwareCallPeer.java (renamed from src/net/java/sip/communicator/service/protocol/media/ZrtpAwareCallPeer.java) | 4 |
3 files changed, 11 insertions, 11 deletions
diff --git a/src/net/java/sip/communicator/service/protocol/media/CallPeerMediaHandler.java b/src/net/java/sip/communicator/service/protocol/media/CallPeerMediaHandler.java index 5142f36..c1c7887 100644 --- a/src/net/java/sip/communicator/service/protocol/media/CallPeerMediaHandler.java +++ b/src/net/java/sip/communicator/service/protocol/media/CallPeerMediaHandler.java @@ -97,7 +97,7 @@ public abstract class CallPeerMediaHandler< * A reference to the object that would be responsible for ZRTP control * and which most often would be the peer itself. */ - public final ZrtpListener zrtpController; + public final SrtpListener zrtpController; /** * The RTP stream that this media handler uses to send audio. @@ -193,8 +193,8 @@ public abstract class CallPeerMediaHandler< /** * Holds the ZRTP controls used for the current call. */ - private Map<MediaType, ZrtpControl> zrtpControls = - new Hashtable<MediaType, ZrtpControl>(); + private Map<MediaType, SrtpControl> zrtpControls = + new Hashtable<MediaType, SrtpControl>(); /** * The <tt>KeyFrameControl</tt> currently known to this @@ -334,7 +334,7 @@ public abstract class CallPeerMediaHandler< * controlling zrtp, and which most often would be the peer itself. */ public CallPeerMediaHandler(T peer, - ZrtpListener zrtpController) + SrtpListener zrtpController) { this.peer = peer; this.zrtpController = zrtpController; @@ -423,7 +423,7 @@ public abstract class CallPeerMediaHandler< getTransportManager().closeStreamConnector(type); // Clear the ZRTP controls used for the associated Call. - ZrtpControl zrtpCtrl = zrtpControls.get(type); + SrtpControl zrtpCtrl = zrtpControls.get(type); if (zrtpCtrl != null) { @@ -1161,7 +1161,7 @@ public abstract class CallPeerMediaHandler< * * @return the currently valid <tt>ZrtpControls</tt> map. */ - protected Map<MediaType, ZrtpControl> getZrtpControls() + protected Map<MediaType, SrtpControl> getZrtpControls() { return this.zrtpControls; } @@ -1206,7 +1206,7 @@ public abstract class CallPeerMediaHandler< logger.trace("The media types of device and format differ."); // check whether a control already exists - ZrtpControl control = zrtpControls.get(mediaType); + SrtpControl control = zrtpControls.get(mediaType); MediaService mediaService = ProtocolMediaActivator.getMediaService(); @@ -1282,7 +1282,7 @@ public abstract class CallPeerMediaHandler< { // we use the audio stream for master stream // when using ZRTP multistreams. - ZrtpControl zrtpControl = stream.getZrtpControl(); + SrtpControl zrtpControl = stream.getZrtpControl(); zrtpControl.setZrtpListener(zrtpController); zrtpControl.start(stream instanceof AudioMediaStream); diff --git a/src/net/java/sip/communicator/service/protocol/media/MediaAwareCallPeer.java b/src/net/java/sip/communicator/service/protocol/media/MediaAwareCallPeer.java index 23f43be..9f7b9c0 100644 --- a/src/net/java/sip/communicator/service/protocol/media/MediaAwareCallPeer.java +++ b/src/net/java/sip/communicator/service/protocol/media/MediaAwareCallPeer.java @@ -36,7 +36,7 @@ public abstract class MediaAwareCallPeer U extends CallPeerMediaHandler<?>, V extends ProtocolProviderService> extends AbstractCallPeer<T, V> - implements ZrtpListener, + implements SrtpListener, CallPeerConferenceListener, CsrcAudioLevelListener, SimpleAudioLevelListener diff --git a/src/net/java/sip/communicator/service/protocol/media/ZrtpAwareCallPeer.java b/src/net/java/sip/communicator/service/protocol/media/SrtpAwareCallPeer.java index 71f57dd..284bc92 100644 --- a/src/net/java/sip/communicator/service/protocol/media/ZrtpAwareCallPeer.java +++ b/src/net/java/sip/communicator/service/protocol/media/SrtpAwareCallPeer.java @@ -18,10 +18,10 @@ import net.java.sip.communicator.service.protocol.*; * * @author Emil Ivov */ -public abstract class ZrtpAwareCallPeer<T extends Call, +public abstract class SrtpAwareCallPeer<T extends Call, U extends ProtocolProviderService> extends AbstractCallPeer<T, U> - implements ZrtpControl + implements SrtpControl { } |