libkdeedu/keduvocdocument
keduvoclesson.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 00003 Copyright 2007 Jeremy Whiting <jeremywhiting@scitools.com> 00004 Copyright 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net> 00005 00006 ***************************************************************************/ 00007 00008 /*************************************************************************** 00009 * * 00010 * This program is free software; you can redistribute it and/or modify * 00011 * it under the terms of the GNU General Public License as published by * 00012 * the Free Software Foundation; either version 2 of the License, or * 00013 * (at your option) any later version. * 00014 * * 00015 ***************************************************************************/ 00016 00017 #ifndef KEDUVOCLESSON_H 00018 #define KEDUVOCLESSON_H 00019 00020 #include "libkeduvocdocument_export.h" 00021 00022 #include "keduvoccontainer.h" 00023 00024 class KEduVocExpression; 00025 00027 class KEDUVOCDOCUMENT_EXPORT KEduVocLesson :public KEduVocContainer 00028 { 00029 public: 00031 explicit KEduVocLesson(const QString& name, KEduVocContainer *parent = 0); 00032 00033 // void appendChildLesson(KEduVocLesson *child); 00034 00035 // QList<KEduVocLesson *> childLessons(); 00036 // KEduVocLesson *childLesson(int row); 00037 00038 // int childLessonCount() const; 00039 00040 // int row() const; 00041 // KEduVocLesson *parent(); 00042 00044 KEduVocLesson( const KEduVocLesson &other ); 00045 00047 ~KEduVocLesson(); 00048 00050 KEduVocLesson& operator= ( const KEduVocLesson& ); 00051 00052 KEduVocExpression* entry(int row, EnumEntriesRecursive recursive = NotRecursive); 00053 00055 QList < KEduVocExpression* > entries(EnumEntriesRecursive recursive = NotRecursive); 00056 00058 int entryCount(EnumEntriesRecursive recursive = NotRecursive); 00059 00063 void appendEntry(KEduVocExpression* entry); 00064 00070 void insertEntry(int index, KEduVocExpression* entry); 00071 00075 void removeEntry(KEduVocExpression* entry); 00076 00077 private: 00078 class Private; 00079 Private * const d; 00080 }; 00081 00082 #endif
KDE 4.2 API Reference