LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
downloaderrorstrings.cpp
Go to the documentation of this file.
1 /**********************************************************************
2  * LeechCraft - modular cross-platform feature rich internet client.
3  * Copyright (C) 2006-2014 Georg Rudoy
4  *
5  * Distributed under the Boost Software License, Version 1.0.
6  * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7  **********************************************************************/
8 
9 #include "downloaderrorstrings.h"
10 #include <QObject>
11 
12 namespace LC::Util
13 {
15  {
16  switch (type)
17  {
19  break;
21  return QObject::tr ("no error");
23  return QObject::tr ("not found");
25  return QObject::tr ("gone forever");
27  return QObject::tr ("access denied");
29  return QObject::tr ("authentication required");
31  return QObject::tr ("protocol error");
33  return QObject::tr ("network error");
35  return QObject::tr ("content error");
37  return QObject::tr ("proxy error");
39  return QObject::tr ("server error");
41  return QObject::tr ("local error");
43  return QObject::tr ("user canceled the download");
44  }
45 
46  return QObject::tr ("unknown error");
47  }
48 }
IDownload::Error::Type
Type
Definition: idownload.h:47
IDownload::Error::Type::ServerError
@ ServerError
LC::Util
Definition: icoreproxy.h:33
IDownload::Error::Type::Unknown
@ Unknown
IDownload::Error::Type::NoError
@ NoError
IDownload::Error::Type::ProtocolError
@ ProtocolError
IDownload::Error::Type::NotFound
@ NotFound
IDownload::Error::Type::AccessDenied
@ AccessDenied
IDownload::Error::Type::NetworkError
@ NetworkError
downloaderrorstrings.h
IDownload::Error::Type::UserCanceled
@ UserCanceled
LC::Util::GetErrorString
QString GetErrorString(IDownload::Error::Type type)
Definition: downloaderrorstrings.cpp:20
IDownload::Error::Type::ProxyError
@ ProxyError
IDownload::Error::Type::LocalError
@ LocalError
IDownload::Error::Type::AuthRequired
@ AuthRequired
IDownload::Error::Type::Gone
@ Gone
IDownload::Error::Type::ContentError
@ ContentError