LeechCraft  0.6.70-16373-g319c272718
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 }
QString GetErrorString(IDownload::Error::Type type)