DomainBrowser Class Reference
from PyKDE4.dnssd import *
Inherits: QObject
Namespace: DNSSD
Detailed Description
\class DomainBrowser domainbrowser.h DNSSD/DomainBrowser
Class used to provide list of additional domains for browsing or publishing.
Enumerations | |
DomainType | { Browsing, Publishing } |
Signals | |
domainAdded (QString a0) | |
domainRemoved (QString a0) | |
Methods | |
__init__ (self, DNSSD.DomainBrowser.DomainType type, QObject parent=0) | |
domainAdded (self, QString a0) | |
domainRemoved (self, QString a0) | |
QStringList | domains (self) |
bool | isRunning (self) |
startBrowse (self) |
Method Documentation
__init__ | ( | self, | ||
DNSSD.DomainBrowser.DomainType | type, | |||
QObject | parent=0 | |||
) |
Standard constructor. It takes all parameters from global configuration. All changes in configuration are applied immediately.
- Parameters:
-
parent Parent object.
domainAdded | ( | self, | ||
QString | a0 | |||
) |
New domain has been discovered. Also emitted for domain specified in constructor and in global configuration
- Signal syntax:
QObject.connect(source, SIGNAL("domainAdded(const QString&)"), target_slot)
domainRemoved | ( | self, | ||
QString | a0 | |||
) |
Emitted when domain has been removed from browsing list
- Signal syntax:
QObject.connect(source, SIGNAL("domainRemoved(const QString&)"), target_slot)
QStringList domains | ( | self ) |
Current list of domains to browse.
bool isRunning | ( | self ) |
Returns true when browse has already started
startBrowse | ( | self ) |
Starts browsing. To stop destroy this object. domainAdded signals may be emitted before this function returns.
Enumeration Documentation
DomainType |
- Enumerator:
-
Browsing Publishing