ServiceBase Class Reference
from PyKDE4.dnssd import *
Inherits: KShared
Namespace: DNSSD
Detailed Description
\class ServiceBase servicebase.h DNSSD/ServiceBase
This class is used to carry information about service. It can be remote, local,
metaservice or domain. Metaservice has only type and domain - it means that
services of given type are present in given domain.
Describes any type of service.
- Author:
- Jakub Stachowski
Methods |
| __init__ (self, QString name=QString(), QString type=QString(), QString domain=QString(), QString host=QString(), long port=0) |
| __init__ (self, ServiceBasePrivate d) |
| __init__ (self, DNSSD.ServiceBase other) |
QString | domain (self) |
QString | hostName (self) |
bool | operator == (self, DNSSD.ServiceBase o) |
long | port (self) |
QString | serviceName (self) |
QMap | textData (self) |
QString | type (self) |
| virtual_hook (self, int a0, void a1) |
Method Documentation
- Parameters:
-
| name | Service name
|
| type | Service type
|
| domain | Domain name for service
|
| host | Host name for service
|
| port | Port number for service
|
To do: Explain if domain is the FQDN, or if host + "." + domain is.
To do: Explain when port is needed (does it override name?).
__init__ |
( |
self, |
|
|
|
ServiceBasePrivate |
d |
|
) |
|
|
|
Returns domain that given service belongs to. It is "local." for link-local services.
Returns hostname. It is only valid for local and resolved remote services.
Compares service name, type and domain. This is enough to for unique identification and omitting
port, host and text data allows to compare resolved and unresolved services
Returns port number. It is only valid for local and resolved remote services.
Returns read only map of text properties. It is only valid for local and resolved remote services.
Returns type of service. It always in format _sometype._udp or _sometype._tcp.
virtual_hook |
( |
self, |
|
|
|
int |
a0, |
|
|
void |
a1 |
|
) |
|
|
|