|
From: <le...@us...> - 2007-10-29 10:56:08
|
Revision: 37
http://rochat.svn.sourceforge.net/rochat/?rev=37&view=rev
Author: levia
Date: 2007-10-29 03:56:04 -0700 (Mon, 29 Oct 2007)
Log Message:
-----------
- Fixed stuff.
- Added ChannelListener.
Modified Paths:
--------------
trunk/src/net/sensiva/rochat/core/connection/IRCConnection.java
trunk/src/net/sensiva/rochat/ui/tabs/ChannelTab.java
Added Paths:
-----------
trunk/src/net/sensiva/rochat/core/connection/ChannelListener.java
Added: trunk/src/net/sensiva/rochat/core/connection/ChannelListener.java
===================================================================
--- trunk/src/net/sensiva/rochat/core/connection/ChannelListener.java (rev 0)
+++ trunk/src/net/sensiva/rochat/core/connection/ChannelListener.java 2007-10-29 10:56:04 UTC (rev 37)
@@ -0,0 +1,8 @@
+
+package net.sensiva.rochat.core.connection;
+
+public interface ChannelListener
+{
+ public void messageReceived(String message, String userName, String host, String nickName);
+ public void topicReceived(String topic);
+}
Modified: trunk/src/net/sensiva/rochat/core/connection/IRCConnection.java
===================================================================
--- trunk/src/net/sensiva/rochat/core/connection/IRCConnection.java 2007-10-23 08:10:35 UTC (rev 36)
+++ trunk/src/net/sensiva/rochat/core/connection/IRCConnection.java 2007-10-29 10:56:04 UTC (rev 37)
@@ -125,6 +125,7 @@
{
if (!m_Socket.isClosed())
{
+ send("QUIT :slet");.
m_Socket.close();
fireDisconnected();
fireMessageReceived("Disconnected from server.");
Modified: trunk/src/net/sensiva/rochat/ui/tabs/ChannelTab.java
===================================================================
--- trunk/src/net/sensiva/rochat/ui/tabs/ChannelTab.java 2007-10-23 08:10:35 UTC (rev 36)
+++ trunk/src/net/sensiva/rochat/ui/tabs/ChannelTab.java 2007-10-29 10:56:04 UTC (rev 37)
@@ -144,4 +144,9 @@
addMessage(nickName + " | " + message);
}
+ public void topicReceived(String topic)
+ {
+ addMessage(topic);
+ }
+
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|