1
#ifndef _KVIREGCHANDB_H_
2
#define _KVIREGCHANDB_H_
4
//=============================================================================
6
// File : KviRegisteredChannelDataBase.h
7
// Creation date : Wed Dec 29 2010 03:28:05 CEST by Elvio Basello
9
// This file is part of the KVIrc irc client distribution
10
// Copyright (C) 2010 Elvio Basello (hellvis69 at gmail dot com)
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
// this file was originally part of KviRegisteredChannel.h
30
#include "kvi_settings.h"
31
#include "KviRegisteredChannel.h"
35
class KVILIB_API KviRegisteredChannelDataBase
38
KviRegisteredChannelDataBase();
39
~KviRegisteredChannelDataBase();
41
QHash<QString,KviRegisteredChannelList *> * m_pChannelDict;
43
QHash<QString,KviRegisteredChannelList *> * channelDict(){ return m_pChannelDict; }
45
KviRegisteredChannel * find(const QString & szName, const QString & szNetMask);
47
KviRegisteredChannel * findExact(const QString & szName,const QString & szNetMask);
49
void remove(KviRegisteredChannel * pChan);
50
void add(KviRegisteredChannel * pChan);
52
void load(const QString & szFilename);
53
void save(const QString & szFilename);
56
#endif // _KVIREGCHANDB_H_