Connectable |
|
|
Abort CanConnect ClearAbort Connect Disconnect |
|
Aborted Connected |
Define Class Connectable; mixes in with Object; operation CanConnect(announceWhyNot: Boolean): Boolean, noMethod, noFail; // preflight sanity check to see if ready to accept a Connect call. // Passing in 'true' requests an appropriate announcement be shown // to the user if the object is not connectable at this time. operation Connect(destination: Object; wantsStatus: Object), noMethod, noFail; // connect to the given destination; if 'wantsStatus' is not nil, // it represents an object that wants to receive updates on the // status of the connection. Usually this is a StatusAnnouncement object. attribute Connected: Boolean, readOnly, noGetter; // checks if a connection is already in progress operation Disconnect(), noMethod, noFail; // disconnect from the destination operation Abort(), noMethod, noFail; // abort the connection attribute Aborted: Boolean, readOnly, noGetter; // checks if the connection has been aborted operation ClearAbort(), noMethod, noFail; // clears the abort condition after everything is back to normal end class;