Introduce progress bar updates and queue processing logic

Implemented progress bar integration with `ProgressBarContract` for real-time conversion tracking and status updates. Added queue management functionality to process files sequentially with error and completion handling. Extended `ConvertorContract` and `FFmpegContract` to support tracking of running processes and conversion progress.
This commit is contained in:
2025-06-08 22:19:28 +05:00
parent 1b1cdd5c22
commit 2909ef7cea
4 changed files with 251 additions and 4 deletions

View File

@@ -20,9 +20,9 @@ func main() {
}
app.SetMetadata(appMetadata)
fyneApp := app.New()
progressBarService := convertor.NewProgressBar()
appSetting := setting.NewSetting(fyneApp)
ffmpegService := ffmpeg.NewUtilities(appSetting)
progressBarService := convertor.NewProgressBar(ffmpegService)
convertorService := convertor.NewConvertor(ffmpegService)
itemsToConvert := convertor.NewItemsToConvert(ffmpegService)
queue := convertor.NewQueueList()
@@ -37,5 +37,9 @@ func main() {
)
mainController := controller.NewController(myApp)
mainController.Start()
myApp.RunConvertor()
defer myApp.AfterClosing()
myApp.Run()
}