KIO

hostinfo.h
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
KIOCORE_EXPORT QHostInfo lookupCachedHostInfoFor(const QString &hostName)
Definition hostinfo.cpp:285
KIOCORE_EXPORT void cacheLookup(const QHostInfo &info)
Definition hostinfo.cpp:290
void lookupHost(const QString &hostName, QObject *receiver, const char *member)
Definition hostinfo.cpp:237
A namespace for KIO globals.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.