Ejemplo n.º 1
0
	void OnStopRecordStation(const Station& station)
	{
		streamrecorder_.StopRecording(station.GetId());

		pView_->ClearStationStatus(station.GetId());
		pView_->ClearStationTitle(station.GetId());
		pView_->DisableStopRecording();
	}
Ejemplo n.º 2
0
	void OnRecordStation(const Station& station)
	{
		pView_->DisableRecording();

		EventHandler eventHandler(station.GetId());
		streamrecorder_.StartRecording(station, eventHandler);
	}
Ejemplo n.º 3
0
	void OnStationSelected(const Station& station)
	{
		if(streamrecorder_.IsRecording(station.GetId()))
		{
			pView_->DisableRecording();
		}
		else
		{
			pView_->EnableRecording();
		}

		pView_->EnablePlaying();
		pView_->EnableDeleting();
	}
Ejemplo n.º 4
0
	void OnDeleteStation(const Station& station)
	{
		streamrecorder_.RemoveStationFromPlaylist(station.GetId());
		pView_->RemoveSelectedStation();
		pView_->DisableStationActions();
	}