.TH "DNSSD::RemoteService" kde3 "11 Jun 2005" "Version Version 3.4.1" "dnssd Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
DNSSD::RemoteService \- \fBRemoteService\fP class allows to resolve service announced on remote machine. class representing service announced on remote machine.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <remoteservice.h>\fP
.PP
Inherits \fBQObject\fP, and \fBDNSSD::ServiceBase\fP.
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "typedef KSharedPtr< \fBRemoteService\fP > \fBPtr\fP"
.br
.in -1c
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBresolved\fP (bool)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBRemoteService\fP (const \fBQString\fP &label)"
.br
.ti -1c
.RI "\fBRemoteService\fP (const \fBQString\fP &\fBname\fP, const \fBQString\fP &type, const \fBQString\fP &domain)"
.br
.ti -1c
.RI "void \fBresolveAsync\fP ()"
.br
.ti -1c
.RI "bool \fBresolve\fP ()"
.br
.ti -1c
.RI "bool \fBisResolved\fP () const "
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.ti -1c
.RI "virtual void \fBcustomEvent\fP (\fBQCustomEvent\fP *\fBevent\fP)"
.br
.in -1c
.SS "Friends"

.in +1c
.ti -1c
.RI "KDNSSD_EXPORT \fBQDataStream\fP & \fBoperator<<\fP (\fBQDataStream\fP &s, const \fBRemoteService\fP &a)"
.br
.ti -1c
.RI "KDNSSD_EXPORT \fBQDataStream\fP & \fBoperator>>\fP (\fBQDataStream\fP &s, \fBRemoteService\fP &a)"
.br
.in -1c
.SH "Detailed Description"
.PP 
\fBRemoteService\fP class allows to resolve service announced on remote machine. class representing service announced on remote machine. 

In most cases objects of this class are created by \fBServiceBrowser\fP, but it is not required. Only fields valid before service is resolved are name, type.and domain.
.PP
\fBAuthor:\fP
.RS 4
Jakub Stachowski 
.RE
.PP

.PP
Definition at line 41 of file remoteservice.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "DNSSD::RemoteService::RemoteService (const \fBQString\fP & label)"
.PP
Creates unresolved service from given DNS label. 
.PP
\fBParameters:\fP
.RS 4
\fIlabel\fP Data returned by PTR query - it is decoded into name, type and domain
.RE
.PP

.PP
Definition at line 58 of file remoteservice.cpp.
.PP
References DNSSD::ServiceBase::decode().
.SS "DNSSD::RemoteService::RemoteService (const \fBQString\fP & name, const \fBQString\fP & type, const \fBQString\fP & domain)"
.PP
Creates unresolved remote service with given name, type and domain. 
.PP

.PP
Definition at line 63 of file remoteservice.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void DNSSD::RemoteService::resolveAsync ()"
.PP
Resolves host name and port of service. 
.PP
Host name is not resolved into numeric address - use KResolver for that. Signal \fBresolved(bool)\fP will be emitted when finished or even before return of this function - in case of immediate failure.
.PP
Definition at line 82 of file remoteservice.cpp.
.PP
References QString::ascii(), resolved(), and QString::utf8().
.PP
Referenced by resolve().
.SS "bool DNSSD::RemoteService::resolve ()"
.PP
Synchronous version of \fBresolveAsync()\fP. 
.PP
Note that \fBresolved(bool)\fP is emitted before this function returns, 
.PP
\fBReturns:\fP
.RS 4
TRUE is successful
.RE
.PP

.PP
Definition at line 74 of file remoteservice.cpp.
.PP
References resolveAsync().
.SS "bool DNSSD::RemoteService::isResolved () const"
.PP
Returns true if service has been successfully resolved. 
.PP
Definition at line 96 of file remoteservice.cpp.
.SS "void DNSSD::RemoteService::resolved (bool)\fC [signal]\fP"
.PP
Emitted when resolving is complete. 
.PP
Parameter is set to TRUE if it was successful. If operating in asynchronous mode this signal can be emitted several times (when service change)
.PP
Referenced by resolveAsync().

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