|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addAudioFile(java.lang.String audioKey,
java.lang.String sound)
Adds an audio file to the properties. |
boolean |
changeNick(java.lang.String newNickname)
Changes the actual nickname. |
boolean |
connect(java.lang.String servername,
java.lang.String nickname)
Connects to a given server with a given nickname. |
boolean |
createNewChannel(java.lang.String name,
java.lang.String sendPasswd,
java.lang.String recvPasswd)
Creates a new channel. |
boolean |
disconnect()
Disconnects from the server. |
java.util.Enumeration |
getAudioEnumeration()
gets an enumeration of audio files from the AudioMapper and returns it. |
java.util.Enumeration |
getAvailableChannelEnumeration()
gets an enumeration of available channels and returns it. |
java.lang.String |
getNickname()
gets the stored default nickname from swpOpions and returns it. |
java.util.Enumeration |
getSelectedChannelEnumeration()
gets an enumeration of selected channels and returns it. |
java.lang.String |
getServername()
gets the stored default servername from swpOpions and returns it. |
boolean |
isConnected()
Checks if the client is actually connected completely. |
boolean |
join(java.lang.String channel)
Joins a channel. |
boolean |
leave(java.lang.String channel)
Leaves a channel. |
boolean |
play(java.lang.String channel,
java.lang.String audiokey)
|
boolean |
playReceivedAudioRequest(java.lang.String channel,
java.lang.String sender,
java.lang.String audio)
Plays an audio file. |
void |
quit()
Quits the client program with disconnecting from server. |
void |
removeAudioFile(java.lang.String audioKey)
Removes an audio file from the properties. |
boolean |
removeChannel(java.lang.String name)
Removes an existing channel. |
boolean |
renameChannel(java.lang.String oldname,
java.lang.String newname)
Renames an existing channel. |
void |
saveNickname(java.lang.String nickname)
stores nickname in properties. |
void |
saveServername(java.lang.String servername)
stores servername in properties. |
boolean |
send(java.lang.String channel,
java.lang.String message)
Sends a given message to a given channel to the server. |
boolean |
sendFile(java.io.File pictureFile,
java.util.Vector vecReceiver)
Sends a picture to the server. |
boolean |
showReceivedPicture(java.io.File pictureFile)
Shows a received picture. |
Method Detail |
public boolean connect(java.lang.String servername, java.lang.String nickname)
servername
- The server name.nickname
- The user's nickname.public boolean disconnect()
public boolean isConnected()
public boolean send(java.lang.String channel, java.lang.String message)
channel
- The channel the message should be sent to.message
- The message :-)public void quit()
public boolean changeNick(java.lang.String newNickname)
newNickname
- The new nickname, what else?public java.lang.String getNickname()
public void saveNickname(java.lang.String nickname)
public void saveServername(java.lang.String servername)
public java.lang.String getServername()
public boolean play(java.lang.String channel, java.lang.String audiokey)
public boolean playReceivedAudioRequest(java.lang.String channel, java.lang.String sender, java.lang.String audio)
channel
- The actual channel.sender
- The sender of the play request.audio
- The audio key of the audio file to be played.public void addAudioFile(java.lang.String audioKey, java.lang.String sound)
audioKey
- The audio key of the audio file to be added.sound
- The URL to the audio file.public void removeAudioFile(java.lang.String audioKey)
audioKey
- The audio key to be removed.public java.util.Enumeration getAudioEnumeration()
public boolean sendFile(java.io.File pictureFile, java.util.Vector vecReceiver)
actualChannel
- The Channel the picture is sent to.pictureFile
- The File containing th picture.public boolean showReceivedPicture(java.io.File pictureFile)
pictureFile
- The received picture file.public boolean join(java.lang.String channel)
channel
- The channel to be joined.public boolean leave(java.lang.String channel)
channel
- The channel to be left.public boolean createNewChannel(java.lang.String name, java.lang.String sendPasswd, java.lang.String recvPasswd)
name
- The name of the new channel.sendPasswd
- The password for restricted access for sendersrecvPasswd
- The password for restricted access for receiverspublic boolean renameChannel(java.lang.String oldname, java.lang.String newname)
oldname
- The old channel name.newname
- The new channel name.public boolean removeChannel(java.lang.String name)
name
- The name of the channel to be removed.public java.util.Enumeration getAvailableChannelEnumeration()
public java.util.Enumeration getSelectedChannelEnumeration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |