41 if ( isset( $args[0] ) && !empty( $args[0] ) ) {
46 $this->currentPort = ($args[0] ==
$bearsamppBins->getMailpit()->getName())
53 $this->cntProcessActions = 3;
55 $bearsamppWinbinder->reset();
58 $this->wbLabelCurrent = $bearsamppWinbinder->createLabel(
64 $this->wbInputPort = $bearsamppWinbinder->createInputText( $this->wbWindow, $this->currentPort, 105, 43, 50,
null, 5, WBC_NUMBER );
66 $this->wbProgressBar = $bearsamppWinbinder->createProgressBar( $this->wbWindow, $this->cntProcessActions + 1, 15, 107, 170 );
70 $bearsamppWinbinder->setHandler( $this->wbWindow, $this,
'processWindow' );
72 $bearsamppWinbinder->mainLoop();
73 $bearsamppWinbinder->reset();
97 $bearsamppWinbinder->incrProgressBar( $this->wbProgressBar );
98 if (
$port == $this->currentPort ) {
100 $bearsamppWinbinder->resetProgressBar( $this->wbProgressBar );
103 $changePort = $this->bin->changePort(
$port,
true, $this->wbProgressBar );
104 if ( $changePort ===
true ) {
106 $this->bin->getService()->restart();
108 $bearsamppWinbinder->messageBoxInfo(
112 $bearsamppWinbinder->destroyWindow( $window );
115 $bearsamppWinbinder->messageBoxError(
119 $bearsamppWinbinder->resetProgressBar( $this->wbProgressBar );
124 $bearsamppWinbinder->destroyWindow( $window );