summaryrefslogtreecommitdiffstats
path: root/src/core/web_engine_error.h
diff options
context:
space:
mode:
authorAdam Kallai <kadam@inf.u-szeged.hu>2013-12-19 08:26:35 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-10 17:14:15 +0100
commit73f0716ddf56443db3d45a9eb60cee6177df2fc4 (patch)
tree0688edc77018075399353570f7588c0ede9593ea /src/core/web_engine_error.h
parent3bdbe02968188f3ac61e2673604829b61fc16250 (diff)
Implement WebEngineError class for handling ErrorDomain
Change-Id: I6092483d46b8d0db6193b92f2744bd836beb4912 Reviewed-by: Andras Becsi <andras.becsi@digia.com> Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Diffstat (limited to 'src/core/web_engine_error.h')
-rw-r--r--src/core/web_engine_error.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/src/core/web_engine_error.h b/src/core/web_engine_error.h
new file mode 100644
index 000000000..9fd7eb265
--- /dev/null
+++ b/src/core/web_engine_error.h
@@ -0,0 +1,65 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the QtWebEngine module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#ifndef WEB_ENGINE_ERROR_H
+#define WEB_ENGINE_ERROR_H
+
+#include "qtwebenginecoreglobal.h"
+
+class QWEBENGINE_EXPORT WebEngineError
+{
+
+public:
+ enum ErrorDomain {
+ NoErrorDomain,
+ InternalErrorDomain,
+ ConnectionErrorDomain,
+ CertificateErrorDomain,
+ HttpErrorDomain,
+ FtpErrorDomain,
+ DnsErrorDomain
+ };
+
+ static ErrorDomain toQtErrorDomain(int error_code);
+
+};
+
+#endif // WEB_ENGINE_ERROR_H