eb61d49ab3
Their use of QtNetwork is already covered by the HTTP example. While showcasing that QNAM easily deals with multiple simultaneous requests, waiting until finished() is emitted to write anything is not exactly idiomatic. And managing your own queue to only have one request running at a time is a weird example for an asynchronous framework. In this regard, having an example for a complete download manager (with a GUI) would be interesting, but may ultimately be very time-consuming to make for limited gain. Task-number: QTBUG-110643 Pick-to: 6.5 Change-Id: I6b2c1546b85fa89ab7ce1ff5565b0293b5710b74 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io> Reviewed-by: Konrad Kujawa <konrad.kujawa@qt.io>
37 lines
1.2 KiB
CMake
37 lines
1.2 KiB
CMake
# Copyright (C) 2022 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
if(NOT TARGET Qt6::Network)
|
|
return()
|
|
endif()
|
|
if(NOT INTEGRITY)
|
|
qt_internal_add_example(dnslookup)
|
|
endif()
|
|
if(TARGET Qt6::Widgets)
|
|
qt_internal_add_example(blockingfortuneclient)
|
|
qt_internal_add_example(broadcastreceiver)
|
|
qt_internal_add_example(broadcastsender)
|
|
qt_internal_add_example(http)
|
|
qt_internal_add_example(loopback)
|
|
qt_internal_add_example(threadedfortuneserver)
|
|
qt_internal_add_example(torrent)
|
|
qt_internal_add_example(multicastreceiver)
|
|
qt_internal_add_example(multicastsender)
|
|
qt_internal_add_example(fortuneclient)
|
|
qt_internal_add_example(fortuneserver)
|
|
endif()
|
|
if(QT_FEATURE_processenvironment AND TARGET Qt6::Widgets)
|
|
qt_internal_add_example(network-chat)
|
|
endif()
|
|
if(QT_FEATURE_ssl AND TARGET Qt6::Widgets)
|
|
qt_internal_add_example(securesocketclient)
|
|
endif()
|
|
if(QT_FEATURE_dtls AND TARGET Qt6::Widgets)
|
|
qt_internal_add_example(secureudpserver)
|
|
qt_internal_add_example(secureudpclient)
|
|
endif()
|
|
if(QT_FEATURE_sctp AND TARGET Qt6::Widgets)
|
|
qt_internal_add_example(multistreamserver)
|
|
qt_internal_add_example(multistreamclient)
|
|
endif()
|