KDE 4.1 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

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

__init__ (  self,
QString  name=QString(),
QString  type=QString(),
QString  domain=QString(),
QString  host=QString(),
long  port=0
)

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
)
__init__ (  self,
DNSSD.ServiceBase  other
)
QString domain (   self )

Returns domain that given service belongs to. It is "local." for link-local services.

QString hostName (   self )

Returns hostname. It is only valid for local and resolved remote services.

bool operator == (  self,
DNSSD.ServiceBase  o
)

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

long port (   self )

Returns port number. It is only valid for local and resolved remote services.

QString serviceName (   self )

Returns name of service.

QMap textData (   self )

Returns read only map of text properties. It is only valid for local and resolved remote services.

QString type (   self )

Returns type of service. It always in format _sometype._udp or _sometype._tcp.

virtual_hook (  self,
int  a0,
void  a1
)
  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal