KDE 4.1 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

Detailed Description

\class DomainModel domainmodel.h DNSSD/DomainModel

DomainModel implements Qt Model interface around DomainBrowser to allow easy integration of domain discovery into GUI. Example of combo box showing list of browsing domains:

DNSSD.DomainModel* m=new DomainModel(new DNSSD.DomainBrowser(DNSSD.DomainBrowser.Browsing));
QComboBox *c=new QComboBox();
c->setModel(m);

Since:
4.1
Model for list of Zeroconf domains
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
)

Creates model for given domain browses and starts browsing for domain. The model becomes parent of the browser so there is no need to delete it afterwards.

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
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal