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 ***************************************************************************/
13 #include <QtCore/QMultiHash>
14 #include <QtCore/QList>
21 @author Hideki Ikemoto
23 class KDE_EXPORT Thread
25 static QMultiHash<QString, Thread*>* m_threadDict;
32 QList<int> m_markList;
35 Thread(const KUrl& datUrl);
38 const KUrl& datUrl() const;
40 const QString& threadName() const;
41 void setThreadName(const QString& name);
44 void setResNum(int num);
47 void setReadNum(int num);
50 void setViewPos(int viewPos);
52 const QList<int>& markList() const;
53 void setMarkList(const QList<int>& markList);
54 bool isMarked(int num);
55 bool setMark(int num, bool newStatus);
57 /*----------------------*/
59 static Thread* getByUrl(const KUrl& datUrl);
60 static Thread* getByUrlNew(const KUrl& datUrl);
61 static void replace(const QString& fromUrl, const QString& toUrl);