/* Museek - Museek's 'core' library * * Copyright (C) 2003-2004 Hyriand * * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef __MU_HH__ #define __MU_HH__ #include #include #include #include #include struct _UserData { uint32 status, avgspeed, downloadnum, files, dirs; bool slotsfull; }; enum _TrState { TS_Finished = 0, TS_Transferring, TS_Negotiating, TS_Waiting, TS_Establishing, TS_Initiating, TS_Connecting, TS_Queued, TS_Address, TS_Status, TS_Offline, TS_ConnectionClosed, TS_CannotConnect, TS_Aborted, TS_Error }; enum _BaseConnState { BS_Unknown = 0, BS_Error, BS_Status, BS_Address, BS_Connecting, BS_Waiting, BS_Connected, BS_Disconnected }; struct _FolderRequest { enum _TrState state; std::string user; std::string folder; }; typedef std::map StringMap; typedef std::vector StringList; typedef std::vector WStringList; typedef struct _UserData UserData; typedef enum _TrState TrState; typedef enum _BaseConnState BaseConnState; typedef struct _FolderRequest FolderRequest; typedef StringMap Tickers; typedef std::map WTickers; typedef std::map Recommendations; typedef std::map SimilarUsers; typedef std::map > NetInfo; typedef std::map RoomList; typedef std::map RoomData; typedef std::map Folder; typedef std::map WFolder; typedef std::map Shares; typedef std::map WShares; typedef std::map Folders; typedef std::map WFolders; #endif // __MU_HH__