| 1 | package ProgressMonitor::SetMessageFlags; | ||
| 2 | |||
| 3 | 10 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 10 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | # This defines the values used to indicate when SetMessage should occur | ||
| 7 | # | ||
| 8 | |||
| 9 | 10 | ▶ | use Exporter qw(import); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 10 | our @EXPORT = qw(SM_NOW SM_PREPARE SM_BEGIN SM_TICK SM_END); | |
| 11 | |||
| 12 | # This is the default - 'set the message now' | ||
| 13 | # | ||
| 14 | sub SM_NOW () { 0 } | ||
| 15 | |||
| 16 | # Set the message when prepare is called | ||
| 17 | # | ||
| 18 | sub SM_PREPARE () { 1 } | ||
| 19 | |||
| 20 | # Set the message when begin is called | ||
| 21 | # | ||
| 22 | sub SM_BEGIN () { 2 } | ||
| 23 | |||
| 24 | # Set the message when next tick is called | ||
| 25 | # | ||
| 26 | sub SM_TICK () { 3 } | ||
| 27 | |||
| 28 | # Set the message when end is called | ||
| 29 | # | ||
| 30 | sub SM_END () { 4 } | ||
| 31 | |||
| 32 | 10 | 1; | |