[operations] [attributes] [fields] [template] [definition]
[implementation] [documentation]
To use the search tool you need to use a browser which supports JAVA (c)

[next] [prev] [superclass] [next peer] [prev peer] [subclass] [index] [hierarchy]

CallingCard

inherits from Object
inherits from EditAttributeClient

Object <- CallingCard



Operations

Get list of all operations

AcceptEdit
DialCardNumber


Attributes

Get list of all attributes

CallingCardNumber
CarrierCode
DialCardNumFirst
InternationalAccessCode
Name
NationalAccessCode
ShouldUseCarrierCode


Fields

Field Type
CallingCard: carrierCode: Text
callingCardNumber: Text
nationalAccessCode: Text
internationalAccessCode: Text
dialCardNumFirst: Boolean


Instance template

instance CallingCard tag;
    carrierCode: nilObject;
callingCardNumber: nilObject;
nationalAccessCode: nilObject;
internationalAccessCode: nilObject;
dialCardNumFirst: false;
end instance;

Class definition

#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;