|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.nukesoft.core.Dialog
A Dialog is the bridge between CommPort objects and LineProc objects. They serve to provide the internal glue that binds the two ends togeather. All Dialog objects are managed by the DialogManager class
Constructor Summary | |
Dialog(CommPort comm,
DynamicLoadLPContext lineProc,
String identity)
Creates a dialog binding. |
Method Summary | |
void |
bindConversation(String dialogID)
Binds this dialog to another. |
int |
getAge()
Gets the Dialog age. |
String[] |
getConversations()
Returns a list of active conversations. |
String |
getIdentity()
Returns this dialog's identity. |
String |
getWarningLevel()
Gets the warning level from the CommLib. |
void |
handleIM(IM message)
Handles incomming message from the CommLib. |
void |
handleWarn(String screenName)
Handles incomming warning from the CommLib. |
void |
sendIM(IM message)
Sends an outbound IM. |
void |
sendWarning(String screenName,
boolean anonymous)
Sends an outbound warning. |
void |
shutdown()
Cleanly shuts down the Dialog. |
void |
tickAge()
Incraments the age by one. |
void |
unbindConversation(String dialogID)
Unbinds this dialog from another. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Dialog(CommPort comm, DynamicLoadLPContext lineProc, String identity)
Method Detail |
public void handleIM(IM message)
message
- The message to foreward.public void handleWarn(String screenName)
screenName
- The screen name doing the warning.public String[] getConversations()
getConversations
in interface LineProcContextCallback
LineProcContextCallback.getConversations()
public String getIdentity()
getIdentity
in interface LineProcContextCallback
LineProcContextCallback.getIdentity()
public String getWarningLevel()
getWarningLevel
in interface LineProcContextCallback
LineProcContextCallback.getWarningLevel()
public void sendIM(IM message)
sendIM
in interface LineProcContextCallback
message
- The IM to send.LineProcContextCallback.sendIM(org.nukesoft.core.IM)
public void sendWarning(String screenName, boolean anonymous)
sendWarning
in interface LineProcContextCallback
screenName
- The screen name to warn.anonymous
- If TRUE, warn anonymously.LineProcContextCallback.sendWarning(java.lang.String, boolean)
public void bindConversation(String dialogID)
bindConversation
in interface LineProcContextCallback
dialogID
- Dialog ID to bind to in the format
CommPortBindName:ForeignScreenName.LineProcContextCallback.bindConversation(java.lang.String)
public void unbindConversation(String dialogID)
unbindConversation
in interface LineProcContextCallback
dialogID
- Dialog ID to unbind from in the format
CommPortBindName:ForeignScreenName.LineProcContextCallback.unbindConversation(java.lang.String)
public void tickAge()
public int getAge()
public void shutdown()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |