// FileZilla - a Windows ftp client // Copyright (C) 2002-2004 - Tim Kosse // 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. #include "stdafx.h" #include "FzApiStructures.h" t_server::t_server() { port = 0; fwbypass = FALSE; bDontRememberPass = FALSE; nServerType = 0; nPasv = 0; nTimeZoneOffset = 0; nUTF8 = 0; iForcePasvIp = -1; iUseMlsd = -1; } t_server::~t_server() { } const bool operator == (const t_server &a,const t_server &b) { if (a.host!=b.host) return false; if (a.port!=b.port) return false; if (a.user!=b.user) return false; if (a.account != b.account) return false; if (a.pass!=b.pass && a.user!=_MPT("anonymous")) return false; if (a.nServerType!=b.nServerType) return false; if (a.nPasv != b.nPasv) return false; if (a.nTimeZoneOffset != b.nTimeZoneOffset) return false; if (a.nUTF8 != b.nUTF8) return false; #ifdef MPEXT if (a.iForcePasvIp != b.iForcePasvIp) return false; if (a.iUseMlsd != b.iUseMlsd) return false; #endif return true; } const bool operator != (const t_server &a,const t_server &b) { return !(a == b); } bool t_server::operator<(const t_server &op) const { if (host