digiKam
coredbchecker.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2010-07-24
7  * Description : Core database privileges checker
8  *
9  * Copyright (C) 2010 by Holger Foerster <hamsi2k at freenet dot de>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_CORE_DB_CHECKER_H
25 #define DIGIKAM_CORE_DB_CHECKER_H
26 
27 // Local includes
28 
29 #include "dbengineparameters.h"
30 #include "coredbbackend.h"
31 #include "digikam_export.h"
32 
33 namespace Digikam
34 {
35 
36 class DIGIKAM_DATABASE_EXPORT CoreDbPrivilegesChecker
37 {
38 
39 public:
40 
41  explicit CoreDbPrivilegesChecker(const DbEngineParameters& parameters);
43 
44  bool checkPrivileges(QStringList& insufficientRights);
45  bool checkPriv(CoreDbBackend& dbBackend, const QString& dbActionName);
46 
47 private:
48 
49  DbEngineParameters m_parameters;
50 };
51 
52 } // namespace Digikam
53 
54 #endif // DIGIKAM_CORE_DB_CHECKER_H
Definition: coredbbackend.h:42
Definition: coredbchecker.h:37
Definition: dbengineparameters.h:49
Definition: datefolderview.cpp:43