# class DomainBrowser

###

Module | dnssd
Namespace | DNSSD
Class | DomainBrowser
Inherits | QObject

\class DomainBrowser domainbrowser.h DNSSD/DomainBrowser

Class used to provide list of additional domains for browsing or publishing. Author Jakub Stachowski

### enums

- DomainType { Browsing, Publishing }

enum details

### methods

- DomainBrowser (type, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  type | DNSSD::DomainBrowser.DomainType |
  parent | QObject | 0

  Standard constructor. It takes all parameters from global configuration. All changes in configuration are applied immediately.

  parent - Parent object.

- domainAdded (a0)

  returns Nothing
  SIGNAL ("domainAdded (const QString&)")

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |

  New domain has been discovered. Also emitted for domain specified in constructor and in global configuration

- domainRemoved (a0)

  returns Nothing
  SIGNAL ("domainRemoved (const QString&)")

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |

  Emitted when domain has been removed from browsing list

- domains ( )

  returns QStringList

  Current list of domains to browse.

- isRunning ( )

  returns bool

  Returns true when browse has already started

- startBrowse ( )

  returns Nothing

  Starts browsing. To stop destroy this object. domainAdded signals may be emitted before this function returns.

### enums - detail

- DomainType { Browsing, Publishing }

  | Browsing | - | - |
  | Publishing | - | - |