File indexing completed on 2024-05-05 16:13:11

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 namespace HostInfo
0024 {
0025 /// @internal
0026 KIOCORE_EXPORT void lookupHost(const QString &hostName, QObject *receiver, const char *member);
0027 /// @internal
0028 KIOCORE_EXPORT QHostInfo lookupHost(const QString &hostName, unsigned long timeout);
0029 /// @internal
0030 KIOCORE_EXPORT QHostInfo lookupCachedHostInfoFor(const QString &hostName);
0031 /// @internal
0032 KIOCORE_EXPORT void cacheLookup(const QHostInfo &info);
0033 
0034 // used by khtml's DNS prefetching feature
0035 /// @internal
0036 KIOCORE_EXPORT void prefetchHost(const QString &hostName);
0037 /// @internal
0038 KIOCORE_EXPORT void setCacheSize(int s);
0039 /// @internal
0040 KIOCORE_EXPORT void setTTL(int ttl);
0041 }
0042 }
0043 
0044 #endif