File indexing completed on 2025-04-20 09:43:55
0001 /* 0002 This file is part of the KDE project 0003 SPDX-FileCopyrightText: 2007 Will Stephenson <wstephenson@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.0-only WITH Qt-Commercial-exception-1.0 0006 */ 0007 0008 #ifndef KDE_KSTATUSBAROFFLINEINDICATOR_H 0009 #define KDE_KSTATUSBAROFFLINEINDICATOR_H 0010 0011 #include "kiofilewidgets_export.h" 0012 #include <QWidget> 0013 0014 #include <memory> 0015 0016 class KStatusBarOfflineIndicatorPrivate; 0017 0018 #if KIOFILEWIDGETS_ENABLE_DEPRECATED_SINCE(5, 70) 0019 /** 0020 * @class KStatusBarOfflineIndicator kstatusbarofflineindicator.h <KStatusBarOfflineIndicator> 0021 * 0022 * Widget indicating network connection status using an icon and tooltip. This widget uses 0023 * QNetworkConfigurationMAnager internally to automatically show and hide itself as required. 0024 * 0025 * @code 0026 * KStatusBarOfflineIndicator * indicator = new KStatusBarOfflineIndicator( this ); 0027 * statusBar()->addWidget( indicator, 0, false ); 0028 * @endcode 0029 * 0030 * @deprecated since 5.70, no known users. 0031 * 0032 * @author Will Stephenson <wstephenson@kde.org> 0033 */ 0034 class KIOFILEWIDGETS_EXPORT KStatusBarOfflineIndicator : public QWidget 0035 { 0036 Q_OBJECT 0037 public: 0038 /** 0039 * Default constructor. 0040 * @param parent the widget's parent 0041 * @deprecated since 5.70, no known users. 0042 */ 0043 KIOFILEWIDGETS_DEPRECATED_VERSION(5, 70, "No known users") 0044 explicit KStatusBarOfflineIndicator(QWidget *parent); 0045 ~KStatusBarOfflineIndicator() override; 0046 0047 private: 0048 std::unique_ptr<KStatusBarOfflineIndicatorPrivate> const d; 0049 }; 0050 #endif 0051 0052 #endif