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

KDECore

  • KNetwork
  • Internal
  • KBlacklistWorker
Public Member Functions | Static Public Member Functions | Static Public Attributes

KNetwork::Internal::KBlacklistWorker Class Reference

#include <k3resolverstandardworkers_p.h>

Inheritance diagram for KNetwork::Internal::KBlacklistWorker:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool postprocess ()
virtual bool preprocess ()
virtual bool run ()

Static Public Member Functions

static void init ()
static bool isBlacklisted (const QString &)
static void loadBlacklist ()

Static Public Attributes

static QStringList blacklist

Detailed Description

The blacklist worker.

Definition at line 49 of file k3resolverstandardworkers_p.h.


Member Function Documentation

void KBlacklistWorker::init ( ) [static]

Definition at line 97 of file k3resolverstandardworkers.cpp.

bool KBlacklistWorker::isBlacklisted ( const QString &  host) [static]

Definition at line 146 of file k3resolverstandardworkers.cpp.

void KBlacklistWorker::loadBlacklist ( ) [static]

Definition at line 111 of file k3resolverstandardworkers.cpp.

virtual bool KNetwork::Internal::KBlacklistWorker::postprocess ( ) [inline, 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 60 of file k3resolverstandardworkers_p.h.

bool KBlacklistWorker::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 169 of file k3resolverstandardworkers.cpp.

bool KBlacklistWorker::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 180 of file k3resolverstandardworkers.cpp.


Member Data Documentation

QStringList KBlacklistWorker::blacklist [static]

Definition at line 52 of file k3resolverstandardworkers_p.h.


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

KDECore

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • 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
Generated for kdelibs by doxygen 1.7.3
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