File indexing completed on 2024-11-24 04:44:30
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 #include "user.h" 0014 0015 namespace OXA 0016 { 0017 class UpdateUsersJob : public KJob 0018 { 0019 Q_OBJECT 0020 0021 public: 0022 explicit UpdateUsersJob(QObject *parent = nullptr); 0023 0024 void start() override; 0025 0026 private: 0027 void userIdRequestJobFinished(KJob *); 0028 void usersRequestJobFinished(KJob *); 0029 void finish(); 0030 0031 bool mUserIdRequestFinished = false; 0032 bool mUsersRequestFinished = false; 0033 User::List mUsers; 0034 qlonglong mUserId = -1; 0035 }; 0036 }