File indexing completed on 2024-11-24 04:17:00
0001 /* 0002 SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org> 0003 SPDX-License-Identifier: LGPL-2.0-or-later 0004 */ 0005 0006 #ifndef KUNIFIEDPUSH_CONNECTORUTILS_P_H 0007 #define KUNIFIEDPUSH_CONNECTORUTILS_P_H 0008 0009 #include <qcontainerfwd.h> 0010 0011 class QString; 0012 0013 namespace KUnifiedPush 0014 { 0015 0016 /** Connector-side functions shared between the connector library and the KCM. */ 0017 class ConnectorUtils { 0018 public: 0019 0020 /** Searches for all available distributors and picks one to use. 0021 * Considers explicit user configuration. 0022 */ 0023 static QString selectDistributor(); 0024 0025 private: 0026 friend class ConnectorUtilsTest; 0027 static QString selectDistributor(QStringList &&services); 0028 }; 0029 0030 } 0031 0032 #endif 0033