Commit MetaInfo

修订版d20191dd4850a88be3fd85fe8235ada24bc5011d (tree)
时间2007-07-21 22:53:44
作者ikemo <ikemo@56b1...>
Commiterikemo

Log Message

refactoring.

git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@2036 56b19765-1e22-0410-a548-a0f45d66c51a

更改概述

差异

--- a/kita/src/libkita/favoritethreads.cpp
+++ b/kita/src/libkita/favoritethreads.cpp
@@ -63,7 +63,7 @@ void FavoriteThreads::remove( const QString& datURL )
6363
6464 bool FavoriteThreads::contains( const QString& datURL )
6565 {
66- if ( getInstance() ->m_threadList.contains( datURL ) ) {
66+ if ( m_threadList.contains( datURL ) ) {
6767 return true;
6868 } else {
6969 return false;
--- a/kita/src/libkita/favoritethreads.h
+++ b/kita/src/libkita/favoritethreads.h
@@ -1,12 +1,12 @@
11 /***************************************************************************
2-* Copyright (C) 2004 by Kita Developers *
3-* ikemo@users.sourceforge.jp *
4-* *
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-***************************************************************************/
2+ * Copyright (C) 2004 by Kita Developers *
3+ * ikemo@users.sourceforge.jp *
4+ * *
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+ ***************************************************************************/
1010
1111 #ifndef FAVORITETHREADS_H
1212 #define FAVORITETHREADS_H
@@ -21,8 +21,8 @@
2121 class QDomNode;
2222
2323 /**
24-@author Hideki Ikemoto
25-*/
24+ *@author Hideki Ikemoto
25+ */
2626 class FavoriteThreadItem
2727 {
2828 public:
@@ -38,21 +38,24 @@ class FavoriteThreads
3838 {
3939 static FavoriteThreads* instance;
4040 QValueList<FavoriteThreadItem> m_threadList;
41+
4142 FavoriteThreads();
4243 ~FavoriteThreads();
44+
4345 const QValueList<FavoriteThreadItem> threadList() const;
46+ static void processThreadNode( QDomNode& node );
47+
4448 public:
4549 static FavoriteThreads* getInstance();
50+
4651 void insert( const QString& datURL );
4752 void remove( const QString& datURL );
48- static bool contains( const QString& datURL );
53+ bool contains( const QString& datURL );
4954 const QString toXML() const;
5055 static bool readFromXML( const QString& xml );
51- static void processThreadNode( QDomNode& node );
5256 static void replace( QString fromURL, QString toURL );
53- // FIXME: use Iterator
5457 static QString getDatURL( int i );
55-static int count() { return getInstance() ->m_threadList.count(); }
58+ static int count() { return getInstance() ->m_threadList.count(); }
5659 };
5760
5861 #endif
Show on old repository browser