libkdeedu/keduvocdocument
keduvocmultiplechoice.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 00003 manage multiple choice suggestions for queries 00004 00005 ----------------------------------------------------------------------- 00006 00007 begin : Mon Oct 29 18:09:29 1999 00008 00009 copyright : (C) 1999-2001 Ewald Arnold <kvoctrain@ewald-arnold.de> 00010 00011 (C) 2005 Peter Hedlund <peter.hedlund@kdemail.net> 00012 00013 ----------------------------------------------------------------------- 00014 00015 ***************************************************************************/ 00016 00017 /*************************************************************************** 00018 * * 00019 * This program is free software; you can redistribute it and/or modify * 00020 * it under the terms of the GNU General Public License as published by * 00021 * the Free Software Foundation; either version 2 of the License, or * 00022 * (at your option) any later version. * 00023 * * 00024 ***************************************************************************/ 00025 00026 00027 #ifndef KEDUVOCMULTIPLECHOICE_H 00028 #define KEDUVOCMULTIPLECHOICE_H 00029 00030 #include "libkeduvocdocument_export.h" 00031 00032 #include <QtCore/QStringList> 00033 00034 class KEDUVOCDOCUMENT_EXPORT KEduVocMultipleChoice 00035 { 00036 public: 00037 KEduVocMultipleChoice(); 00038 KEduVocMultipleChoice( const KEduVocMultipleChoice &other ); 00039 KEduVocMultipleChoice( const QStringList &choices ); 00040 00041 ~KEduVocMultipleChoice(); 00042 00043 QStringList choices() const; 00044 void appendChoice( const QString &s ); 00045 00046 QString choice( int index ) const; 00047 00048 bool isEmpty() const; 00049 void clear(); 00050 unsigned size() const; 00051 00052 bool operator== ( const KEduVocMultipleChoice &choice ) const; 00053 00054 KEduVocMultipleChoice &operator= ( const KEduVocMultipleChoice &other ); 00055 00056 private: 00057 class KEduVocMultipleChoicePrivate; 00058 KEduVocMultipleChoicePrivate * const d; 00059 }; 00060 00061 00062 #endif // MultipleChoice_included
KDE 4.2 API Reference