void OnStopRecordStation(const Station& station) { streamrecorder_.StopRecording(station.GetId()); pView_->ClearStationStatus(station.GetId()); pView_->ClearStationTitle(station.GetId()); pView_->DisableStopRecording(); }
void OnRecordStation(const Station& station) { pView_->DisableRecording(); EventHandler eventHandler(station.GetId()); streamrecorder_.StartRecording(station, eventHandler); }
void OnStationSelected(const Station& station) { if(streamrecorder_.IsRecording(station.GetId())) { pView_->DisableRecording(); } else { pView_->EnableRecording(); } pView_->EnablePlaying(); pView_->EnableDeleting(); }
void OnDeleteStation(const Station& station) { streamrecorder_.RemoveStationFromPlaylist(station.GetId()); pView_->RemoveSelectedStation(); pView_->DisableStationActions(); }