Changeset View
Changeset View
Standalone View
Standalone View
src/common/daverror.h
Show All 12 Lines | 1 | /* | |||
---|---|---|---|---|---|
13 | 13 | | |||
14 | You should have received a copy of the GNU General Public License | 14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <https://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
16 | */ | 16 | */ | ||
17 | 17 | | |||
18 | #ifndef KDAV_DAVERROR_H | 18 | #ifndef KDAV_DAVERROR_H | ||
19 | #define KDAV_DAVERROR_H | 19 | #define KDAV_DAVERROR_H | ||
20 | 20 | | |||
21 | #include "kpimkdav_export.h" | 21 | #include "kdav_export.h" | ||
22 | 22 | | |||
23 | #include <KJob> | 23 | #include <KJob> | ||
24 | 24 | | |||
25 | #include <QSharedDataPointer> | 25 | #include <QSharedDataPointer> | ||
26 | #include <QString> | 26 | #include <QString> | ||
27 | 27 | | |||
28 | namespace KDAV { | 28 | namespace KDAV { | ||
29 | /** DAV operation error codes. */ | 29 | /** DAV operation error codes. */ | ||
Show All 14 Lines | 30 | enum ErrorNumber { | |||
44 | ERR_ITEMMODIFY = ERR_PROBLEM_WITH_REQUEST + 120, | 44 | ERR_ITEMMODIFY = ERR_PROBLEM_WITH_REQUEST + 120, | ||
45 | ERR_ITEMLIST = ERR_PROBLEM_WITH_REQUEST + 130, | 45 | ERR_ITEMLIST = ERR_PROBLEM_WITH_REQUEST + 130, | ||
46 | ERR_ITEMLIST_NOMIMETYPE | 46 | ERR_ITEMLIST_NOMIMETYPE | ||
47 | }; | 47 | }; | ||
48 | 48 | | |||
49 | class ErrorPrivate; | 49 | class ErrorPrivate; | ||
50 | 50 | | |||
51 | /** DAV operation error. */ | 51 | /** DAV operation error. */ | ||
52 | class KPIMKDAV_EXPORT Error | 52 | class KDAV_EXPORT Error | ||
53 | { | 53 | { | ||
54 | public: | 54 | public: | ||
55 | explicit Error(); | 55 | explicit Error(); | ||
56 | explicit Error(ErrorNumber errNo, int responseCode, const QString &errorText, int jobErrorCode); | 56 | explicit Error(ErrorNumber errNo, int responseCode, const QString &errorText, int jobErrorCode); | ||
57 | Error(const Error&); | 57 | Error(const Error&); | ||
58 | ~Error(); | 58 | ~Error(); | ||
59 | Error& operator=(const Error&); | 59 | Error& operator=(const Error&); | ||
60 | 60 | | |||
Show All 13 Lines |