KVIrc  4.9.2
DeveloperAPIs
KviRegisteredChannelDataBase.h
Go to the documentation of this file.
1 #ifndef _KVIREGCHANDB_H_
2 #define _KVIREGCHANDB_H_
3 
4 //=============================================================================
5 //
6 // File : KviRegisteredChannelDataBase.h
7 // Creation date : Wed Dec 29 2010 03:28:05 CEST by Elvio Basello
8 //
9 // This file is part of the KVIrc IRC client distribution
10 // Copyright (C) 2010 Elvio Basello (hellvis69 at gmail dot com)
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 // this file was originally part of KviRegisteredChannel.h
29 
30 #include "kvi_settings.h"
31 #include "KviRegisteredChannel.h"
32 
33 #include <QHash>
34 
36 {
37 public:
40 
41 protected:
42  QHash<QString, KviRegisteredChannelList *> * m_pChannelDict;
43 
44 public:
45  QHash<QString, KviRegisteredChannelList *> * channelDict() { return m_pChannelDict; }
46 
47  KviRegisteredChannel * find(const QString & szName, const QString & szNetMask);
48 
49  KviRegisteredChannel * findExact(const QString & szName, const QString & szNetMask);
50 
51  void remove(KviRegisteredChannel * pChan);
52  void add(KviRegisteredChannel * pChan);
53 
54  void load(const QString & szFilename);
55  void save(const QString & szFilename);
56 };
57 
58 #endif // _KVIREGCHANDB_H_
QHash< QString, KviRegisteredChannelList * > * channelDict()
Definition: KviRegisteredChannelDataBase.h:45
bool save(KviThemeInfo &options, bool bSaveIcons)
Definition: KviOptions.cpp:986
Definition: KviRegisteredChannel.h:34
This file contains compile time settings.
Definition: KviRegisteredChannelDataBase.h:35
#define KVILIB_API
Definition: kvi_settings.h:125
QHash< QString, KviRegisteredChannelList * > * m_pChannelDict
Definition: KviRegisteredChannelDataBase.h:42