org.openuat.channel
Interface ifComm

All Superinterfaces:
java.lang.Runnable
All Known Implementing Classes:
CommHex, CommPlain

public interface ifComm
extends java.lang.Runnable

Author:
Christoph Egger, Lukas Wallentin Extends Runnable interface, as implementations MUST run as threads

Method Summary
 void getMsg(java.lang.String _folder, ifListener _guest)
          Calls the handleStringEvent function. of the calling thread Triggers the reception of all message from a specific folder.
 void getMsgSince(java.lang.String _folder, int _time, ifListener _guest)
          Calls the handleStringEvent function of the calling thread Triggers the reception of all messages which were sent starting at a specific time until now from a specific folder.
 void sendMsg(java.lang.String _folder, java.lang.String _msg, ifListener _guest)
          Calls the handleStringEvent function of the calling thread Triggers sending of a message
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

sendMsg

void sendMsg(java.lang.String _folder,
             java.lang.String _msg,
             ifListener _guest)
Calls the handleStringEvent function of the calling thread

Triggers sending of a message

Parameters:
_folder - folder name where the message shall be placed
_msg - message to send
_guest - calling application thread

getMsg

void getMsg(java.lang.String _folder,
            ifListener _guest)
Calls the handleStringEvent function. of the calling thread Triggers the reception of all message from a specific folder.

implementation of ifComm

Parameters:
_folder - folder name where the desired messages are
_guest - calling application thread
See Also:
ifComm

getMsgSince

void getMsgSince(java.lang.String _folder,
                 int _time,
                 ifListener _guest)
Calls the handleStringEvent function of the calling thread Triggers the reception of all messages which were sent starting at a specific time until now from a specific folder.

implementation of ifComm

Parameters:
_folder - folder name where the desired messages are
_time - starting time, oldest wanted message
_guest - calling application thread
See Also:
ifComm


2005-2009, Rene Mayrhofer.