CQCC::IOClearPrompt - ClearPrompt subclass of IOBase for user and system interaction methods
The IOClearPrompt class is a subclass which provides an alternative set of user interaction methods (IOPrompt, IOMessage, and IOListSelect) that use the ClearPrompt GUI utility instead of a text menu.
SUPPORT POLICY: See TriggerCQCC.pm for the Rational Support Policy.
ClassInit()
ClassTest(@args)
new CQCC::IOClearPrompt()
ListSelect(multiChoice, titleMsgTag, choiceMsgTagList...)
In the ClearPrompt implementation, the choices are displayed in a scolling ``list'' type menu and the user is expected to pick one or more lines in the list.
The selected items will be returned as a list to the caller, using the original choiceMsgTag items in their entirety for the caller to match to expectations.
The return value consists of a list containing the a flag to abort (1 for abort, 0 for continue) and the answer(s).
Message(type, abort, [msgtag, args])
IOMessage())
will display its message
to the user, after translating the msgtag and its arguments into the
corresponding message catalog entry. Display is handled by calling
the Prompt()
method.
The type value may be ``INFO'', ``WARN'', ``ERROR'', or ``FATAL'' and is intended to qualify how the message is to be shown and whether or not the message affects the overall trigger status. If ``FATAL'' the status will be set to failed and the trigger will try to cleanly unwind and report failure back to the original caller, usually ClearCase.
The abort flag is also used to signal general failure for terminal conditions and will be combined with the type information shortly.
Print(print-args)
Prompt(keys)
IOPrompt())
will display its message
to the user, after translating the msgtag and its arguments into the
corresponding message catalog entry.
The return value consists of a list containing the a flag to abort (1 for abort, 0 for continue) and the answer(s).
($abort, $answer) = $obj->Prompt(keys);
_ClearPrompt(command)
The return value consists of a list containing the a flag to abort (1 for abort, 0 for continue) and the answer(s).
($abort, $answer) = $obj->Prompt(keys);