File indexing completed on 2024-05-12 07:50:08

0001 /*
0002     SPDX-FileCopyrightText: 2008 Roland Harnau <tau@gmx.eu>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef HOSTINFO_H_
0008 #define HOSTINFO_H_
0009 
0010 #include "kiocore_export.h"
0011 #include <QObject>
0012 #include <QString>
0013 
0014 class QHostInfo;
0015 
0016 namespace KIO
0017 {
0018 /**
0019  * @internal
0020  * WARNING: this could disappear at some point in time.
0021  * DO NOT USE outside KDE Frameworks
0022  */
0023 /*
0024  * TODO KF6: This header is intenionally not installed in KF6, and we should look into unexporting
0025  * and removing most of these functions; they are only used internally in very few places where
0026  * they might even be inlined to.
0027  */
0028 namespace HostInfo
0029 {
0030 /// @internal
0031 void lookupHost(const QString &hostName, QObject *receiver, const char *member);
0032 /// @internal
0033 KIOCORE_EXPORT QHostInfo lookupHost(const QString &hostName, unsigned long timeout);
0034 /// @internal
0035 KIOCORE_EXPORT QHostInfo lookupCachedHostInfoFor(const QString &hostName);
0036 /// @internal
0037 KIOCORE_EXPORT void cacheLookup(const QHostInfo &info);
0038 }
0039 }
0040 
0041 #endif