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

KIO

  • kio
  • kio
hostinfo_p.h
Go to the documentation of this file.
1/*
2Copyright 2008 Roland Harnau <tau@gmx.eu>
3
4This library is free software; you can redistribute it and/or
5modify it under the terms of the GNU Lesser General Public
6License as published by the Free Software Foundation; either
7version 2.1 of the License, or (at your option) version 3, or any
8later version accepted by the membership of KDE e.V. (or its
9successor approved by the membership of KDE e.V.), which shall
10act as a proxy defined in Section 6 of version 3 of the license.
11
12This library is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15Lesser General Public License for more details.
16
17You should have received a copy of the GNU Lesser General Public
18License along with this library. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#ifndef HOSTINFO_H_
22#define HOSTINFO_H_
23
24#include <QtCore/QString>
25#include <QtCore/QObject>
26#include "kio_export.h"
27
28class QHostInfo;
29
30namespace KIO
31{
32 namespace HostInfo
33 {
34 KIO_EXPORT void lookupHost(const QString& hostName, QObject* receiver, const char* member);
35 KIO_EXPORT QHostInfo lookupHost(const QString& hostName, unsigned long timeout);
36 KIO_EXPORT QHostInfo lookupCachedHostInfoFor(const QString& hostName);
37 KIO_EXPORT void cacheLookup(const QHostInfo& info);
38
39 // used by khtml's DNS prefetching feature
40 KIO_EXPORT void prefetchHost(const QString& hostName);
41 KIO_EXPORT void setCacheSize( int s );
42 KIO_EXPORT void setTTL( int ttl );
43 }
44}
45
46#endif
QObject
kio_export.h
timeout
int timeout
KIO::HostInfo::setCacheSize
void setCacheSize(int s)
Definition: hostinfo.cpp:297
KIO::HostInfo::lookupCachedHostInfoFor
QHostInfo lookupCachedHostInfoFor(const QString &hostName)
Definition: hostinfo.cpp:282
KIO::HostInfo::prefetchHost
void prefetchHost(const QString &hostName)
Definition: hostinfo.cpp:292
KIO::HostInfo::cacheLookup
void cacheLookup(const QHostInfo &info)
Definition: hostinfo.cpp:287
KIO::HostInfo::lookupHost
void lookupHost(const QString &hostName, QObject *receiver, const char *member)
Definition: hostinfo.cpp:240
KIO::HostInfo::setTTL
void setTTL(int ttl)
Definition: hostinfo.cpp:302
KIO
A namespace for KIO globals.
Definition: kbookmarkmenu.h:55
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.

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • 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