.TH "DNSSD::Query" kde3 "11 Jun 2005" "Version Version 3.4.1" "dnssd Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
DNSSD::Query \- This class provides way to search for specified service type in one domain. Class that represents service query in one domain.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <query.h>\fP
.PP
Inherits \fBQObject\fP.
.PP
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBserviceAdded\fP (DNSSD::RemoteService::Ptr)"
.br
.ti -1c
.RI "void \fBserviceRemoved\fP (DNSSD::RemoteService::Ptr)"
.br
.ti -1c
.RI "void \fBfinished\fP ()"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBQuery\fP (const \fBQString\fP &type, const \fBQString\fP &domain)"
.br
.ti -1c
.RI "virtual void \fBstartQuery\fP ()"
.br
.ti -1c
.RI "bool \fBisRunning\fP () const "
.br
.ti -1c
.RI "bool \fBisFinished\fP () const "
.br
.ti -1c
.RI "const \fBQString\fP & \fBdomain\fP () const "
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int, void *)"
.br
.ti -1c
.RI "virtual void \fBcustomEvent\fP (\fBQCustomEvent\fP *\fBevent\fP)"
.br
.in -1c
.SH "Detailed Description"
.PP 
This class provides way to search for specified service type in one domain. Class that represents service query in one domain. 

Depending on domain name, either multicast or unicast DNS will be used.
.PP
\fBAuthor:\fP
.RS 4
Jakub Stachowski 
.RE
.PP

.PP
Definition at line 39 of file query.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "DNSSD::Query::Query (const \fBQString\fP & type, const \fBQString\fP & domain)"
.PP
Creates new query. 
.PP
\fBParameters:\fP
.RS 4
\fItype\fP Type of services to browse for 
.br
\fIdomain\fP Domain name - if set to 'local.' multicast query will be performed, otherwise unicast
.RE
.PP

.PP
Definition at line 49 of file query.cpp.
.PP
References QObject::connect(), and domain().
.SH "Member Function Documentation"
.PP 
.SS "void DNSSD::Query::startQuery ()\fC [virtual]\fP"
.PP
Starts query. 
.PP
Ignored if query is already running
.PP
Definition at line 76 of file query.cpp.
.PP
References finished().
.PP
Referenced by DNSSD::ServiceBrowser::addDomain(), and DNSSD::DomainBrowser::startBrowse().
.SS "bool DNSSD::Query::isRunning () const"
.PP
Returns TRUE if query is already running. 
.PP
Definition at line 61 of file query.cpp.
.SS "bool DNSSD::Query::isFinished () const"
.PP
Returns TRUE if all currently announced services has been reported. 
.PP
It does not mean that no more services can be found later and it is not related to \fBisRunning()\fP
.PP
Definition at line 66 of file query.cpp.
.SS "const \fBQString\fP & DNSSD::Query::domain () const"
.PP
Returns queried domain. 
.PP
Definition at line 71 of file query.cpp.
.PP
Referenced by Query().
.SS "void DNSSD::Query::serviceAdded (DNSSD::RemoteService::Ptr)\fC [signal]\fP"
.PP
Emitted when new service has been discovered. 
.PP
.SS "void DNSSD::Query::serviceRemoved (DNSSD::RemoteService::Ptr)\fC [signal]\fP"
.PP
Emitted when previously discovered service is not longer published. 
.PP
.SS "void DNSSD::Query::finished ()\fC [signal]\fP"
.PP
Emitted when all announced services has been reported. 
.PP

.PP
Referenced by startQuery().

.SH "Author"
.PP 
Generated automatically by Doxygen for dnssd Library from the source code.
