• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • KNetwork
  • Internal
  • KStandardWorker
Public Member Functions | Protected Attributes | List of all members
KNetwork::Internal::KStandardWorker Class Reference

#include <k3resolverstandardworkers_p.h>

Inheritance diagram for KNetwork::Internal::KStandardWorker:
KNetwork::KResolverWorkerBase

Public Member Functions

virtual ~KStandardWorker ()
 
KNetwork::KResolver::ErrorCodes addUnix ()
 
virtual bool postprocess ()
 
virtual bool preprocess ()
 
bool resolveNumerically ()
 
bool resolveScopeId ()
 
bool resolveService ()
 
virtual bool run ()
 
bool sanityCheck ()
 
- Public Member Functions inherited from KNetwork::KResolverWorkerBase
 KResolverWorkerBase ()
 
virtual ~KResolverWorkerBase ()
 
int familyMask () const
 
void finished ()
 
int flags () const
 
QString nodeName () const
 
int protocol () const
 
QByteArray protocolName () const
 
QString serviceName () const
 
int socketType () const
 

Protected Attributes

QByteArray m_encodedName
 
quint16 port
 
QList< KNetwork::KResolverResults * > resultList
 
int scopeid
 

Additional Inherited Members

- Public Attributes inherited from KNetwork::KResolverWorkerBase
KResolverResults results
 
- Protected Member Functions inherited from KNetwork::KResolverWorkerBase
void acquireResolver ()
 
bool checkResolver ()
 
bool enqueue (KResolver *other)
 
bool enqueue (KResolverWorkerBase *worker)
 
virtual bool postprocess ()
 
virtual bool preprocess ()=0
 
void releaseResolver ()
 
virtual bool run ()=0
 
void setError (int errorcode, int syserror=0)
 

Detailed Description

Standard worker.

Definition at line 66 of file k3resolverstandardworkers_p.h.

Constructor & Destructor Documentation

◆ ~KStandardWorker()

KStandardWorker::~KStandardWorker ( )
virtual

Definition at line 555 of file k3resolverstandardworkers.cpp.

Member Function Documentation

◆ addUnix()

KResolver::ErrorCodes KStandardWorker::addUnix ( )

Definition at line 676 of file k3resolverstandardworkers.cpp.

◆ postprocess()

bool KStandardWorker::postprocess ( )
virtual

This function gets called during post processing for this class.

Important: this function gets called in the main event thread. And it MUST NOT block.

Returns
true on success

Reimplemented from KNetwork::KResolverWorkerBase.

Definition at line 919 of file k3resolverstandardworkers.cpp.

◆ preprocess()

bool KStandardWorker::preprocess ( )
virtual

This function gets called during pre processing for this class and you must override it.

Important: this function gets called in the main event thread. And it MUST NOT block.

This function can be used for an object to determine if it will be able to resolve the given data or not even before launching into a blocking operation. This function should return true if the object is capable of handling this kind of data; false otherwise. Note that the return value of 'true' means that the object's blocking answer will be considered authoritative.

This function MUST NOT queue further requests. Leave that to run().

This function is pure virtual; you must override it.

Returns
true on success

Implements KNetwork::KResolverWorkerBase.

Definition at line 813 of file k3resolverstandardworkers.cpp.

◆ resolveNumerically()

bool KStandardWorker::resolveNumerically ( )

Definition at line 711 of file k3resolverstandardworkers.cpp.

◆ resolveScopeId()

bool KStandardWorker::resolveScopeId ( )

Definition at line 600 of file k3resolverstandardworkers.cpp.

◆ resolveService()

bool KStandardWorker::resolveService ( )

Definition at line 626 of file k3resolverstandardworkers.cpp.

◆ run()

bool KStandardWorker::run ( )
virtual

This is the function that should be overridden in derived classes.

Derived classes will do their blocking job in this function and return either success or failure to work (not the lookup). That is, whether the lookup result was a domain found or not, if we got our answer, we should indicate success. The error itself must be set with setError().

Important: this function gets called in a separate thread!

Returns
true on success

Implements KNetwork::KResolverWorkerBase.

Definition at line 861 of file k3resolverstandardworkers.cpp.

◆ sanityCheck()

bool KStandardWorker::sanityCheck ( )

Definition at line 560 of file k3resolverstandardworkers.cpp.

Member Data Documentation

◆ m_encodedName

QByteArray KNetwork::Internal::KStandardWorker::m_encodedName
mutableprotected

Definition at line 69 of file k3resolverstandardworkers_p.h.

◆ port

quint16 KNetwork::Internal::KStandardWorker::port
protected

Definition at line 70 of file k3resolverstandardworkers_p.h.

◆ resultList

QList<KNetwork::KResolverResults*> KNetwork::Internal::KStandardWorker::resultList
protected

Definition at line 72 of file k3resolverstandardworkers_p.h.

◆ scopeid

int KNetwork::Internal::KStandardWorker::scopeid
protected

Definition at line 71 of file k3resolverstandardworkers_p.h.


The documentation for this class was generated from the following files:
  • k3resolverstandardworkers_p.h
  • k3resolverstandardworkers.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal