void listenToRadio(double frequency) { std::cout << "Tuning in the airwaves..." << std::endl; _tuner->on(); _tuner->setFrequency(frequency); _amp->on(); _amp->setVolume(5); _amp->setTuner(_tuner); }
void listenToRadio( double frequency ) { HUM_TRACE(ACE_TEXT("HomeTheaterFacade::listenToRadio")); std::cout << "Tuning in the airwaves..." << std::endl; _tuner->on(); _tuner->setFrequency( frequency ); _amp->on(); _amp->setVolume( 5 ); _amp->setTuner( _tuner ); }
void endRadio() { HUM_TRACE(ACE_TEXT("HomeTheaterFacade::endRadio")); std::cout << "Shutting down the tuner..." << std::endl; _tuner->off(); _amp->off(); }
public: virtual void setTuner(Tuner* tuner) { std::cout << description << " setting tuner to " << tuner->toString() << std::endl; this->tuner = tuner; }
void endRadio() { std::cout << "Shutting down the tuner..." << std::endl; _tuner->off(); _amp->off(); }