summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKostyantyn Ovechko <fastinetserver@gmail.com>2010-07-20 01:49:05 +0300
committerKostyantyn Ovechko <fastinetserver@gmail.com>2010-07-20 01:49:05 +0300
commit759b1cd98abe95b240328cea5e5d966f7d982f97 (patch)
treef52c23b8660bec16a817795ed0ac75f1d04874a6 /segget/phase.h
parentImprove network selection algorithm. (diff)
downloadidfetch-759b1cd98abe95b240328cea5e5d966f7d982f97.tar.gz
idfetch-759b1cd98abe95b240328cea5e5d966f7d982f97.tar.bz2
idfetch-759b1cd98abe95b240328cea5e5d966f7d982f97.zip
Fix: segget freezes while trying to download files via proxy-fetcher
Diffstat (limited to 'segget/phase.h')
-rw-r--r--segget/phase.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/segget/phase.h b/segget/phase.h
new file mode 100644
index 0000000..221c33d
--- /dev/null
+++ b/segget/phase.h
@@ -0,0 +1,43 @@
+/*
+* Copyright (C) 2010 Robin H.Johnson, Ovechko Kostyantyn <fastinetserver@gmail.com>.
+*
+* Project: IDFetch.
+* Developer: Ovechko Kostyantyn Olexandrovich (Kharkiv State Technical University of Construction and Architecture, Ukraine).
+* Mentor: Robin H. Johnson (Gentoo Linux: Developer, Trustee & Infrastructure Lead).
+* Mentoring organization: Gentoo Linux.
+* Sponsored by GSOC 2010.
+*
+* This file is part of Segget.
+*
+* Segget is free software; you can redistribute it and/or
+* modify it under the terms of the GNU Lesser General Public
+* License as published by the Free Software Foundation; either
+* version 2.1 of the License, or (at your option) any later version.
+*
+* Segget is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with Segget; if not, write to the Free Software
+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+*/
+
+#ifndef __PHASE_H__
+#define __PHASE_H__
+
+#include <string>
+
+using namespace std;
+
+enum Tnetwork_distfile_broker_phases{
+ E_USE_AS_LOCAL_MIRRORS,
+ E_ALL_LOCAL_MIRRORS_FAILED,
+ E_PROXY_FETCHER_DOWNLOADED,
+ E_ALL_PROXY_FETCHER_MIRRORS_FAILED
+};
+
+string phaseToString(int phase_num);
+
+#endif \ No newline at end of file