|
|
|
@ -98,18 +98,18 @@ void AvahiWatch::setWatchedEvents(AvahiWatchEvent event)
|
|
|
|
|
if (!(event & AVAHI_WATCH_OUT)) { delete m_out; m_out=0; }
|
|
|
|
|
if (event & AVAHI_WATCH_IN) {
|
|
|
|
|
m_in = new TQSocketNotifier(m_fd,TQSocketNotifier::Read, this);
|
|
|
|
|
connect(m_in,TQT_SIGNAL(activated(int)),TQT_SLOT(gotIn()));
|
|
|
|
|
connect(m_in,TQ_SIGNAL(activated(int)),TQ_SLOT(gotIn()));
|
|
|
|
|
}
|
|
|
|
|
if (event & AVAHI_WATCH_OUT) {
|
|
|
|
|
m_out = new TQSocketNotifier(m_fd,TQSocketNotifier::Write, this);
|
|
|
|
|
connect(m_out,TQT_SIGNAL(activated(int)),TQT_SLOT(gotOut()));
|
|
|
|
|
connect(m_out,TQ_SIGNAL(activated(int)),TQ_SLOT(gotOut()));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
AvahiTimeout::AvahiTimeout(const struct timeval* tv, AvahiTimeoutCallback callback, void *userdata) :
|
|
|
|
|
m_callback(callback), m_userdata(userdata)
|
|
|
|
|
{
|
|
|
|
|
connect(&m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeout()));
|
|
|
|
|
connect(&m_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(timeout()));
|
|
|
|
|
update(tv);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|