| 1 | package Javonet::Core::Transmitter::PerlTransmitter; | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | use Cwd; | ||
| 5 | use aliased 'Javonet::Core::Transmitter::PerlTransmitterWrapper' => 'PerlTransmitterWrapper'; | ||
| 6 | use Exporter qw(import); | ||
| 7 | our @EXPORT = qw(t_send_command t_activate t_set_config_source t_set_javonet_working_directory); | ||
| 8 | |||
| 9 | sub t_send_command { | ||
| 10 | my ($self, $message_byte_array_ref) = @_; | ||
| 11 | return PerlTransmitterWrapper->tw_send_command($message_byte_array_ref); | ||
| 12 | } | ||
| 13 | |||
| 14 | sub t_activate { | ||
| 15 | my ($self, $licenseKey) = @_; | ||
| 16 | return PerlTransmitterWrapper->tw_activate($licenseKey); | ||
| 17 | } | ||
| 18 | |||
| 19 | sub t_set_config_source { | ||
| 20 | my ($self, $config_path) = @_; | ||
| 21 | PerlTransmitterWrapper->tw_set_config_source($config_path); | ||
| 22 | } | ||
| 23 | |||
| 24 | sub t_set_javonet_working_directory { | ||
| 25 | my ($self, $working_directory) = @_; | ||
| 26 | PerlTransmitterWrapper->tw_set_javonet_working_directory($working_directory); | ||
| 27 | } | ||
| 28 | |||
| 29 | 1; |