• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kiten/lib

  • sources
  • kde-4.14
  • kdeedu
  • kiten
  • lib
entrylist.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * This file is part of Kiten, a KDE Japanese Reference Tool *
3  * Copyright (C) 2001 Jason Katz-Brown <jason@katzbrown.com> *
4  * Copyright (C) 2006 Joseph Kerian <jkerian@gmail.com> *
5  * Copyright (C) 2006 Eric Kjeldergaard <kjelderg@gmail.com> *
6  * *
7  * This library is free software; you can redistribute it and/or *
8  * modify it under the terms of the GNU Library General Public *
9  * License as published by the Free Software Foundation; either *
10  * version 2 of the License, or (at your option) any later version. *
11  * *
12  * This library is distributed in the hope that it will be useful, *
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
15  * Library General Public License for more details. *
16  * *
17  * You should have received a copy of the GNU Library General Public License *
18  * along with this library; see the file COPYING.LIB. If not, write to *
19  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
20  * Boston, MA 02110-1301, USA. *
21  *****************************************************************************/
22 
23 #ifndef KITEN_ENTRYLIST_H
24 #define KITEN_ENTRYLIST_H
25 
26 #include <QList>
27 #include <QString>
28 #include <QStringList>
29 
30 #include "dictquery.h"
31 #include "entry.h"
32 #include "libkitenexport.h"
33 
38 class KITEN_EXPORT EntryList : public QList<Entry*>
39 {
40  public:
44  typedef QListIterator<Entry*> EntryIterator;
45 
49  EntryList();
53  EntryList( const EntryList &old );
58  virtual ~EntryList();
63  void deleteAll();
64 
68  QString toString() const;
72  QString toHTML() const;
73 
79  QString toString( unsigned int start, unsigned int length ) const;
85  QString toHTML( unsigned int start, unsigned int length ) const;
91  QString toKVTML( unsigned int start, unsigned int length ) const;
92 
105  void sort( QStringList &sortOrder, QStringList &dictionaryOrder );
106 
110  const EntryList& operator+=( const EntryList &other );
114  const EntryList& operator=( const EntryList &other );
118  void appendList( const EntryList *other );
123  DictQuery getQuery() const;
127  void setQuery( const DictQuery &newQuery );
128 
129  int scrollValue() const;
130  void setScrollValue( int val );
131 
132  private:
133  class Private;
134  Private* const d;
135 };
136 
137 #endif
QList::operator=
QList< T > & operator=(const QList< T > &other)
libkitenexport.h
KITEN_EXPORT
#define KITEN_EXPORT
Definition: libkitenexport.h:35
entry.h
QList::operator+=
QList< T > & operator+=(const QList< T > &other)
QString
QList
QStringList
EntryList::EntryIterator
QListIterator< Entry * > EntryIterator
A simple overridden iterator for working with the Entries.
Definition: entrylist.h:44
DictQuery
A class to allow users of libkiten to properly setup a database query.
Definition: dictquery.h:89
dictquery.h
QListIterator
EntryList
EntryList is a simple container for Entry objects, and is-a QList A few simple overrides allo...
Definition: entrylist.h:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kiten/lib

Skip menu "kiten/lib"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal