digiKam
databaseservererror.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-04-26
7  * Description : database server error reporting
8  *
9  * Copyright (C) 2010 by Holger Foerster <Hamsi2k at freenet dot de>
10  * Copyright (C) 2016 by Swati Lodha <swatilodha27 at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_DATABASE_SERVER_ERROR_H
26 #define DIGIKAM_DATABASE_SERVER_ERROR_H
27 
28 // Qt includes
29 
30 #include <QString>
31 #include <QVariant>
32 
33 // Local includes
34 
35 #include "digikam_export.h"
36 
37 namespace Digikam
38 {
39 
40 class DIGIKAM_EXPORT DatabaseServerError
41 {
42 public:
43 
45  {
49  NoErrors = 0,
50 
55 
59  StartError
60  };
61 
62 public:
63 
64  explicit DatabaseServerError(DatabaseServerErrorEnum errorType = NoErrors,
65  const QString& errorText = QString());
66  DatabaseServerError(const DatabaseServerError& dbServerError);
68 
69  int getErrorType() const;
70  void setErrorType(DatabaseServerErrorEnum errorType);
71  QString getErrorText() const;
72  void setErrorText(const QString& errorText);
73 
74 private:
75 
76  QString m_ErrorText;
77  int m_ErrorType;
78 };
79 
80 } // namespace Digikam
81 
82 #endif // DIGIKAM_DATABASE_SERVER_ERROR_H
Definition: databaseservererror.h:41
DatabaseServerErrorEnum
Definition: databaseservererror.h:45
@ NotSupported
Definition: databaseservererror.h:54
Definition: datefolderview.cpp:43