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

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

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

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