Upstream tarball 10010
[amule.git] / src / Constants.h
blob86de117851817314ed635e89444b1e4cac7f205c
1 //
2 // This file is part of the aMule Project.
3 //
4 // Copyright (c) 2006-2008 aMule Team ( admin@amule.org / http://www.amule.org )
5 //
6 // Any parts of this program derived from the xMule, lMule or eMule project,
7 // or contributed by third-party developers are copyrighted by their
8 // respective authors.
9 //
10 // This program is free software; you can redistribute it and/or modify
11 // it under the terms of the GNU General Public License as published by
12 // the Free Software Foundation; either version 2 of the License, or
13 // (at your option) any later version.
15 // This program is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with this program; if not, write to the Free Software
22 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
25 #ifndef CONSTANTS_H
26 #define CONSTANTS_H
28 //! This enum lists the views currently supported by the CClientListCtrl class.
29 enum ViewType
31 //! The "neutral" state, where nothing is displayed.
32 vtNone = 0,
34 //! Clients which are received files are displayed.
35 vtUploading = 1,
37 //! Clients which are queued for files are displayed.
38 vtQueued = 2,
40 //! All clients are displayed.
41 vtClients = 3
45 //! These types specifies the char. of a given item on the CDownloadListCtrl
46 enum DownloadItemType
48 //! A CPartFile object
49 FILE_TYPE,
50 //! A source which is currently queued for another file.
51 A4AF_SOURCE,
52 //! A source which has not yet been contacted.
53 UNAVAILABLE_SOURCE,
54 //! A source which is currently queued for this file.
55 AVAILABLE_SOURCE
59 // lfroen : custom events for core internal messages
60 // 'cause - there's no wxCommand etc in wxBase
61 enum Core_Event_ID
63 HTTP_DOWNLOAD_FINISHED = 1,
65 SOURCE_DNS_DONE,
66 UDP_DNS_DONE,
67 SERVER_DNS_DONE
71 //! These IDs are used when a download is initiated via the HTTPThread.
72 enum HTTP_Download_File
74 //! The download is a ipfilter.dat file (possibly compressed).
75 HTTP_IPFilter = 1,
76 //! The download is a server.met file (possibly compressed).
77 HTTP_ServerMet,
78 // Auto-updating server.met has a different callback.
79 HTTP_ServerMetAuto,
80 //! The download is the version check file.
81 HTTP_VersionCheck,
82 //! The download is a notes.dat file (possibly compressed).
83 HTTP_NodesDat,
84 //! The download is a GeoIP database file (possibly compressed).
85 HTTP_GeoIP
89 #endif
90 // File_checked_for_headers