Fix inadvertent "TQ" changes.

(cherry picked from commit 7f4c75f7ac)
v3.5.13-sru
Darrell Anderson 13 years ago committed by Slávek Banko
parent 73ac8fea20
commit 9386d2aca2

@ -15,8 +15,8 @@
* * * *
***************************************************************************/ ***************************************************************************/
#ifndef KRADIO_TQUICKBAR_CONFIGURATION_H #ifndef KRADIO_QUICKBAR_CONFIGURATION_H
#define KRADIO_TQUICKBAR_CONFIGURATION_H #define KRADIO_QUICKBAR_CONFIGURATION_H
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>

@ -15,8 +15,8 @@
* * * *
***************************************************************************/ ***************************************************************************/
#ifndef KRADIO_TQUICKBAR_H #ifndef KRADIO_QUICKBAR_H
#define KRADIO_TQUICKBAR_H #define KRADIO_QUICKBAR_H
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>

@ -34,22 +34,22 @@ IF_IMPL_SENDER ( IDisplayCfgClient::sendDisplayFont(const TQFont &f),
setDisplayFont(f) ) setDisplayFont(f) )
const TQColor default_display_active_color = TQColor(20, 244, 20); const TQColor default_display_active_color = TQColor(20, 244, 20);
IF_IMPL_TQUERY ( const TQColor &IDisplayCfgClient::queryDisplayActiveColor(), IF_IMPL_QUERY ( const TQColor &IDisplayCfgClient::queryDisplayActiveColor(),
getDisplayActiveColor(), getDisplayActiveColor(),
default_display_active_color ) default_display_active_color )
const TQColor default_display_inactive_color = TQColor(10, 117, 10).light(75); const TQColor default_display_inactive_color = TQColor(10, 117, 10).light(75);
IF_IMPL_TQUERY ( const TQColor &IDisplayCfgClient::queryDisplayInactiveColor(), IF_IMPL_QUERY ( const TQColor &IDisplayCfgClient::queryDisplayInactiveColor(),
getDisplayInactiveColor(), getDisplayInactiveColor(),
default_display_inactive_color ) default_display_inactive_color )
const TQColor default_display_bkgnd_color = TQColor(10, 117, 10); const TQColor default_display_bkgnd_color = TQColor(10, 117, 10);
IF_IMPL_TQUERY ( const TQColor &IDisplayCfgClient::queryDisplayBkgndColor(), IF_IMPL_QUERY ( const TQColor &IDisplayCfgClient::queryDisplayBkgndColor(),
getDisplayBkgndColor(), getDisplayBkgndColor(),
default_display_bkgnd_color ) default_display_bkgnd_color )
const TQFont default_display_font = TQFont("Helvetica"); const TQFont default_display_font = TQFont("Helvetica");
IF_IMPL_TQUERY ( const TQFont &IDisplayCfgClient::queryDisplayFont(), IF_IMPL_QUERY ( const TQFont &IDisplayCfgClient::queryDisplayFont(),
getDisplayFont(), getDisplayFont(),
default_display_font ) default_display_font )

@ -67,11 +67,11 @@ RECEIVERS:
IF_RECEIVER( noticeDisplayColorsChanged(const TQColor &activeColor, const TQColor &inactiveColor, const TQColor &bkgnd) ) IF_RECEIVER( noticeDisplayColorsChanged(const TQColor &activeColor, const TQColor &inactiveColor, const TQColor &bkgnd) )
IF_RECEIVER( noticeDisplayFontChanged(const TQFont &f) ) IF_RECEIVER( noticeDisplayFontChanged(const TQFont &f) )
TQUERIES: QUERIES:
IF_TQUERY ( const TQColor &queryDisplayActiveColor() ) IF_QUERY ( const TQColor &queryDisplayActiveColor() )
IF_TQUERY ( const TQColor &queryDisplayInactiveColor() ) IF_QUERY ( const TQColor &queryDisplayInactiveColor() )
IF_TQUERY ( const TQColor &queryDisplayBkgndColor() ) IF_QUERY ( const TQColor &queryDisplayBkgndColor() )
IF_TQUERY ( const TQFont &queryDisplayFont() ) IF_QUERY ( const TQFont &queryDisplayFont() )
RECEIVERS: RECEIVERS:
virtual void noticeConnectedI (cmplInterface *, bool pointer_valid); virtual void noticeConnectedI (cmplInterface *, bool pointer_valid);

@ -53,7 +53,7 @@ LIRCConfiguration::LIRCConfiguration (TQWidget *parent, LircSupport *dev)
m_descriptions[LIRC_SEARCH_NEXT] = i18n("Search Next Channel"); m_descriptions[LIRC_SEARCH_NEXT] = i18n("Search Next Channel");
m_descriptions[LIRC_SEARCH_PREV] = i18n("Search Previous Channel"); m_descriptions[LIRC_SEARCH_PREV] = i18n("Search Previous Channel");
m_descriptions[LIRC_SLEEP] = i18n("Enable Sleep Countdown"); m_descriptions[LIRC_SLEEP] = i18n("Enable Sleep Countdown");
m_descriptions[LIRC_APPLICATION_TQUIT] = i18n("Quit KRadio"); m_descriptions[LIRC_APPLICATION_QUIT] = i18n("Quit KRadio");
int k = 0; int k = 0;
m_order[k++] = LIRC_DIGIT_0; m_order[k++] = LIRC_DIGIT_0;
@ -78,7 +78,7 @@ LIRCConfiguration::LIRCConfiguration (TQWidget *parent, LircSupport *dev)
m_order[k++] = LIRC_SEARCH_NEXT; m_order[k++] = LIRC_SEARCH_NEXT;
m_order[k++] = LIRC_SEARCH_PREV; m_order[k++] = LIRC_SEARCH_PREV;
m_order[k++] = LIRC_SLEEP; m_order[k++] = LIRC_SLEEP;
m_order[k++] = LIRC_APPLICATION_TQUIT; m_order[k++] = LIRC_APPLICATION_QUIT;
m_ActionList->setSorting(-1); m_ActionList->setSorting(-1);
m_ActionList->setColumnWidthMode(0, TQListView::Maximum); m_ActionList->setColumnWidthMode(0, TQListView::Maximum);

