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
27
namespace
Digikam
28
{
29
30
class
DIGIKAM_EXPORT
DatabaseServerError
31
{
32
public
:
33
34
enum
DatabaseServerErrorEnum
35
{
39
NoErrors = 0,
40
44
NotSupported
,
45
49
StartError
50
};
51
52
public
:
53
54
explicit
DatabaseServerError
(DatabaseServerErrorEnum errorType = NoErrors,
55
const
QString& errorText = QString());
56
DatabaseServerError
(
const
DatabaseServerError
& dbServerError);
57
~DatabaseServerError
() =
default
;
58
59
DatabaseServerErrorEnum
getErrorType()
const
;
60
void
setErrorType(
DatabaseServerErrorEnum
errorType);
61
62
QString getErrorText()
const
;
63
void
setErrorText(
const
QString& errorText);
64
65
private
:
66
67
QString m_ErrorText;
68
DatabaseServerErrorEnum
m_ErrorType = NoErrors;
69
};
70
71
}
// namespace Digikam
Digikam::DatabaseServerError
Definition
databaseservererror.h:31
Digikam::DatabaseServerError::DatabaseServerErrorEnum
DatabaseServerErrorEnum
Definition
databaseservererror.h:35
Digikam::DatabaseServerError::NotSupported
@ NotSupported
Definition
databaseservererror.h:44
Digikam::DatabaseServerError::~DatabaseServerError
~DatabaseServerError()=default
digikam_export.h
Digikam
Definition
datefolderview.cpp:34
core
libs
database
server
databaseservererror.h
Generated by
1.9.8