1
#ifndef _KVI_PROXYDB_H_
2
#define _KVI_PROXYDB_H_
4
//=============================================================================
6
// File : KviProxyDataBase.h
7
// Creation date : Sat Jul 22 2000 18:19:01 by Szymon Stefanek
9
// This file is part of the KVIrc irc client distribution
10
// Copyright (C) 2000-2010 Szymon Stefanek (pragma at kvirc dot net)
12
// This program is FREE software. You can redistribute it and/or
13
// modify it under the terms of the GNU General Public License
14
// as published by the Free Software Foundation; either version 2
15
// of the License, or (at your opinion) any later version.
17
// This program is distributed in the HOPE that it will be USEFUL,
18
// but WITHOUT ANY WARRANTY; without even the implied warranty of
19
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20
// See the GNU General Public License for more details.
22
// You should have received a copy of the GNU General Public License
23
// along with this program. If not, write to the Free Software Foundation,
24
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26
//=============================================================================
28
#include "kvi_settings.h"
29
#include "KviPointerList.h"
33
class KVILIB_API KviProxyDataBase
39
KviPointerList<KviProxy> * m_pProxyList;
40
KviProxy * m_pCurrentProxy;
43
KviPointerList<KviProxy> * proxyList(){ return m_pProxyList; };
44
KviProxy * currentProxy(){ return m_pCurrentProxy; };
45
KviProxy * findProxy(const KviProxy * pProxy, bool bName);
46
void updateProxyIp(const char * proxy,const char * ip);
47
void setCurrentProxy(KviProxy * prx){ m_pCurrentProxy = prx; };
48
void insertProxy(KviProxy * prx){ m_pProxyList->append(prx); };
49
void load(const QString &filename);
50
void save(const QString &filename);
53
#endif //_KVI_PROXYDB_H_