Object <- CallingCard |
|
|
AcceptEdit DialCardNumber |
|
CallingCardNumber CarrierCode DialCardNumFirst InternationalAccessCode Name NationalAccessCode ShouldUseCarrierCode |
| Field | Type | |
|---|---|---|
| CallingCard: | carrierCode: | Text |
| callingCardNumber: | Text | |
| nationalAccessCode: | Text | |
| internationalAccessCode: | Text | |
| dialCardNumFirst: | Boolean |
instance CallingCard tag; carrierCode: nilObject; callingCardNumber: nilObject; nationalAccessCode: nilObject; internationalAccessCode: nilObject; dialCardNumFirst: false; end instance;
#endif Define Class CallingCard; inherits from Object; inherits from EditAttributeClient; field carrierCode: Text, getter, setter; field callingCardNumber: Text, getter, setter; field nationalAccessCode: Text, getter, setter; field internationalAccessCode: Text, getter, setter; field dialCardNumFirst: Boolean, getter, setter; attribute CarrierCode: Text; // returns the number that needs to be dialed to reach the carrier of the card's service attribute CallingCardNumber: Text; // returns the calling card number (usually including the PIN) that the user has entered attribute NationalAccessCode: Text; // the number that needs to be dialed to make a calling card call within the current country attribute InternationalAccessCode: Text; // the number that needs to be dialed to make an international calling card call attribute DialCardNumFirst: Boolean; // determines whether card number or telephone number is dialed first attribute ShouldUseCarrierCode: Boolean, readOnly; // if the user entered a carrier access code, use it! operation DialCardNumber(), safe; // if DialCardNumFirst, dials iNumberToDial (the phone number), otherwise, dials the calling card number overrides AcceptEdit; // makes sure that the user enters a name and updates iCallingCards with the new name overrides SetName; // to let the dialing location know it needs to update the display end class;