1 /***************************************************************************
2 * Copyright (C) 2003 by Hideki Ikemoto *
3 * ikemo@users.sourceforge.jp *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 ***************************************************************************/
11 #ifndef _KITACACHEINFO_H_
12 #define _KITACACHEINFO_H_
25 static KitaCacheInfo* getInstance();
26 void setReadNum(const KURL& url, int num);
27 int readNum(const KURL& url);
28 void setResNum( const KURL& url, int num );
29 int resNum( const KURL& url );
30 friend QDataStream& operator<<(QDataStream& s, KitaCacheInfo& c);
31 friend QDataStream& operator>>(QDataStream& s, KitaCacheInfo& c);
35 QMap<QString, int> m_readDict;
36 QMap<QString, int> m_resNumDict;
37 static KitaCacheInfo* instance;