digiKam
Loading...
Searching...
No Matches
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 * SPDX-FileCopyrightText: 2010 by Holger Foerster <Hamsi2k at freenet dot de>
10 * SPDX-FileCopyrightText: 2016 by Swati Lodha <swatilodha27 at gmail dot com>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Qt includes
19
20#include <QString>
21#include <QVariant>
22
23// Local includes
24
25#include "digikam_export.h"
26
27namespace Digikam
28{
29
30class DIGIKAM_EXPORT DatabaseServerError
31{
32public:
33
35 {
39 NoErrors = 0,
40
45
49 StartError
50 };
51
52public:
53
54 explicit DatabaseServerError(DatabaseServerErrorEnum errorType = NoErrors,
55 const QString& errorText = QString());
56 DatabaseServerError(const DatabaseServerError& dbServerError);
58
59 DatabaseServerErrorEnum getErrorType() const;
60 void setErrorType(DatabaseServerErrorEnum errorType);
61
62 QString getErrorText() const;
63 void setErrorText(const QString& errorText);
64
65private:
66
67 QString m_ErrorText;
68 DatabaseServerErrorEnum m_ErrorType = NoErrors;
69};
70
71} // namespace Digikam
Definition databaseservererror.h:31
DatabaseServerErrorEnum
Definition databaseservererror.h:35
@ NotSupported
Definition databaseservererror.h:44
Definition datefolderview.cpp:34