1/*
2 SPDX-FileCopyrightText: 2008 Roland Harnau <tau@gmx.eu>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef HOSTINFO_H_
8#define HOSTINFO_H_
9
10#include "kiocore_export.h"
11#include <QObject>
12#include <QString>
13
14class QHostInfo;
15
16namespace KIO
17{
18/**
19 * @internal
20 * WARNING: this could disappear at some point in time.
21 * DO NOT USE outside KDE Frameworks
22 */
23/*
24 * TODO KF6: This header is intenionally not installed in KF6, and we should look into unexporting
25 * and removing most of these functions; they are only used internally in very few places where
26 * they might even be inlined to.
27 */
28namespace HostInfo
29{
30/// @internal
31void lookupHost(const QString &hostName, QObject *receiver, const char *member);
32/// @internal
33KIOCORE_EXPORT QHostInfo lookupHost(const QString &hostName, unsigned long timeout);
34/// @internal
35KIOCORE_EXPORT QHostInfo lookupCachedHostInfoFor(const QString &hostName);
36/// @internal
37KIOCORE_EXPORT void cacheLookup(const QHostInfo &info);
38}
39}
40
41#endif
42

source code of kio/src/core/hostinfo.h