kiten/lib
EntryList.h
Go to the documentation of this file.00001 /* This file is part of Kiten, a KDE Japanese Reference Tool... 00002 Copyright (C) 2001 Jason Katz-Brown <jason@katzbrown.com> 00003 (C) 2006 Joseph Kerian <jkerian@gmail.com> 00004 (C) 2006 Eric Kjeldergaard <kjelderg@gmail.com> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 Boston, MA 02110-1301, USA. 00020 */ 00021 00022 #ifndef KITEN_ENTRYLIST_H 00023 #define KITEN_ENTRYLIST_H 00024 00025 #include <QtCore/QString> 00026 #include <QtCore/QStringList> 00027 #include <QtCore/QList> 00028 00029 #include "libkitenexport.h" 00030 #include "DictQuery.h" 00031 #include "Entry.h" 00032 00035 class KITEN_EXPORT EntryList : public QList<Entry*> { 00036 00037 public: 00039 typedef QListIterator<Entry*> EntryIterator; 00040 00042 EntryList(); 00044 EntryList(const EntryList &); 00047 virtual ~EntryList(); 00050 void deleteAll(); 00051 00053 QString toString() const; 00055 QString toHTML() const; 00056 00060 QString toString(unsigned int start, unsigned int length) const; 00064 QString toHTML(unsigned int start, unsigned int length) const; 00068 QString toKVTML(unsigned int start, unsigned int length) const; 00069 00080 void sort(QStringList &sortOrder,QStringList &dictionaryOrder); 00081 00083 const EntryList& operator+=(const EntryList &); 00085 const EntryList& operator=(const EntryList &); 00087 void appendList(const EntryList *); 00090 DictQuery getQuery() const; 00092 void setQuery(const DictQuery&); 00093 00094 int scrollValue() const; 00095 void setScrollValue(int val); 00096 00097 private: 00098 class Private; 00099 Private * const d; 00100 }; 00101 00102 #endif
KDE 4.2 API Reference