| 1 | package DBIx::dbMan::Extension::GUI; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use base 'DBIx::dbMan::Extension'; | ||
| 5 | |||
| 6 | our $VERSION = '0.01'; | ||
| 7 | |||
| 8 | 1; | ||
| 9 | |||
| 10 | sub IDENTIFICATION { return "000001-000093-000001"; } | ||
| 11 | |||
| 12 | sub preference { return 5000; } | ||
| 13 | |||
| 14 | sub handle_action { | ||
| 15 | my ($obj,%action) = @_; | ||
| 16 | |||
| 17 | if ($action{action} eq 'COMMAND' and not $action{gui_tested} | ||
| 18 | and $obj->{-mempool}->get('gui')) { | ||
| 19 | ++$action{gui}; | ||
| 20 | delete $action{processed}; | ||
| 21 | } else { | ||
| 22 | $action{processed} = 1; | ||
| 23 | } | ||
| 24 | |||
| 25 | ++$action{gui_tested}; | ||
| 26 | |||
| 27 | return %action; | ||
| 28 | } |