"""
Copyright (C) 2007 Adolfo González Blázquez <code@infinicode.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
If you find any bugs or have any suggestions email: code@infinicode.org
"""
class Codes:
server = {
"CoreProtocol": 0,
"OptionsInfo": 1,
"DefineSearches": 3,
"ResultInfo": 4,
"SearchResult": 5,
"FileUpdateAvailability": 9,
"FileAddSource": 10,
"ServerUser": 12,
"ServerState": 13,
"ClientInfo": 15,
"ClientState": 16,
"ConsoleMessage": 19,
"NetworkInfo": 20,
"UserInfo": 21,
"RoomInfo": 22,
"RoomMessage": 23,
"RoomAddUser": 24,
"ServerInfo": 26,
"MessageFromClient": 27,
"ConnectedServers": 28,
"RoomInfo": 31,
"SharedFileUnshared": 35,
"AddSectionOption": 36,
"AddPluginOption": 38,
"FileDownloadUpdate": 46,
"BadPassword": 47,
"SharedFileInfo": 48,
"ClientStats": 49,
"FileRemoveSource": 50,
"CleanTables": 51,
"FileInfo": 52,
"DownloadingFiles": 53,
"DownloadedFiles": 54,
"Uploaders": 55,
"Pending": 56,
"Search": 57,
"Version": 58
}
client = {
"GuiProtocolVersion": 0,
"ConnectMore_query": 1,
"CleanOldServers": 2,
"KillServer": 3,
"ExtendedSearch": 4,
"DlLink": 8,
"RemoveServer": 9,
"SaveOptions": 10,
"RemoveDownload": 11,
"GetServerUsers": 12,
"SaveFileAs": 13,
"AddClientFriend": 14,
"AddUserFriend": 15,
"RemoveFriend": 16,
"RemoveAllFriends": 17,
"FindFriend": 18,
"ViewUsers": 19,
"ConnectAll": 20,
"ConnectServer": 21,
"DisconnectServer": 22,
"SwitchDownload": 23,
"VerifyAllChunks": 24,
"QueryFormat": 25,
"ModifyMp3Tags": 26,
"CloseSearch": 27,
"SetOption": 28,
"ConsoleCommand": 29,
"Preview": 30,
"ConnectFriend": 31,
"GetFileInfo": 37,
"EnableNetwork": 40,
"SearchQuery": 42,
"MessageToClient": 43,
"GetConnectedServers": 44,
"GetDownloadingFiles": 45,
"GetDownloadedFiles": 46,
"GuiExtensions": 47,
"RefreshUploadStats": 49,
"Download": 50,
"SetFilePriority": 51,
"Password": 52,
"CloseSearch": 53,
"AddServer": 54,
"MessageVersions": 55,
"RenameFile": 56,
"GetUploaders": 57,
"GetPending": 58,
"GetSearches": 59,
"GetSearch": 60,
"ConnectClient": 61,
"DisconnectClient": 62,
"NetworkMessage": 63,
"InterestedInSources": 64,
"GetVersion": 65
}