@ -238,7 +238,7 @@ void LircSupport::saveState (KConfig *c) const
c->writeEntry("LIRC_SEARCH_NEXT", m_Actions[LIRC_SEARCH_NEXT]); c->writeEntry("LIRC_SEARCH_NEXT", m_Actions[LIRC_SEARCH_NEXT]);
c->writeEntry("LIRC_SEARCH_PREV", m_Actions[LIRC_SEARCH_PREV]); c->writeEntry("LIRC_SEARCH_PREV", m_Actions[LIRC_SEARCH_PREV]);
c->writeEntry("LIRC_SLEEP", m_Actions[LIRC_SLEEP]); c->writeEntry("LIRC_SLEEP", m_Actions[LIRC_SLEEP]);
c->writeEntry("LIRC_APPLICATION_TQUIT", m_Actions[LIRC_APPLICATION_TQUIT]); c->writeEntry("LIRC_APPLICATION_QUIT", m_Actions[LIRC_APPLICATION_QUIT]);
c->writeEntry("ALT_LIRC_DIGIT_0", m_AlternativeActions[LIRC_DIGIT_0]); c->writeEntry("ALT_LIRC_DIGIT_0", m_AlternativeActions[LIRC_DIGIT_0]);
@ -263,7 +263,7 @@ void LircSupport::saveState (KConfig *c) const
c->writeEntry("ALT_LIRC_SEARCH_NEXT", m_AlternativeActions[LIRC_SEARCH_NEXT]); c->writeEntry("ALT_LIRC_SEARCH_NEXT", m_AlternativeActions[LIRC_SEARCH_NEXT]);
c->writeEntry("ALT_LIRC_SEARCH_PREV", m_AlternativeActions[LIRC_SEARCH_PREV]); c->writeEntry("ALT_LIRC_SEARCH_PREV", m_AlternativeActions[LIRC_SEARCH_PREV]);
c->writeEntry("ALT_LIRC_SLEEP", m_AlternativeActions[LIRC_SLEEP]); c->writeEntry("ALT_LIRC_SLEEP", m_AlternativeActions[LIRC_SLEEP]);
c->writeEntry("ALT_LIRC_APPLICATION_TQUIT", m_AlternativeActions[LIRC_APPLICATION_TQUIT]); c->writeEntry("ALT_LIRC_APPLICATION_QUIT", m_AlternativeActions[LIRC_APPLICATION_QUIT]);
} }
void LircSupport::restoreState (KConfig *c) void LircSupport::restoreState (KConfig *c)
@ -290,7 +290,7 @@ void LircSupport::restoreState (KConfig *c)
m_Actions[LIRC_SEARCH_NEXT] = c->readEntry("LIRC_SEARCH_NEXT", "SOURCE"); m_Actions[LIRC_SEARCH_NEXT] = c->readEntry("LIRC_SEARCH_NEXT", "SOURCE");
m_Actions[LIRC_SEARCH_PREV] = c->readEntry("LIRC_SEARCH_PREV", "MUTE"); m_Actions[LIRC_SEARCH_PREV] = c->readEntry("LIRC_SEARCH_PREV", "MUTE");
m_Actions[LIRC_SLEEP] = c->readEntry("LIRC_SLEEP", "MINIMIZE"); m_Actions[LIRC_SLEEP] = c->readEntry("LIRC_SLEEP", "MINIMIZE");
m_Actions[LIRC_APPLICATION_TQUIT] = c->readEntry("LIRC_APPLICATION_TQUIT", ""); m_Actions[LIRC_APPLICATION_QUIT] = c->readEntry("LIRC_APPLICATION_QUIT", "");
m_AlternativeActions[LIRC_DIGIT_0] = c->readEntry("ALT_LIRC_DIGIT_0", ""); m_AlternativeActions[LIRC_DIGIT_0] = c->readEntry("ALT_LIRC_DIGIT_0", "");
@ -315,7 +315,7 @@ void LircSupport::restoreState (KConfig *c)
m_AlternativeActions[LIRC_SEARCH_NEXT] = c->readEntry("ALT_LIRC_SEARCH_NEXT", ""); m_AlternativeActions[LIRC_SEARCH_NEXT] = c->readEntry("ALT_LIRC_SEARCH_NEXT", "");
m_AlternativeActions[LIRC_SEARCH_PREV] = c->readEntry("ALT_LIRC_SEARCH_PREV", ""); m_AlternativeActions[LIRC_SEARCH_PREV] = c->readEntry("ALT_LIRC_SEARCH_PREV", "");
m_AlternativeActions[LIRC_SLEEP] = c->readEntry("ALT_LIRC_SLEEP", ""); m_AlternativeActions[LIRC_SLEEP] = c->readEntry("ALT_LIRC_SLEEP", "");
m_AlternativeActions[LIRC_APPLICATION_TQUIT] = c->readEntry("ALT_LIRC_APPLICATION_TQUIT", ""); m_AlternativeActions[LIRC_APPLICATION_QUIT] = c->readEntry("ALT_LIRC_APPLICATION_QUIT", "");
emit sigUpdateConfig(); emit sigUpdateConfig();
} }
@ -519,7 +519,7 @@ bool LircSupport::checkActions(const TQString &lirc_string, int repeat_counter,
sendStartCountdown(); sendStartCountdown();
} }
break; break;
case LIRC_APPLICATION_TQUIT : case LIRC_APPLICATION_QUIT :
retval = true; retval = true;
kapp->quit(); kapp->quit();
break; break;

@ -53,7 +53,7 @@ enum LIRC_Actions {
LIRC_SEARCH_NEXT, LIRC_SEARCH_NEXT,
LIRC_SEARCH_PREV, LIRC_SEARCH_PREV,
LIRC_SLEEP, LIRC_SLEEP,
LIRC_APPLICATION_TQUIT LIRC_APPLICATION_QUIT
}; };

@ -125,12 +125,12 @@ SENDERS:
IF_SENDER ( sendPowerOff() ) IF_SENDER ( sendPowerOff() )
IF_SENDER ( sendActivateStation (const RadioStation &rs) ) IF_SENDER ( sendActivateStation (const RadioStation &rs) )
TQUERIES: QUERIES:
IF_TQUERY ( bool queryIsPowerOn() ) IF_QUERY ( bool queryIsPowerOn() )
IF_TQUERY ( bool queryIsPowerOff() ) IF_QUERY ( bool queryIsPowerOff() )
IF_TQUERY ( const RadioStation & queryCurrentStation() ) IF_QUERY ( const RadioStation & queryCurrentStation() )
IF_TQUERY ( const TQString & queryDescription() ) IF_QUERY ( const TQString & queryDescription() )
IF_TQUERY ( SoundStreamID queryCurrentSoundStreamID() ) IF_QUERY ( SoundStreamID queryCurrentSoundStreamID() )
RECEIVERS: RECEIVERS:
virtual bool noticePowerChanged (bool on, const IRadioDevice *sender = NULL); virtual bool noticePowerChanged (bool on, const IRadioDevice *sender = NULL);

@ -72,45 +72,45 @@ IF_IMPL_SENDER ( IRecCfgClient::sendRecordingConfig(const RecordingConfig &cf
setRecordingConfig(cfg) setRecordingConfig(cfg)
); );
IF_IMPL_TQUERY ( void IRecCfgClient::queryEncoderBuffer(size_t &BufferSize, size_t &BufferCount), IF_IMPL_QUERY ( void IRecCfgClient::queryEncoderBuffer(size_t &BufferSize, size_t &BufferCount),
getEncoderBuffer(BufferSize, BufferCount), getEncoderBuffer(BufferSize, BufferCount),
); );
static SoundFormat defaultSoundFormat; static SoundFormat defaultSoundFormat;
IF_IMPL_TQUERY ( const SoundFormat &IRecCfgClient::querySoundFormat (), IF_IMPL_QUERY ( const SoundFormat &IRecCfgClient::querySoundFormat (),
getSoundFormat(), getSoundFormat(),
defaultSoundFormat defaultSoundFormat
); );
IF_IMPL_TQUERY ( int IRecCfgClient::queryMP3Quality (), IF_IMPL_QUERY ( int IRecCfgClient::queryMP3Quality (),
getMP3Quality(), getMP3Quality(),
7 7
); );
IF_IMPL_TQUERY ( float IRecCfgClient::queryOggQuality (), IF_IMPL_QUERY ( float IRecCfgClient::queryOggQuality (),
getOggQuality(), getOggQuality(),
7 7
); );
static TQString defaultRecDir("/tmp"); static TQString defaultRecDir("/tmp");
IF_IMPL_TQUERY ( const TQString &IRecCfgClient::queryRecordingDirectory(), IF_IMPL_QUERY ( const TQString &IRecCfgClient::queryRecordingDirectory(),
getRecordingDirectory(), getRecordingDirectory(),
defaultRecDir defaultRecDir
); );
IF_IMPL_TQUERY ( RecordingConfig::OutputFormat IRecCfgClient::queryOutputFormat(), IF_IMPL_QUERY ( RecordingConfig::OutputFormat IRecCfgClient::queryOutputFormat(),
getOutputFormat(), getOutputFormat(),
RecordingConfig::outputWAV RecordingConfig::outputWAV
); );
IF_IMPL_TQUERY ( bool IRecCfgClient::queryPreRecording(int &seconds), IF_IMPL_QUERY ( bool IRecCfgClient::queryPreRecording(int &seconds),
getPreRecording(seconds), getPreRecording(seconds),
false false
); );
static RecordingConfig defaultRecConfig; static RecordingConfig defaultRecConfig;
IF_IMPL_TQUERY ( const RecordingConfig &IRecCfgClient::queryRecordingConfig(), IF_IMPL_QUERY ( const RecordingConfig &IRecCfgClient::queryRecordingConfig(),
getRecordingConfig(), getRecordingConfig(),
defaultRecConfig defaultRecConfig
); );

