\section{DNSSD::Query Class Reference}
\label{classDNSSD_1_1Query}\index{DNSSD::Query@{DNSSD::Query}}
This class provides way to search for specified service type in one domain. Class that represents service query in one domain.  


{\tt \#include $<$query.h$>$}

Inheritance diagram for DNSSD::Query:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=60pt]{classDNSSD_1_1Query__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for DNSSD::Query:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=60pt]{classDNSSD_1_1Query__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf service\-Added} (DNSSD::Remote\-Service::Ptr)
\item 
void {\bf service\-Removed} (DNSSD::Remote\-Service::Ptr)
\item 
void {\bf finished} ()
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Query} (const {\bf QString} \&type, const {\bf QString} \&domain)
\item 
virtual void {\bf start\-Query} ()
\item 
bool {\bf is\-Running} () const 
\item 
bool {\bf is\-Finished} () const 
\item 
const {\bf QString} \& {\bf domain} () const 
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf virtual\_\-hook} (int, void $\ast$)\label{classDNSSD_1_1Query_b0}

\item 
virtual void {\bf custom\-Event} ({\bf QCustom\-Event} $\ast${\bf event})\label{classDNSSD_1_1Query_b1}

\end{CompactItemize}


\subsection{Detailed Description}
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.

\begin{Desc}
\item[Author:]Jakub Stachowski \end{Desc}




Definition at line 39 of file query.h.

\subsection{Constructor \& Destructor Documentation}
\index{DNSSD::Query@{DNSSD::Query}!Query@{Query}}
\index{Query@{Query}!DNSSD::Query@{DNSSD::Query}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}DNSSD::Query::Query (const {\bf QString} \& {\em type}, const {\bf QString} \& {\em domain})}\label{classDNSSD_1_1Query_a0}


Creates new query. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em type}]Type of services to browse for \item[{\em domain}]Domain name - if set to \char`\"{}local.\char`\"{} multicast query will be performed, otherwise unicast\end{description}
\end{Desc}


Definition at line 49 of file query.cpp.

References QObject::connect(), and domain().

\subsection{Member Function Documentation}
\index{DNSSD::Query@{DNSSD::Query}!startQuery@{startQuery}}
\index{startQuery@{startQuery}!DNSSD::Query@{DNSSD::Query}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void DNSSD::Query::start\-Query ()\hspace{0.3cm}{\tt  [virtual]}}\label{classDNSSD_1_1Query_a2}


Starts query. 

Ignored if query is already running

Definition at line 76 of file query.cpp.

References finished().

Referenced by DNSSD::Service\-Browser::add\-Domain(), and DNSSD::Domain\-Browser::start\-Browse().\index{DNSSD::Query@{DNSSD::Query}!isRunning@{isRunning}}
\index{isRunning@{isRunning}!DNSSD::Query@{DNSSD::Query}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool DNSSD::Query::is\-Running () const}\label{classDNSSD_1_1Query_a3}


Returns TRUE if query is already running. 



Definition at line 61 of file query.cpp.\index{DNSSD::Query@{DNSSD::Query}!isFinished@{isFinished}}
\index{isFinished@{isFinished}!DNSSD::Query@{DNSSD::Query}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool DNSSD::Query::is\-Finished () const}\label{classDNSSD_1_1Query_a4}


Returns TRUE if all currently announced services has been reported. 

It does not mean that no more services can be found later and it is not related to {\bf is\-Running()}{\rm (p.\,\pageref{classDNSSD_1_1Query_a3})}

Definition at line 66 of file query.cpp.\index{DNSSD::Query@{DNSSD::Query}!domain@{domain}}
\index{domain@{domain}!DNSSD::Query@{DNSSD::Query}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf QString} \& DNSSD::Query::domain () const}\label{classDNSSD_1_1Query_a5}


Returns queried domain. 



Definition at line 71 of file query.cpp.

Referenced by Query().\index{DNSSD::Query@{DNSSD::Query}!serviceAdded@{serviceAdded}}
\index{serviceAdded@{serviceAdded}!DNSSD::Query@{DNSSD::Query}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void DNSSD::Query::service\-Added (DNSSD::Remote\-Service::Ptr)\hspace{0.3cm}{\tt  [signal]}}\label{classDNSSD_1_1Query_l0}


Emitted when new service has been discovered. 

\index{DNSSD::Query@{DNSSD::Query}!serviceRemoved@{serviceRemoved}}
\index{serviceRemoved@{serviceRemoved}!DNSSD::Query@{DNSSD::Query}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void DNSSD::Query::service\-Removed (DNSSD::Remote\-Service::Ptr)\hspace{0.3cm}{\tt  [signal]}}\label{classDNSSD_1_1Query_l1}


Emitted when previously discovered service is not longer published. 

\index{DNSSD::Query@{DNSSD::Query}!finished@{finished}}
\index{finished@{finished}!DNSSD::Query@{DNSSD::Query}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void DNSSD::Query::finished ()\hspace{0.3cm}{\tt  [signal]}}\label{classDNSSD_1_1Query_l2}


Emitted when all announced services has been reported. 



Referenced by start\-Query().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
query.h\item 
query.cpp\end{CompactItemize}
