RemoteService Class Reference
from PyKDE4.dnssd import *
Inherits: QObject,DNSSD.ServiceBase
Namespace: DNSSD
Detailed Description
\class RemoteService remoteservice.h DNSSD/RemoteService
RemoteService class allows to resolve service announced on remote machine. In most cases objects of this class are created by ServiceBrowser, but it is not required. Only fields valid before service is resolved are name, type.and domain.
class representing service announced on remote machine.
Signals | |
resolved (bool a0) | |
Methods | |
__init__ (self, QString name, QString type, QString domain) | |
bool | isResolved (self) |
bool | resolve (self) |
resolveAsync (self) | |
resolved (self, bool a0) | |
virtual_hook (self, int id, void data) |
Method Documentation
Creates unresolved remote service with given name, type and domain.
bool isResolved | ( | self ) |
Returns true if service has been successfully resolved
bool resolve | ( | self ) |
Synchronous version of resolveAsync(). Note that resolved(bool) is emitted before this function returns,
- Returns:
- true is successful
resolveAsync | ( | self ) |
Resolves host name and port of service. Host name is not resolved into numeric address - use KResolver for that. Signal resolved(bool) will be emitted when finished or even before return of this function - in case of immediate failure.
resolved | ( | self, | ||
bool | a0 | |||
) |
Emitted when resolving is complete. Parameter is set to true if it was successful. If operating in asynchronous mode this signal can be emitted several times (when service change)
- Signal syntax:
QObject.connect(source, SIGNAL("resolved(bool)"), target_slot)
virtual_hook | ( | self, | ||
int | id, | |||
void | data | |||
) |