1 /***************************************************************************
2 * Copyright (C) 2004 by Kita Developers *
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 ***************************************************************************/
10 #ifndef KITATHREADINDEX_H
11 #define KITATHREADINDEX_H
13 #include <QtCore/QList>
14 #include <QtCore/QString>
25 @author Hideki Ikemoto
27 class KDE_EXPORT ThreadIndex
30 ThreadIndex(const KUrl& url);
32 QString getSubject() const;
33 void setSubject(const QString& str);
35 int getResNum() const;
36 void setResNum(int resNum);
38 int getReadNum() const;
39 void setReadNum(int readNum);
41 int getViewPos() const;
42 void setViewPos(int viewPos);
44 void setMarkList(const QList<int>& markList);
46 /*---------------------------------*/
48 void loadIndex(Thread* thread, bool checkCached = true) const;
49 void saveIndex(const Thread* thread);
53 QString getSubjectPrivate(const KConfig& config) const;
54 void setSubjectPrivate(KConfig& config, const QString& str);
56 int getResNumPrivate(KConfig& config) const;
57 void setResNumPrivate(KConfig& config, int resNum);
59 int getReadNumPrivate(KConfig& config, bool checkCached) const;
60 void setReadNumPrivate(KConfig& config, int readNum);
62 int getViewPosPrivate(const KConfig& config) const;
63 void setViewPosPrivate(KConfig& config, int viewPos);
65 QList<int> getMarkListPrivate(const KConfig& config) const;
66 void setMarkListPrivate(KConfig& config, const QList<int>& markList);