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

DomainModel Class Reference

from PyKDE4.dnssd import *

Inherits: QAbstractItemModel → QObject
Namespace: DNSSD.DomainModel

Detailed Description

DomainModel domainmodel.h DNSSD/DomainModel Model for list of Zeroconf domains

This class provides a Qt Model for DomainBrowser to allow easy integration of domain discovery into a GUI. For example, to provide a combo box listing available domains, you can do:

 DNSSD.DomainModel *domainModel = new DomainModel(
     new DNSSD.DomainBrowser(DNSSD.DomainBrowser.Browsing)
     );
 QComboBox *domainCombo = new QComboBox();
 domainCombo->setModel(domainModel);

Since:
4.1
Author:
Jakub Stachowski


Methods

 __init__ (self, DNSSD.DomainBrowser browser, QObject parent=0)
int columnCount (self, QModelIndex parent=QModelIndex())
QVariant data (self, QModelIndex index, int role=Qt.DisplayRole)
bool hasIndex (self, int row, int column, QModelIndex parent)
QModelIndex index (self, int row, int column, QModelIndex parent=QModelIndex())
QModelIndex parent (self, QModelIndex index)
int rowCount (self, QModelIndex parent=QModelIndex())

Method Documentation

__init__ (  self,
DNSSD.DomainBrowser  browser,
QObject  parent=0
)
int columnCount (  self,
QModelIndex  parent=QModelIndex()
)

QVariant data (  self,
QModelIndex  index,
int  role=Qt.DisplayRole
)

bool hasIndex (  self,
int  row,
int  column,
QModelIndex  parent
)

QModelIndex index (  self,
int  row,
int  column,
QModelIndex  parent=QModelIndex()
)

QModelIndex parent (  self,
QModelIndex  index
)

int rowCount (  self,
QModelIndex  parent=QModelIndex()
)

  • Full Index

Modules

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