File indexing completed on 2025-01-05 03:53:58
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2010-07-24 0007 * Description : Core database privileges checker 0008 * 0009 * SPDX-FileCopyrightText: 2010 by Holger Foerster <hamsi2k at freenet dot de> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_CORE_DB_CHECKER_H 0016 #define DIGIKAM_CORE_DB_CHECKER_H 0017 0018 // Local includes 0019 0020 #include "dbengineparameters.h" 0021 #include "coredbbackend.h" 0022 #include "digikam_export.h" 0023 0024 namespace Digikam 0025 { 0026 0027 class DIGIKAM_DATABASE_EXPORT CoreDbPrivilegesChecker 0028 { 0029 0030 public: 0031 0032 explicit CoreDbPrivilegesChecker(const DbEngineParameters& parameters); 0033 ~CoreDbPrivilegesChecker(); 0034 0035 bool checkPrivileges(QStringList& insufficientRights); 0036 bool checkPriv(CoreDbBackend& dbBackend, const QString& dbActionName); 0037 0038 private: 0039 0040 DbEngineParameters m_parameters; 0041 }; 0042 0043 } // namespace Digikam 0044 0045 #endif // DIGIKAM_CORE_DB_CHECKER_H