KVIrc 5.2.6
Developer APIs
KviAvatarCache.h
Go to the documentation of this file.
1#ifndef _KVI_AVATARCACHE_H_
2#define _KVI_AVATARCACHE_H_
3//=============================================================================
4//
5// File : KviAvatarCache.h
6// Creation date : Sat 27 Dec 2003 21:19:47 by Szymon Stefanek
7//
8// This file is part of the KVIrc IRC client distribution
9// Copyright (C) 2003-2010 Szymon Stefanek <pragma at kvirc dot net>
10//
11// This program is FREE software. You can redistribute it and/or
12// modify it under the terms of the GNU General Public License
13// as published by the Free Software Foundation; either version 2
14// of the License, or (at your option) any later version.
15//
16// This program is distributed in the HOPE that it will be USEFUL,
17// but WITHOUT ANY WARRANTY; without even the implied warranty of
18// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19// See the GNU General Public License for more details.
20//
21// You should have received a copy of the GNU General Public License
22// along with this program. If not, write to the Free Software Foundation,
23// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24//
25//=============================================================================
26
32
33#include "kvi_settings.h"
34#include "KviTimeUtils.h"
35#include "KviPointerHashTable.h"
36
37#include <QString>
38
39class KviIrcMask;
40
51
57{
58protected:
64
69
70public:
72
73protected:
75
76public:
81 static void init();
82
87 static void done();
88
94
102 void replace(const QString & szIdString, const KviIrcMask & mask, const QString & szNetwork);
103
110 void remove(const KviIrcMask & mask, const QString & szNetwork);
111
118 const QString & lookup(const KviIrcMask & mask, const QString & szNetwork);
119
124 void cleanup();
125
131 void load(const QString & szFileName);
132
138 void save(const QString & szFileName);
139};
140
141#endif //_KVI_AVATARCACHE_H_
Pointer Hash Table.
Time management.
#define kvi_time_t
Definition KviTimeUtils.h:43
static KviAvatarCache * m_pAvatarCacheInstance
Definition KviAvatarCache.h:74
static void done()
Destroys the avatar cache.
Definition KviAvatarCache.cpp:53
KviPointerHashTable< QString, KviAvatarCacheEntry > * m_pAvatarDict
Definition KviAvatarCache.h:71
KviAvatarCache()
Constructs the avatar cache object.
Definition KviAvatarCache.cpp:65
static KviAvatarCache * instance()
Returns the instance of the avatar cache.
Definition KviAvatarCache.h:93
Irc user mask handling.
Definition KviIrcMask.h:48
A fast pointer hash table implementation.
Definition KviPointerHashTable.h:450
This file contains compile time settings.
#define KVILIB_API
Definition kvi_settings.h:124
Definition KviAvatarCache.h:47
kvi_time_t tLastAccess
Definition KviAvatarCache.h:49
QString szIdString
Definition KviAvatarCache.h:48
int init()
Definition winamp.cpp:118