File indexing completed on 2024-04-28 16:44:07

0001 /*
0002     SPDX-FileCopyrightText: 2019 Harald Sitter <sitter@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef BUGZILLA_H
0008 #define BUGZILLA_H
0009 
0010 #include "connection.h"
0011 #include "models/logindetails.h"
0012 
0013 namespace Bugzilla
0014 {
0015 QString version(KJob *kjob);
0016 APIJob *version(const Connection &connection = Bugzilla::connection());
0017 
0018 // https://bugzilla.readthedocs.io/en/5.0/api/core/v1/user.html#login
0019 LoginDetails login(KJob *kjob);
0020 APIJob *login(const QString &username, const QString &password, const Connection &connection = Bugzilla::connection());
0021 } // namespace Bugzilla
0022 
0023 #endif // BUGZILLA_H