Adds support to channel model and processing manager to auto-start

channels upon loading the playlist.  

Processing manager now detects channel configuration changes and
restarts the channel if it is currently processing.

Channel editor enable button now shows green if it is processing, or
default when not processing.
This commit is contained in:
denny
2016-01-24 07:19:30 -05:00
parent ec10bb7e62
commit 61f68c08e8
6 changed files with 210 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
/*******************************************************************************
* SDR Trunk
* Copyright (C) 2014 Dennis Sheirer
* Copyright (C) 2014-2016 Dennis Sheirer
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -120,7 +120,7 @@ public class SDRTrunk
ChannelModel channelModel = new ChannelModel();
PlaylistManager playlistManager = new PlaylistManager( channelModel );
PlaylistManager playlistManager = new PlaylistManager( threadPoolManager, channelModel );
RecorderManager recorderManager = new RecorderManager( threadPoolManager );
@@ -146,6 +146,9 @@ public class SDRTrunk
new ChannelSelectionManager( channelModel );
channelModel.addListener( channelSelectionManager );
//TODO: move this to the end once we add the alias model, otherwise the
//configuration tree won't load correctly
//Initialize the playlist manager to load the saved playlist
playlistManager.init();