swift
ping.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_MISC_NETWORK_PING_H
7 #define SWIFT_MISC_NETWORK_PING_H
8 
9 #include <QString>
10 #include <QUrl>
11 
12 #include "misc/swiftmiscexport.h"
13 
14 namespace swift::misc::network
15 {
18  SWIFT_MISC_EXPORT bool canPing(const QString &hostAddress);
19 
22  SWIFT_MISC_EXPORT bool canPing(const QUrl &url);
23 } // namespace swift::misc::network
24 
25 #endif // SWIFT_MISC_NETWORK_PING_H
#define SWIFT_MISC_EXPORT
Export a class or function from the library.