diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-05-30 19:40:31 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-05-31 01:17:58 +0900 |
| commit | d95a4fea540b371fa86493d069fdbd54f33c5b40 (patch) | |
| tree | 079b038ab559439eb7ded40a07bd79fd92926b3b /tderadio3/src/radio_interfaces.cpp | |
| parent | e54890e0480e5adee69f5220a7c6dd072bbd75ea (diff) | |
| download | tderadio-d95a4fea540b371fa86493d069fdbd54f33c5b40.tar.gz tderadio-d95a4fea540b371fa86493d069fdbd54f33c5b40.zip | |
Standardize folder structure.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tderadio3/src/radio_interfaces.cpp')
| -rw-r--r-- | tderadio3/src/radio_interfaces.cpp | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/tderadio3/src/radio_interfaces.cpp b/tderadio3/src/radio_interfaces.cpp deleted file mode 100644 index b2bcf74..0000000 --- a/tderadio3/src/radio_interfaces.cpp +++ /dev/null @@ -1,96 +0,0 @@ -/*************************************************************************** - radio_interfaces.cpp - description - ------------------- - begin : Don Apr 17 2003 - copyright : (C) 2003 by Martin Witte - email : witte@kawo1.rwth-aachen.de - ***************************************************************************/ - -/*************************************************************************** - * * - * 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 * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - -#include "include/radio_interfaces.h" -#include "include/stationlist.h" -#include "include/radiostation.h" - -// IRadio - -IF_IMPL_SENDER ( IRadio::notifyPowerChanged(bool on), - noticePowerChanged(on) ); -IF_IMPL_SENDER ( IRadio::notifyStationChanged (const RadioStation &s, int idx), - noticeStationChanged (s, idx) ); -IF_IMPL_SENDER ( IRadio::notifyStationsChanged(const StationList &sl), - noticeStationsChanged(sl) ); -IF_IMPL_SENDER ( IRadio::notifyPresetFileChanged(const TQString &f), - noticePresetFileChanged(f) ); -IF_IMPL_SENDER ( IRadio::notifyCurrentSoundStreamIDChanged(SoundStreamID id), - noticeCurrentSoundStreamIDChanged(id) ); - -// IRadioClient - -IF_IMPL_SENDER ( IRadioClient::sendPowerOn(), - powerOn() ); -IF_IMPL_SENDER ( IRadioClient::sendPowerOff(), - powerOff() ); -IF_IMPL_SENDER ( IRadioClient::sendActivateStation(const RadioStation &rs), - activateStation(rs) ); -IF_IMPL_SENDER ( IRadioClient::sendActivateStation(int index), - activateStation(index) ); -IF_IMPL_SENDER ( IRadioClient::sendStations(const StationList &sl), - setStations(sl) ); -IF_IMPL_SENDER ( IRadioClient::sendPresetFile(const TQString &f), - setPresetFile(f) ); - -IF_IMPL_QUERY ( bool IRadioClient::queryIsPowerOn(), - isPowerOn(), - false ); - -IF_IMPL_QUERY ( bool IRadioClient::queryIsPowerOff(), - isPowerOff(), - true ); - -IF_IMPL_QUERY ( const RadioStation & IRadioClient::queryCurrentStation(), - getCurrentStation(), - undefinedRadioStation ); - -IF_IMPL_QUERY ( int IRadioClient::queryCurrentStationIdx(), - getCurrentStationIdx(), - -1 ); - -IF_IMPL_QUERY ( int IRadioClient::queryStationIdx(const RadioStation &rs), - getStationIdx(rs), - -1 ); - -IF_IMPL_QUERY ( const StationList & IRadioClient::queryStations(), - getStations(), - emptyStationList ); - -static TQString emptyString; -IF_IMPL_QUERY ( const TQString & IRadioClient::queryPresetFile(), - getPresetFile(), - emptyString ); - -IF_IMPL_QUERY ( SoundStreamID IRadioClient::queryCurrentSoundStreamID(), - getCurrentSoundStreamID(), - SoundStreamID::InvalidID ); - -void IRadioClient::noticeConnectedI (cmplInterface *, bool /*pointer_valid*/) -{ - noticeStationsChanged(queryStations()); - noticeStationChanged (queryCurrentStation(), queryCurrentStationIdx()); - noticePowerChanged (queryIsPowerOn()); -} - -void IRadioClient::noticeDisconnectedI (cmplInterface *, bool /*pointer_valid*/) -{ - noticeStationsChanged(queryStations()); - noticeStationChanged(queryCurrentStation(), queryCurrentStationIdx()); - noticePowerChanged(queryIsPowerOn()); -} - |