@ -84,15 +84,15 @@ RECEIVERS:
IF_RECEIVER( noticePreRecordingChanged (bool enable, int seconds) ) IF_RECEIVER( noticePreRecordingChanged (bool enable, int seconds) )
IF_RECEIVER( noticeRecordingConfigChanged (const RecordingConfig &cfg) ) IF_RECEIVER( noticeRecordingConfigChanged (const RecordingConfig &cfg) )
TQUERIES: QUERIES:
IF_TQUERY ( void queryEncoderBuffer(size_t &BufferSize, size_t &BufferCount) ) IF_QUERY ( void queryEncoderBuffer(size_t &BufferSize, size_t &BufferCount) )
IF_TQUERY ( const SoundFormat &querySoundFormat () ) IF_QUERY ( const SoundFormat &querySoundFormat () )
IF_TQUERY ( int queryMP3Quality () ) IF_QUERY ( int queryMP3Quality () )
IF_TQUERY ( float queryOggQuality () ) IF_QUERY ( float queryOggQuality () )
IF_TQUERY ( const TQString &queryRecordingDirectory() ) IF_QUERY ( const TQString &queryRecordingDirectory() )
IF_TQUERY ( RecordingConfig::OutputFormat queryOutputFormat() ) IF_QUERY ( RecordingConfig::OutputFormat queryOutputFormat() )
IF_TQUERY ( bool queryPreRecording(int &seconds) ) IF_QUERY ( bool queryPreRecording(int &seconds) )
IF_TQUERY ( const RecordingConfig &queryRecordingConfig() ) IF_QUERY ( const RecordingConfig &queryRecordingConfig() )
RECEIVERS: RECEIVERS:
virtual void noticeConnectedI (cmplInterface *, bool /*pointer_valid*/); virtual void noticeConnectedI (cmplInterface *, bool /*pointer_valid*/);

