KVIrc  4.9.2
DeveloperAPIs
KviProxyDataBase.h
Go to the documentation of this file.
1 #ifndef _KVI_PROXYDB_H_
2 #define _KVI_PROXYDB_H_
3 
4 //=============================================================================
5 //
6 // File : KviProxyDataBase.h
7 // Creation date : Sat Jul 22 2000 18:19:01 by Szymon Stefanek
8 //
9 // This file is part of the KVIrc IRC client distribution
10 // Copyright (C) 2000-2010 Szymon Stefanek (pragma at kvirc dot net)
11 //
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 option) any later version.
16 //
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.
21 //
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.
25 //
26 //=============================================================================
27 
28 #include "kvi_settings.h"
29 #include "KviPointerList.h"
30 
31 class KviProxy;
32 
34 {
35 public:
38 
39 private:
42 
43 public:
44  void clear();
45  KviPointerList<KviProxy> * proxyList() { return m_pProxyList; };
46  KviProxy * currentProxy() { return m_pCurrentProxy; };
47  KviProxy * findProxy(const KviProxy * pProxy, bool bName);
48  void updateProxyIp(const char * proxy, const char * ip);
49  void setCurrentProxy(KviProxy * prx) { m_pCurrentProxy = prx; };
50  void insertProxy(KviProxy * prx) { m_pProxyList->append(prx); };
51  void load(const QString & filename);
52  void save(const QString & filename);
53 };
54 
55 #endif //_KVI_PROXYDB_H_
KviProxy * m_pCurrentProxy
Definition: KviProxyDataBase.h:41
void insertProxy(KviProxy *prx)
Definition: KviProxyDataBase.h:50
Definition: KviProxy.h:37
void setCurrentProxy(KviProxy *prx)
Definition: KviProxyDataBase.h:49
btnDict clear()
KviProxy * currentProxy()
Definition: KviProxyDataBase.h:46
KviPointerList< KviProxy > * proxyList()
Definition: KviProxyDataBase.h:45
bool save(KviThemeInfo &options, bool bSaveIcons)
Definition: KviOptions.cpp:986
C++ Template based double linked pointer list class.
Definition: KviProxyDataBase.h:33
This file contains compile time settings.
#define KVILIB_API
Definition: kvi_settings.h:125
KviPointerList< KviProxy > * m_pProxyList
Definition: KviProxyDataBase.h:40