File indexing completed on 2024-11-24 04:44:27
0001 /* 0002 This file is part of oxaccess. 0003 0004 SPDX-FileCopyrightText: 2009 Tobias Koenig <tokoe@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #pragma once 0010 0011 #include <KJob> 0012 0013 namespace OXA 0014 { 0015 class ConnectionTestJob : public KJob 0016 { 0017 Q_OBJECT 0018 0019 public: 0020 ConnectionTestJob(const QString &url, const QString &user, const QString &password, QObject *parent = nullptr); 0021 0022 void start() override; 0023 0024 private Q_SLOTS: 0025 void httpJobFinished(KJob *); 0026 0027 private: 0028 QString mUrl; 0029 const QString mUser; 0030 const QString mPassword; 0031 }; 0032 }