@ -391,7 +391,7 @@ struct v4l2_buffer
/* Flags for 'flags' field */ /* Flags for 'flags' field */
#define V4L2_BUF_FLAG_MAPPED 0x0001 /* Buffer is mapped (flag) */ #define V4L2_BUF_FLAG_MAPPED 0x0001 /* Buffer is mapped (flag) */
#define V4L2_BUF_FLAG_TQUEUED 0x0002 /* Buffer is queued for processing */ #define V4L2_BUF_FLAG_QUEUED 0x0002 /* Buffer is queued for processing */
#define V4L2_BUF_FLAG_DONE 0x0004 /* Buffer is ready */ #define V4L2_BUF_FLAG_DONE 0x0004 /* Buffer is ready */
#define V4L2_BUF_FLAG_KEYFRAME 0x0008 /* Image is a keyframe (I-frame) */ #define V4L2_BUF_FLAG_KEYFRAME 0x0008 /* Image is a keyframe (I-frame) */
#define V4L2_BUF_FLAG_PFRAME 0x0010 /* Image is a P-frame */ #define V4L2_BUF_FLAG_PFRAME 0x0010 /* Image is a P-frame */
@ -450,7 +450,7 @@ struct v4l2_captureparm
__u32 reserved[4]; __u32 reserved[4];
}; };
/* Flags for 'capability' and 'capturemode' fields */ /* Flags for 'capability' and 'capturemode' fields */
#define V4L2_MODE_HIGHTQUALITY 0x0001 /* High quality imaging mode */ #define V4L2_MODE_HIGHQUALITY 0x0001 /* High quality imaging mode */
#define V4L2_CAP_TIMEPERFRAME 0x1000 /* timeperframe field is supported */ #define V4L2_CAP_TIMEPERFRAME 0x1000 /* timeperframe field is supported */
struct v4l2_outputparm struct v4l2_outputparm
@ -623,7 +623,7 @@ struct v4l2_control
__s32 value; __s32 value;
}; };
/* Used in the VIDIOC_TQUERYCTRL ioctl for querying controls */ /* Used in the VIDIOC_QUERYCTRL ioctl for querying controls */
struct v4l2_queryctrl struct v4l2_queryctrl
{ {
__u32 id; __u32 id;
@ -637,7 +637,7 @@ struct v4l2_queryctrl
__u32 reserved[2]; __u32 reserved[2];
}; };
/* Used in the VIDIOC_TQUERYMENU ioctl for querying menu items */ /* Used in the VIDIOC_QUERYMENU ioctl for querying menu items */
struct v4l2_querymenu struct v4l2_querymenu
{ {
__u32 id; __u32 id;
@ -828,7 +828,7 @@ struct v4l2_streamparm
* I O C T L C O D E S F O R V I D E O D E V I C E S * I O C T L C O D E S F O R V I D E O D E V I C E S
* *
*/ */
#define VIDIOC_TQUERYCAP _IOR ('V', 0, struct v4l2_capability) #define VIDIOC_QUERYCAP _IOR ('V', 0, struct v4l2_capability)
#define VIDIOC_RESERVED _IO ('V', 1) #define VIDIOC_RESERVED _IO ('V', 1)
#define VIDIOC_ENUM_FMT _IOWR ('V', 2, struct v4l2_fmtdesc) #define VIDIOC_ENUM_FMT _IOWR ('V', 2, struct v4l2_fmtdesc)
#define VIDIOC_G_FMT _IOWR ('V', 4, struct v4l2_format) #define VIDIOC_G_FMT _IOWR ('V', 4, struct v4l2_format)
@ -838,7 +838,7 @@ struct v4l2_streamparm
#define VIDIOC_S_COMP _IOW ('V', 7, struct v4l2_compression) #define VIDIOC_S_COMP _IOW ('V', 7, struct v4l2_compression)
#endif #endif
#define VIDIOC_RETQBUFS _IOWR ('V', 8, struct v4l2_requestbuffers) #define VIDIOC_RETQBUFS _IOWR ('V', 8, struct v4l2_requestbuffers)
#define VIDIOC_TQUERYBUF _IOWR ('V', 9, struct v4l2_buffer) #define VIDIOC_QUERYBUF _IOWR ('V', 9, struct v4l2_buffer)
#define VIDIOC_G_FBUF _IOR ('V', 10, struct v4l2_framebuffer) #define VIDIOC_G_FBUF _IOR ('V', 10, struct v4l2_framebuffer)
#define VIDIOC_S_FBUF _IOW ('V', 11, struct v4l2_framebuffer) #define VIDIOC_S_FBUF _IOW ('V', 11, struct v4l2_framebuffer)
#define VIDIOC_OVERLAY _IOW ('V', 14, int) #define VIDIOC_OVERLAY _IOW ('V', 14, int)
@ -858,8 +858,8 @@ struct v4l2_streamparm
#define VIDIOC_S_TUNER _IOW ('V', 30, struct v4l2_tuner) #define VIDIOC_S_TUNER _IOW ('V', 30, struct v4l2_tuner)
#define VIDIOC_G_AUDIO _IOR ('V', 33, struct v4l2_audio) #define VIDIOC_G_AUDIO _IOR ('V', 33, struct v4l2_audio)
#define VIDIOC_S_AUDIO _IOW ('V', 34, struct v4l2_audio) #define VIDIOC_S_AUDIO _IOW ('V', 34, struct v4l2_audio)
#define VIDIOC_TQUERYCTRL _IOWR ('V', 36, struct v4l2_queryctrl) #define VIDIOC_QUERYCTRL _IOWR ('V', 36, struct v4l2_queryctrl)
#define VIDIOC_TQUERYMENU _IOWR ('V', 37, struct v4l2_querymenu) #define VIDIOC_QUERYMENU _IOWR ('V', 37, struct v4l2_querymenu)
#define VIDIOC_G_INPUT _IOR ('V', 38, int) #define VIDIOC_G_INPUT _IOR ('V', 38, int)
#define VIDIOC_S_INPUT _IOWR ('V', 39, int) #define VIDIOC_S_INPUT _IOWR ('V', 39, int)
#define VIDIOC_G_OUTPUT _IOR ('V', 46, int) #define VIDIOC_G_OUTPUT _IOR ('V', 46, int)
@ -876,7 +876,7 @@ struct v4l2_streamparm
#define VIDIOC_S_CROP _IOW ('V', 60, struct v4l2_crop) #define VIDIOC_S_CROP _IOW ('V', 60, struct v4l2_crop)
#define VIDIOC_G_JPEGCOMP _IOR ('V', 61, struct v4l2_jpegcompression) #define VIDIOC_G_JPEGCOMP _IOR ('V', 61, struct v4l2_jpegcompression)
#define VIDIOC_S_JPEGCOMP _IOW ('V', 62, struct v4l2_jpegcompression) #define VIDIOC_S_JPEGCOMP _IOW ('V', 62, struct v4l2_jpegcompression)
#define VIDIOC_TQUERYSTD _IOR ('V', 63, v4l2_std_id) #define VIDIOC_QUERYSTD _IOR ('V', 63, v4l2_std_id)
#define VIDIOC_TRY_FMT _IOWR ('V', 64, struct v4l2_format) #define VIDIOC_TRY_FMT _IOWR ('V', 64, struct v4l2_format)
#define VIDIOC_ENUMAUDIO _IOWR ('V', 65, struct v4l2_audio) #define VIDIOC_ENUMAUDIO _IOWR ('V', 65, struct v4l2_audio)
#define VIDIOC_ENUMAUDOUT _IOWR ('V', 66, struct v4l2_audioout) #define VIDIOC_ENUMAUDOUT _IOWR ('V', 66, struct v4l2_audioout)

@ -119,48 +119,48 @@ IF_IMPL_SENDER ( IV4LCfgClient::sendVolumeZeroOnPowerOff(bool a),
static TQString defaultRDev("/dev/radio"); static TQString defaultRDev("/dev/radio");
// static TQString defaultMDev("/dev/mixer"); // static TQString defaultMDev("/dev/mixer");
IF_IMPL_TQUERY ( const TQString &IV4LCfgClient::queryRadioDevice (), IF_IMPL_QUERY ( const TQString &IV4LCfgClient::queryRadioDevice (),
getRadioDevice(), getRadioDevice(),
defaultRDev defaultRDev
) )
IF_IMPL_TQUERY ( const TQString &IV4LCfgClient::queryPlaybackMixerID (), IF_IMPL_QUERY ( const TQString &IV4LCfgClient::queryPlaybackMixerID (),
getPlaybackMixerID(), getPlaybackMixerID(),
TQString() TQString()
) )
IF_IMPL_TQUERY ( const TQString &IV4LCfgClient::queryCaptureMixerID (), IF_IMPL_QUERY ( const TQString &IV4LCfgClient::queryCaptureMixerID (),
getCaptureMixerID(), getCaptureMixerID(),
TQString() TQString()
) )
static const TQString channel_line("Line"); static const TQString channel_line("Line");
IF_IMPL_TQUERY ( const TQString &IV4LCfgClient::queryPlaybackMixerChannel(), IF_IMPL_QUERY ( const TQString &IV4LCfgClient::queryPlaybackMixerChannel(),
getPlaybackMixerChannel(), getPlaybackMixerChannel(),
channel_line channel_line
) )
IF_IMPL_TQUERY ( const TQString &IV4LCfgClient::queryCaptureMixerChannel(), IF_IMPL_QUERY ( const TQString &IV4LCfgClient::queryCaptureMixerChannel(),
getCaptureMixerChannel(), getCaptureMixerChannel(),
channel_line channel_line
) )
IF_IMPL_TQUERY ( float IV4LCfgClient::queryDeviceVolume (), IF_IMPL_QUERY ( float IV4LCfgClient::queryDeviceVolume (),
getDeviceVolume(), getDeviceVolume(),
0.0 0.0
) )
IF_IMPL_TQUERY ( V4LCaps IV4LCfgClient::queryCapabilities(TQString dev), IF_IMPL_QUERY ( V4LCaps IV4LCfgClient::queryCapabilities(TQString dev),
getCapabilities(dev), getCapabilities(dev),
V4LCaps() V4LCaps()
) )
IF_IMPL_TQUERY ( bool IV4LCfgClient::queryActivePlayback(), IF_IMPL_QUERY ( bool IV4LCfgClient::queryActivePlayback(),
getActivePlayback(), getActivePlayback(),
false false
) )
IF_IMPL_TQUERY ( bool IV4LCfgClient::queryMuteOnPowerOff(), IF_IMPL_QUERY ( bool IV4LCfgClient::queryMuteOnPowerOff(),
getMuteOnPowerOff(), getMuteOnPowerOff(),
false false
) )
IF_IMPL_TQUERY ( bool IV4LCfgClient::queryVolumeZeroOnPowerOff(), IF_IMPL_QUERY ( bool IV4LCfgClient::queryVolumeZeroOnPowerOff(),
getVolumeZeroOnPowerOff(), getVolumeZeroOnPowerOff(),
false false
) )

@ -131,17 +131,17 @@ RECEIVERS:
IF_RECEIVER( noticeMuteOnPowerOffChanged(bool a) ) IF_RECEIVER( noticeMuteOnPowerOffChanged(bool a) )
IF_RECEIVER( noticeVolumeZeroOnPowerOffChanged(bool a) ) IF_RECEIVER( noticeVolumeZeroOnPowerOffChanged(bool a) )
TQUERIES: QUERIES:
IF_TQUERY ( const TQString &queryRadioDevice () ) IF_QUERY ( const TQString &queryRadioDevice () )
IF_TQUERY ( const TQString &queryPlaybackMixerID () ) IF_QUERY ( const TQString &queryPlaybackMixerID () )
IF_TQUERY ( const TQString &queryCaptureMixerID () ) IF_QUERY ( const TQString &queryCaptureMixerID () )
IF_TQUERY ( const TQString &queryPlaybackMixerChannel() ) IF_QUERY ( const TQString &queryPlaybackMixerChannel() )
IF_TQUERY ( const TQString &queryCaptureMixerChannel() ) IF_QUERY ( const TQString &queryCaptureMixerChannel() )
IF_TQUERY ( float queryDeviceVolume() ) IF_QUERY ( float queryDeviceVolume() )
IF_TQUERY ( V4LCaps queryCapabilities(TQString dev = TQString()) ) IF_QUERY ( V4LCaps queryCapabilities(TQString dev = TQString()) )
IF_TQUERY ( bool queryActivePlayback() ) IF_QUERY ( bool queryActivePlayback() )
IF_TQUERY ( bool queryMuteOnPowerOff() ) IF_QUERY ( bool queryMuteOnPowerOff() )
IF_TQUERY ( bool queryVolumeZeroOnPowerOff() ) IF_QUERY ( bool queryVolumeZeroOnPowerOff() )
RECEIVERS: RECEIVERS:
virtual void noticeConnectedI (cmplInterface *, bool /*pointer_valid*/); virtual void noticeConnectedI (cmplInterface *, bool /*pointer_valid*/);

@ -1226,7 +1226,7 @@ V4LCaps V4LRadio::readV4LCaps(const TQString &device) const
#ifdef HAVE_V4L2 #ifdef HAVE_V4L2
v4l2_capability caps2; v4l2_capability caps2;
r = ioctl(fd, VIDIOC_TQUERYCAP, &caps2); r = ioctl(fd, VIDIOC_QUERYCAP, &caps2);
if (r == 0) { if (r == 0) {
c.version = 2; c.version = 2;
@ -1247,13 +1247,13 @@ V4LCaps V4LRadio::readV4LCaps(const TQString &device) const
c.unsetBalance(); c.unsetBalance();
ctrl.id = V4L2_CID_AUDIO_MUTE; ctrl.id = V4L2_CID_AUDIO_MUTE;
if (0 == ioctl(fd, VIDIOC_TQUERYCTRL, &ctrl)) if (0 == ioctl(fd, VIDIOC_QUERYCTRL, &ctrl))
c.hasMute = !(ctrl.flags & V4L2_CTRL_FLAG_DISABLED); c.hasMute = !(ctrl.flags & V4L2_CTRL_FLAG_DISABLED);
else else
logError(i18n("V4L2: Querying mute control failed")); logError(i18n("V4L2: Querying mute control failed"));
ctrl.id = V4L2_CID_AUDIO_VOLUME; ctrl.id = V4L2_CID_AUDIO_VOLUME;
if (0 == ioctl(fd, VIDIOC_TQUERYCTRL, &ctrl)) { if (0 == ioctl(fd, VIDIOC_QUERYCTRL, &ctrl)) {
if (!(ctrl.flags & V4L2_CTRL_FLAG_DISABLED)) if (!(ctrl.flags & V4L2_CTRL_FLAG_DISABLED))
c.setVolume(ctrl.minimum, ctrl.maximum); c.setVolume(ctrl.minimum, ctrl.maximum);
} else { } else {
@ -1261,7 +1261,7 @@ V4LCaps V4LRadio::readV4LCaps(const TQString &device) const
} }
ctrl.id = V4L2_CID_AUDIO_TREBLE; ctrl.id = V4L2_CID_AUDIO_TREBLE;
if (0 == ioctl(fd, VIDIOC_TQUERYCTRL, &ctrl)) { if (0 == ioctl(fd, VIDIOC_QUERYCTRL, &ctrl)) {
if (!(ctrl.flags & V4L2_CTRL_FLAG_DISABLED)) if (!(ctrl.flags & V4L2_CTRL_FLAG_DISABLED))
c.setTreble(ctrl.minimum, ctrl.maximum); c.setTreble(ctrl.minimum, ctrl.maximum);
} else { } else {
@ -1269,7 +1269,7 @@ V4LCaps V4LRadio::readV4LCaps(const TQString &device) const
} }
ctrl.id = V4L2_CID_AUDIO_BASS; ctrl.id = V4L2_CID_AUDIO_BASS;
if (0 == ioctl(fd, VIDIOC_TQUERYCTRL, &ctrl)) { if (0 == ioctl(fd, VIDIOC_QUERYCTRL, &ctrl)) {
if (!(ctrl.flags & V4L2_CTRL_FLAG_DISABLED)) if (!(ctrl.flags & V4L2_CTRL_FLAG_DISABLED))
c.setBass(ctrl.minimum, c.maxBass = ctrl.maximum); c.setBass(ctrl.minimum, c.maxBass = ctrl.maximum);
} else { } else {
@ -1277,7 +1277,7 @@ V4LCaps V4LRadio::readV4LCaps(const TQString &device) const
} }
ctrl.id = V4L2_CID_AUDIO_BALANCE; ctrl.id = V4L2_CID_AUDIO_BALANCE;
if (0 == ioctl(fd, VIDIOC_TQUERYCTRL, &ctrl)) { if (0 == ioctl(fd, VIDIOC_QUERYCTRL, &ctrl)) {
if (!(ctrl.flags & V4L2_CTRL_FLAG_DISABLED)) if (!(ctrl.flags & V4L2_CTRL_FLAG_DISABLED))
c.setBalance(ctrl.minimum, ctrl.maximum); c.setBalance(ctrl.minimum, ctrl.maximum);
} else { } else {

@ -180,7 +180,7 @@
Abbreviation by macros: Abbreviation by macros:
IF_TQUERY( int QueryingQueries(int another_param) ) IF_QUERY( int QueryingQueries(int another_param) )
- answering queries - answering queries
@ -221,7 +221,7 @@
int ComplementaryInterface::QueryingQueries(int another_param) const int ComplementaryInterface::QueryingQueries(int another_param) const
{ {
IF_SEND_TQUERY( AnsweringQuery(another_param), (int)"default return value" ) IF_SEND_QUERY( AnsweringQuery(another_param), (int)"default return value" )
} }
@ -231,7 +231,7 @@
AnsweringQueries(param) AnsweringQueries(param)
) )
IF_IMPL_TQUERY( int ComplementaryInterface::SendingMessages(int param), IF_IMPL_QUERY( int ComplementaryInterface::SendingMessages(int param),
ReceivingMessages(param), ReceivingMessages(param),
(int)"default return value" (int)"default return value"
) )
@ -414,12 +414,12 @@ private:
#ifdef DEBUG #ifdef DEBUG
#include <iostream> #include <iostream>
using namespace std; using namespace std;
#define IF_TQUERY_DEBUG \ #define IF_QUERY_DEBUG \
if (iConnections.count() > 1) { \ if (iConnections.count() > 1) { \
kdDebug() << "class " << typeid(this).name() << ": using IF_TQUERY with #connections > 1\n"; \ kdDebug() << "class " << typeid(this).name() << ": using IF_QUERY with #connections > 1\n"; \
} }
#else #else
#define IF_TQUERY_DEBUG #define IF_QUERY_DEBUG
#endif #endif
@ -454,23 +454,23 @@ private:
// queries // queries
#define ANSWERS public #define ANSWERS public
#define TQUERIES protected #define QUERIES protected
#define IF_TQUERY(decl) \ #define IF_QUERY(decl) \
virtual decl const; virtual decl const;
#define IF_SEND_TQUERY(call, default) \ #define IF_SEND_QUERY(call, default) \
cmplInterface *o = IFIterator(iConnections).current(); \ cmplInterface *o = IFIterator(iConnections).current(); \
if (o) { \ if (o) { \
IF_TQUERY_DEBUG \ IF_QUERY_DEBUG \
return o->call; \ return o->call; \
} else { \ } else { \
return default; \ return default; \
} \ } \
#define IF_IMPL_TQUERY(decl, call, default) \ #define IF_IMPL_QUERY(decl, call, default) \
decl const { \ decl const { \
IF_SEND_TQUERY(call, default) \ IF_SEND_QUERY(call, default) \
} }
#define IF_ANSWER(decl) \ #define IF_ANSWER(decl) \

@ -96,16 +96,16 @@ RECEIVERS:
IF_RECEIVER( noticePresetFileChanged(const TQString &f) ) IF_RECEIVER( noticePresetFileChanged(const TQString &f) )
IF_RECEIVER( noticeCurrentSoundStreamIDChanged(SoundStreamID id)) IF_RECEIVER( noticeCurrentSoundStreamIDChanged(SoundStreamID id))
TQUERIES: QUERIES:
IF_TQUERY ( bool queryIsPowerOn() ) IF_QUERY ( bool queryIsPowerOn() )
IF_TQUERY ( bool queryIsPowerOff() ) IF_QUERY ( bool queryIsPowerOff() )
IF_TQUERY ( const RadioStation & queryCurrentStation() ) IF_QUERY ( const RadioStation & queryCurrentStation() )
IF_TQUERY ( int queryStationIdx(const RadioStation &rs) ) IF_QUERY ( int queryStationIdx(const RadioStation &rs) )
IF_TQUERY ( int queryCurrentStationIdx() ) IF_QUERY ( int queryCurrentStationIdx() )
IF_TQUERY ( const StationList & queryStations() ) IF_QUERY ( const StationList & queryStations() )
IF_TQUERY ( const TQString & queryPresetFile() ) IF_QUERY ( const TQString & queryPresetFile() )
IF_TQUERY ( SoundStreamID queryCurrentSoundStreamID() ); IF_QUERY ( SoundStreamID queryCurrentSoundStreamID() );
RECEIVERS: RECEIVERS:
virtual void noticeConnectedI (cmplInterface *, bool pointer_valid); virtual void noticeConnectedI (cmplInterface *, bool pointer_valid);

@ -86,13 +86,13 @@ RECEIVERS:
IF_RECEIVER( noticeDescriptionChanged (const TQString &, const IRadioDevice *sender = NULL) ) IF_RECEIVER( noticeDescriptionChanged (const TQString &, const IRadioDevice *sender = NULL) )
IF_RECEIVER( noticeCurrentSoundStreamIDChanged(SoundStreamID id, const IRadioDevice *sender = NULL)) IF_RECEIVER( noticeCurrentSoundStreamIDChanged(SoundStreamID id, const IRadioDevice *sender = NULL))
TQUERIES: QUERIES:
IF_TQUERY ( bool queryIsPowerOn() ) IF_QUERY ( bool queryIsPowerOn() )
IF_TQUERY ( bool queryIsPowerOff() ) IF_QUERY ( bool queryIsPowerOff() )
IF_TQUERY ( const RadioStation & queryCurrentStation() ) IF_QUERY ( const RadioStation & queryCurrentStation() )
IF_TQUERY ( const TQString & queryDescription() ) IF_QUERY ( const TQString & queryDescription() )
IF_TQUERY ( SoundStreamID queryCurrentSoundStreamID() ) IF_QUERY ( SoundStreamID queryCurrentSoundStreamID() )
RECEIVERS: RECEIVERS:
virtual void noticeConnectedI (cmplInterface *, bool pointer_valid); virtual void noticeConnectedI (cmplInterface *, bool pointer_valid);
@ -168,16 +168,16 @@ RECEIVERS:
IF_RECEIVER( noticeStereoChanged(bool s) ) IF_RECEIVER( noticeStereoChanged(bool s) )
IF_RECEIVER( noticeMuted(bool m) ) IF_RECEIVER( noticeMuted(bool m) )
TQUERIES: QUERIES:
IF_TQUERY ( float queryVolume() ) IF_QUERY ( float queryVolume() )
IF_TQUERY ( float queryTreble() ) IF_QUERY ( float queryTreble() )
IF_TQUERY ( float queryBass() ) IF_QUERY ( float queryBass() )
IF_TQUERY ( float queryBalance () ) IF_QUERY ( float queryBalance () )
IF_TQUERY ( float querySignalQuality() ) IF_QUERY ( float querySignalQuality() )
IF_TQUERY ( float querySignalMinQuality() ) IF_QUERY ( float querySignalMinQuality() )
IF_TQUERY ( bool queryHasGoodQuality() ) IF_QUERY ( bool queryHasGoodQuality() )
IF_TQUERY ( bool queryIsStereo() ) IF_QUERY ( bool queryIsStereo() )
IF_TQUERY ( bool queryIsMuted() ) IF_QUERY ( bool queryIsMuted() )
RECEIVERS: RECEIVERS:
virtual void noticeConnectedI (cmplInterface *, bool pointer_valid); virtual void noticeConnectedI (cmplInterface *, bool pointer_valid);
@ -234,11 +234,11 @@ RECEIVERS:
IF_RECEIVER( noticeSeekFinished (const RadioStation &s, bool goodQuality) ) IF_RECEIVER( noticeSeekFinished (const RadioStation &s, bool goodQuality) )
IF_RECEIVER( noticeProgress (float f) ) IF_RECEIVER( noticeProgress (float f) )
TQUERIES: QUERIES:
IF_TQUERY ( bool queryIsSeekRunning() ) IF_QUERY ( bool queryIsSeekRunning() )
IF_TQUERY ( bool queryIsSeekUpRunning() ) IF_QUERY ( bool queryIsSeekUpRunning() )
IF_TQUERY ( bool queryIsSeekDownRunning() ) IF_QUERY ( bool queryIsSeekDownRunning() )
IF_TQUERY ( float queryProgress () ) IF_QUERY ( float queryProgress () )
RECEIVERS: RECEIVERS:
virtual void noticeConnectedI (cmplInterface *, bool pointer_valid); virtual void noticeConnectedI (cmplInterface *, bool pointer_valid);
@ -293,13 +293,13 @@ RECEIVERS:
IF_RECEIVER( noticeDeviceMinMaxFrequencyChanged(float min, float max) ) IF_RECEIVER( noticeDeviceMinMaxFrequencyChanged(float min, float max) )
IF_RECEIVER( noticeScanStepChanged(float s) ) IF_RECEIVER( noticeScanStepChanged(float s) )
TQUERIES: QUERIES:
IF_TQUERY ( float queryFrequency() ) IF_QUERY ( float queryFrequency() )
IF_TQUERY ( float queryMinFrequency() ) IF_QUERY ( float queryMinFrequency() )
IF_TQUERY ( float queryMinDeviceFrequency() ) IF_QUERY ( float queryMinDeviceFrequency() )
IF_TQUERY ( float queryMaxFrequency() ) IF_QUERY ( float queryMaxFrequency() )
IF_TQUERY ( float queryMaxDeviceFrequency() ) IF_QUERY ( float queryMaxDeviceFrequency() )
IF_TQUERY ( float queryScanStep() ) IF_QUERY ( float queryScanStep() )
RECEIVERS: RECEIVERS:
virtual void noticeConnectedI (cmplInterface *, bool pointer_valid); virtual void noticeConnectedI (cmplInterface *, bool pointer_valid);
@ -339,8 +339,8 @@ SENDERS:
RECEIVERS: RECEIVERS:
IF_RECEIVER( noticeURLChanged(const KURL &url) ) IF_RECEIVER( noticeURLChanged(const KURL &url) )
TQUERIES: QUERIES:
IF_TQUERY ( const KURL &queryURL() ) IF_QUERY ( const KURL &queryURL() )
RECEIVERS: RECEIVERS:
virtual void noticeConnectedI (cmplInterface *, bool pointer_valid); virtual void noticeConnectedI (cmplInterface *, bool pointer_valid);

@ -61,10 +61,10 @@ RECEIVERS:
IF_RECEIVER( noticeDevicesChanged(const TQPtrList<IRadioDevice> &) ) IF_RECEIVER( noticeDevicesChanged(const TQPtrList<IRadioDevice> &) )
IF_RECEIVER( noticeDeviceDescriptionChanged(const TQString &) ) IF_RECEIVER( noticeDeviceDescriptionChanged(const TQString &) )
TQUERIES: QUERIES:
IF_TQUERY ( IRadioDevice *queryActiveDevice() ) IF_QUERY ( IRadioDevice *queryActiveDevice() )
IF_TQUERY ( const TQPtrList<IRadioDevice> &queryDevices() ) IF_QUERY ( const TQPtrList<IRadioDevice> &queryDevices() )
IF_TQUERY ( const TQString &queryDeviceDescription() ) IF_QUERY ( const TQString &queryDeviceDescription() )
RECEIVERS: RECEIVERS:
virtual void noticeConnectedI (cmplInterface *, bool /*pointer_valid*/); virtual void noticeConnectedI (cmplInterface *, bool /*pointer_valid*/);

@ -191,9 +191,9 @@ ANSWERS:
// device mixer functions // device mixer functions
TQUERIES: QUERIES:
IF_TQUERY ( TQPtrList<ISoundStreamClient> queryPlaybackMixers() ); IF_QUERY ( TQPtrList<ISoundStreamClient> queryPlaybackMixers() );
IF_TQUERY ( TQPtrList<ISoundStreamClient> queryCaptureMixers() ); IF_QUERY ( TQPtrList<ISoundStreamClient> queryCaptureMixers() );
ANSWERS: ANSWERS:

@ -54,8 +54,8 @@ SENDERS:
RECEIVERS: RECEIVERS:
IF_RECEIVER( noticeStationSelectionChanged(const TQStringList &sl) ) IF_RECEIVER( noticeStationSelectionChanged(const TQStringList &sl) )
TQUERIES: QUERIES:
IF_TQUERY ( const TQStringList & queryStationSelection () ) IF_QUERY ( const TQStringList & queryStationSelection () )
RECEIVERS: RECEIVERS:

@ -88,12 +88,12 @@ RECEIVERS:
IF_RECEIVER( noticeCountdownSecondsChanged(int n) ) IF_RECEIVER( noticeCountdownSecondsChanged(int n) )
TQUERIES: QUERIES:
IF_TQUERY ( TQDateTime queryNextAlarmTime() ) IF_QUERY ( TQDateTime queryNextAlarmTime() )
IF_TQUERY ( const Alarm* queryNextAlarm () ) IF_QUERY ( const Alarm* queryNextAlarm () )
IF_TQUERY ( const AlarmVector & queryAlarms () ) IF_QUERY ( const AlarmVector & queryAlarms () )
IF_TQUERY ( int queryCountdownSeconds () ) IF_QUERY ( int queryCountdownSeconds () )
IF_TQUERY ( TQDateTime queryCountdownEnd () ) IF_QUERY ( TQDateTime queryCountdownEnd () )
RECEIVERS: RECEIVERS:
virtual void noticeConnectedI (cmplInterface *, bool /*pointer_valid*/); virtual void noticeConnectedI (cmplInterface *, bool /*pointer_valid*/);

@ -47,36 +47,36 @@ IF_IMPL_SENDER ( IRadioClient::sendStations(const StationList &sl),
IF_IMPL_SENDER ( IRadioClient::sendPresetFile(const TQString &f), IF_IMPL_SENDER ( IRadioClient::sendPresetFile(const TQString &f),
setPresetFile(f) ); setPresetFile(f) );
IF_IMPL_TQUERY ( bool IRadioClient::queryIsPowerOn(), IF_IMPL_QUERY ( bool IRadioClient::queryIsPowerOn(),
isPowerOn(), isPowerOn(),
false ); false );
IF_IMPL_TQUERY ( bool IRadioClient::queryIsPowerOff(), IF_IMPL_QUERY ( bool IRadioClient::queryIsPowerOff(),
isPowerOff(), isPowerOff(),
true ); true );
IF_IMPL_TQUERY ( const RadioStation & IRadioClient::queryCurrentStation(), IF_IMPL_QUERY ( const RadioStation & IRadioClient::queryCurrentStation(),
getCurrentStation(), getCurrentStation(),
undefinedRadioStation ); undefinedRadioStation );
IF_IMPL_TQUERY ( int IRadioClient::queryCurrentStationIdx(), IF_IMPL_QUERY ( int IRadioClient::queryCurrentStationIdx(),
getCurrentStationIdx(), getCurrentStationIdx(),
-1 ); -1 );
IF_IMPL_TQUERY ( int IRadioClient::queryStationIdx(const RadioStation &rs), IF_IMPL_QUERY ( int IRadioClient::queryStationIdx(const RadioStation &rs),
getStationIdx(rs), getStationIdx(rs),
-1 ); -1 );
IF_IMPL_TQUERY ( const StationList & IRadioClient::queryStations(), IF_IMPL_QUERY ( const StationList & IRadioClient::queryStations(),
getStations(), getStations(),
emptyStationList ); emptyStationList );
static TQString emptyString; static TQString emptyString;
IF_IMPL_TQUERY ( const TQString & IRadioClient::queryPresetFile(), IF_IMPL_QUERY ( const TQString & IRadioClient::queryPresetFile(),
getPresetFile(), getPresetFile(),
emptyString ); emptyString );
IF_IMPL_TQUERY ( SoundStreamID IRadioClient::queryCurrentSoundStreamID(), IF_IMPL_QUERY ( SoundStreamID IRadioClient::queryCurrentSoundStreamID(),
getCurrentSoundStreamID(), getCurrentSoundStreamID(),
SoundStreamID::InvalidID ); SoundStreamID::InvalidID );

@ -43,22 +43,22 @@ IF_IMPL_SENDER ( IRadioDeviceClient::sendPowerOff(),
IF_IMPL_SENDER ( IRadioDeviceClient::sendActivateStation(const RadioStation &rs), IF_IMPL_SENDER ( IRadioDeviceClient::sendActivateStation(const RadioStation &rs),
activateStation(rs) ); activateStation(rs) );
IF_IMPL_TQUERY ( bool IRadioDeviceClient::queryIsPowerOn(), IF_IMPL_QUERY ( bool IRadioDeviceClient::queryIsPowerOn(),
isPowerOn(), isPowerOn(),
false ); false );
IF_IMPL_TQUERY ( bool IRadioDeviceClient::queryIsPowerOff(), IF_IMPL_QUERY ( bool IRadioDeviceClient::queryIsPowerOff(),
isPowerOff(), isPowerOff(),
true ); true );
IF_IMPL_TQUERY ( const RadioStation & IRadioDeviceClient::queryCurrentStation(), IF_IMPL_QUERY ( const RadioStation & IRadioDeviceClient::queryCurrentStation(),
getCurrentStation(), getCurrentStation(),
undefinedRadioStation ); undefinedRadioStation );
static TQString IRadioDeviceClient_unknown("unknown"); static TQString IRadioDeviceClient_unknown("unknown");
IF_IMPL_TQUERY ( const TQString & IRadioDeviceClient::queryDescription(), IF_IMPL_QUERY ( const TQString & IRadioDeviceClient::queryDescription(),
getDescription(), getDescription(),
IRadioDeviceClient_unknown ); IRadioDeviceClient_unknown );
IF_IMPL_TQUERY ( SoundStreamID IRadioDeviceClient::queryCurrentSoundStreamID(), IF_IMPL_QUERY ( SoundStreamID IRadioDeviceClient::queryCurrentSoundStreamID(),
getCurrentSoundStreamID(), getCurrentSoundStreamID(),
SoundStreamID::InvalidID ); SoundStreamID::InvalidID );
@ -120,31 +120,31 @@ IF_IMPL_SENDER ( IRadioSoundClient::sendSignalMinQuality (float q),
IF_IMPL_SENDER ( IRadioSoundClient::sendStereo(bool s), IF_IMPL_SENDER ( IRadioSoundClient::sendStereo(bool s),
setStereo(s) ) setStereo(s) )
IF_IMPL_TQUERY ( float IRadioSoundClient::queryVolume(), IF_IMPL_QUERY ( float IRadioSoundClient::queryVolume(),
getVolume(), getVolume(),
0.0 ) 0.0 )
IF_IMPL_TQUERY ( float IRadioSoundClient::queryTreble(), IF_IMPL_QUERY ( float IRadioSoundClient::queryTreble(),
getTreble(), getTreble(),
0.0 ) 0.0 )
IF_IMPL_TQUERY ( float IRadioSoundClient::queryBass(), IF_IMPL_QUERY ( float IRadioSoundClient::queryBass(),
getBass(), getBass(),
0.0 ) 0.0 )
IF_IMPL_TQUERY ( float IRadioSoundClient::queryBalance(), IF_IMPL_QUERY ( float IRadioSoundClient::queryBalance(),
getBalance(), getBalance(),
0.0 ) 0.0 )
IF_IMPL_TQUERY ( float IRadioSoundClient::querySignalQuality(), IF_IMPL_QUERY ( float IRadioSoundClient::querySignalQuality(),
getSignalQuality(), getSignalQuality(),
0.0 ) 0.0 )
IF_IMPL_TQUERY ( float IRadioSoundClient::querySignalMinQuality(), IF_IMPL_QUERY ( float IRadioSoundClient::querySignalMinQuality(),
getSignalMinQuality(), getSignalMinQuality(),
0.75 ) 0.75 )
IF_IMPL_TQUERY ( bool IRadioSoundClient::queryHasGoodQuality(), IF_IMPL_QUERY ( bool IRadioSoundClient::queryHasGoodQuality(),
hasGoodQuality(), hasGoodQuality(),
false ) false )
IF_IMPL_TQUERY ( bool IRadioSoundClient::queryIsStereo(), IF_IMPL_QUERY ( bool IRadioSoundClient::queryIsStereo(),
isStereo(), isStereo(),
false ) false )
IF_IMPL_TQUERY ( bool IRadioSoundClient::queryIsMuted(), IF_IMPL_QUERY ( bool IRadioSoundClient::queryIsMuted(),
isMuted(), isMuted(),
true ) true )
@ -207,16 +207,16 @@ IF_IMPL_SENDER ( ISeekRadioClient::sendStartSeekDown(),
IF_IMPL_SENDER ( ISeekRadioClient::sendStopSeek(), IF_IMPL_SENDER ( ISeekRadioClient::sendStopSeek(),
stopSeek() ); stopSeek() );
IF_IMPL_TQUERY ( bool ISeekRadioClient::queryIsSeekRunning(), IF_IMPL_QUERY ( bool ISeekRadioClient::queryIsSeekRunning(),
isSeekRunning(), isSeekRunning(),
false ); false );
IF_IMPL_TQUERY ( bool ISeekRadioClient::queryIsSeekUpRunning(), IF_IMPL_QUERY ( bool ISeekRadioClient::queryIsSeekUpRunning(),
isSeekUpRunning(), isSeekUpRunning(),
false ); false );
IF_IMPL_TQUERY ( bool ISeekRadioClient::queryIsSeekDownRunning(), IF_IMPL_QUERY ( bool ISeekRadioClient::queryIsSeekDownRunning(),
isSeekDownRunning(), isSeekDownRunning(),
false ); false );
IF_IMPL_TQUERY ( float ISeekRadioClient::queryProgress(), IF_IMPL_QUERY ( float ISeekRadioClient::queryProgress(),
getProgress(), getProgress(),
1.0 ); 1.0 );
@ -261,22 +261,22 @@ IF_IMPL_SENDER ( IFrequencyRadioClient::sendMaxFrequency(float mf),
IF_IMPL_SENDER ( IFrequencyRadioClient::sendScanStep(float s), IF_IMPL_SENDER ( IFrequencyRadioClient::sendScanStep(float s),
setScanStep(s) ) setScanStep(s) )
IF_IMPL_TQUERY ( float IFrequencyRadioClient::queryFrequency(), IF_IMPL_QUERY ( float IFrequencyRadioClient::queryFrequency(),
getFrequency(), getFrequency(),
0 ) 0 )
IF_IMPL_TQUERY ( float IFrequencyRadioClient::queryMinFrequency(), IF_IMPL_QUERY ( float IFrequencyRadioClient::queryMinFrequency(),
getMinFrequency(), getMinFrequency(),
0 ) 0 )
IF_IMPL_TQUERY ( float IFrequencyRadioClient::queryMinDeviceFrequency(), IF_IMPL_QUERY ( float IFrequencyRadioClient::queryMinDeviceFrequency(),
getMinDeviceFrequency(), getMinDeviceFrequency(),
0 ) 0 )
IF_IMPL_TQUERY ( float IFrequencyRadioClient::queryMaxFrequency(), IF_IMPL_QUERY ( float IFrequencyRadioClient::queryMaxFrequency(),
getMaxFrequency(), getMaxFrequency(),
0 ) 0 )
IF_IMPL_TQUERY ( float IFrequencyRadioClient::queryMaxDeviceFrequency(), IF_IMPL_QUERY ( float IFrequencyRadioClient::queryMaxDeviceFrequency(),
getMaxDeviceFrequency(), getMaxDeviceFrequency(),
0 ) 0 )
IF_IMPL_TQUERY ( float IFrequencyRadioClient::queryScanStep(), IF_IMPL_QUERY ( float IFrequencyRadioClient::queryScanStep(),
getScanStep(), getScanStep(),
0.05 ) 0.05 )
@ -312,7 +312,7 @@ IF_IMPL_SENDER ( IInternetRadioClient::sendURL(const KURL &url),
static KURL emptyURL; static KURL emptyURL;
IF_IMPL_TQUERY ( const KURL &IInternetRadioClient::queryURL(), IF_IMPL_QUERY ( const KURL &IInternetRadioClient::queryURL(),
getURL(), getURL(),
emptyURL ) emptyURL )

@ -33,17 +33,17 @@ IF_IMPL_SENDER ( IRadioDevicePool::notifyDeviceDescriptionChanged(const TQStri
IF_IMPL_SENDER ( IRadioDevicePoolClient::sendActiveDevice(IRadioDevice *rd, bool keepPower ), IF_IMPL_SENDER ( IRadioDevicePoolClient::sendActiveDevice(IRadioDevice *rd, bool keepPower ),
setActiveDevice(rd, keepPower) ) setActiveDevice(rd, keepPower) )
IF_IMPL_TQUERY ( IRadioDevice *IRadioDevicePoolClient::queryActiveDevice(), IF_IMPL_QUERY ( IRadioDevice *IRadioDevicePoolClient::queryActiveDevice(),
getActiveDevice(), getActiveDevice(),
NULL ) NULL )
static const TQPtrList<IRadioDevice> IRadioDevicePoolClient_emptyList; static const TQPtrList<IRadioDevice> IRadioDevicePoolClient_emptyList;
IF_IMPL_TQUERY ( const TQPtrList<IRadioDevice> &IRadioDevicePoolClient::queryDevices(), IF_IMPL_QUERY ( const TQPtrList<IRadioDevice> &IRadioDevicePoolClient::queryDevices(),
getDevices(), getDevices(),
IRadioDevicePoolClient_emptyList ) IRadioDevicePoolClient_emptyList )
static TQString IRadioDevicePoolClient_unknown("unknown"); static TQString IRadioDevicePoolClient_unknown("unknown");
IF_IMPL_TQUERY ( const TQString &IRadioDevicePoolClient::queryDeviceDescription(), IF_IMPL_QUERY ( const TQString &IRadioDevicePoolClient::queryDeviceDescription(),
getDeviceDescription(), getDeviceDescription(),
IRadioDevicePoolClient_unknown ) IRadioDevicePoolClient_unknown )

@ -417,10 +417,10 @@ void ISoundStreamClient::noticeDisconnectedSoundClient(thisInterface */*i*/, boo
} }
static const TQPtrList<ISoundStreamClient> emptyClientList; static const TQPtrList<ISoundStreamClient> emptyClientList;
IF_IMPL_TQUERY ( TQPtrList<ISoundStreamClient> ISoundStreamClient::queryPlaybackMixers(), IF_IMPL_QUERY ( TQPtrList<ISoundStreamClient> ISoundStreamClient::queryPlaybackMixers(),
getPlaybackMixers(), getPlaybackMixers(),
emptyClientList ); emptyClientList );
IF_IMPL_TQUERY ( TQPtrList<ISoundStreamClient> ISoundStreamClient::queryCaptureMixers(), IF_IMPL_QUERY ( TQPtrList<ISoundStreamClient> ISoundStreamClient::queryCaptureMixers(),
getPlaybackMixers(), getPlaybackMixers(),
emptyClientList ); emptyClientList );

@ -28,7 +28,7 @@ IF_IMPL_SENDER ( IStationSelectionClient::sendStationSelection(const TQString
static TQStringList IStationSelectionClient_emptyList; static TQStringList IStationSelectionClient_emptyList;
IF_IMPL_TQUERY ( const TQStringList & IStationSelectionClient::queryStationSelection(), IF_IMPL_QUERY ( const TQStringList & IStationSelectionClient::queryStationSelection(),
getStationSelection(), getStationSelection(),
IStationSelectionClient_emptyList IStationSelectionClient_emptyList
) )

@ -57,23 +57,23 @@ IF_IMPL_SENDER ( ITimeControlClient::sendStopCountdown(),
stopCountdown() ) stopCountdown() )
IF_IMPL_TQUERY ( TQDateTime ITimeControlClient::queryNextAlarmTime (), IF_IMPL_QUERY ( TQDateTime ITimeControlClient::queryNextAlarmTime (),
getNextAlarmTime(), getNextAlarmTime(),
TQDateTime() ) TQDateTime() )
IF_IMPL_TQUERY ( const Alarm * ITimeControlClient::queryNextAlarm (), IF_IMPL_QUERY ( const Alarm * ITimeControlClient::queryNextAlarm (),
getNextAlarm(), getNextAlarm(),
NULL ) NULL )
IF_IMPL_TQUERY ( const AlarmVector &ITimeControlClient::queryAlarms (), IF_IMPL_QUERY ( const AlarmVector &ITimeControlClient::queryAlarms (),
getAlarms(), getAlarms(),
emptyAlarms ) emptyAlarms )
IF_IMPL_TQUERY ( int ITimeControlClient::queryCountdownSeconds (), IF_IMPL_QUERY ( int ITimeControlClient::queryCountdownSeconds (),
getCountdownSeconds(), getCountdownSeconds(),
30*60 ) 30*60 )
IF_IMPL_TQUERY ( TQDateTime ITimeControlClient::queryCountdownEnd (), IF_IMPL_QUERY ( TQDateTime ITimeControlClient::queryCountdownEnd (),
getCountdownEnd(), getCountdownEnd(),
TQDateTime() ) TQDateTime() )

Loading…
Cancel
Save