• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

DNSSD

DNSSD::Query

DNSSD::Query Class Reference

This class provides way to search for specified service type in one domain. More...

#include <query.h>

Inheritance diagram for DNSSD::Query:

Inheritance graph
[legend]

List of all members.


Signals

void finished ()
void serviceAdded (DNSSD::RemoteService::Ptr)
void serviceRemoved (DNSSD::RemoteService::Ptr)

Public Member Functions

const QString & domain () const
bool isFinished () const
bool isRunning () const
 Query (const QString &type, const QString &domain)
virtual void startQuery ()
virtual ~Query ()

Protected Member Functions

virtual void customEvent (QCustomEvent *event)
virtual void virtual_hook (int, void *)

Detailed Description

This class provides way to search for specified service type in one domain.

Depending on domain name, either multicast or unicast DNS will be used.

Class that represents service query in one domain.

Author:
Jakub Stachowski

Definition at line 39 of file query.h.


Constructor & Destructor Documentation

DNSSD::Query::Query ( const QString &  type,
const QString &  domain 
)

Creates new query.

Parameters:
type Type of services to browse for
domain Domain name - if set to "local." multicast query will be performed, otherwise unicast

Definition at line 50 of file query.cpp.

DNSSD::Query::~Query (  )  [virtual]

Definition at line 57 of file query.cpp.


Member Function Documentation

void DNSSD::Query::customEvent ( QCustomEvent *  event  )  [protected, virtual]

Reimplemented from QObject.

Definition at line 94 of file query.cpp.

const QString & DNSSD::Query::domain (  )  const

Returns queried domain.

Definition at line 72 of file query.cpp.

void DNSSD::Query::finished (  )  [signal]

Emitted when all announced services has been reported.

bool DNSSD::Query::isFinished (  )  const

Returns TRUE if all currently announced services has been reported.

It does not mean that no more services can be found later and it is not related to isRunning()

Definition at line 67 of file query.cpp.

bool DNSSD::Query::isRunning (  )  const

Returns TRUE if query is already running.

Definition at line 62 of file query.cpp.

void DNSSD::Query::serviceAdded ( DNSSD::RemoteService::Ptr   )  [signal]

Emitted when new service has been discovered.

void DNSSD::Query::serviceRemoved ( DNSSD::RemoteService::Ptr   )  [signal]

Emitted when previously discovered service is not longer published.

void DNSSD::Query::startQuery (  )  [virtual]

Starts query.

Ignored if query is already running

Definition at line 77 of file query.cpp.

void DNSSD::Query::virtual_hook ( int  ,
void *   
) [protected, virtual]

Definition at line 90 of file query.cpp.


The documentation for this class was generated from the following files:
  • query.h
  • query.cpp

DNSSD

Skip menu "DNSSD"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal