]> Git trees. - libqmvoc.git/commitdiff
added entryCount method to lesson class
authorJeremy Paul Whiting <jpwhiting@kde.org>
Wed, 12 Sep 2007 02:21:48 +0000 (02:21 +0000)
committerJeremy Paul Whiting <jpwhiting@kde.org>
Wed, 12 Sep 2007 02:21:48 +0000 (02:21 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=711325

keduvocdocument/keduvoclesson.cpp
keduvocdocument/keduvoclesson.h

index 665e7604848704aac653956b893f676bcb788035..ae7d3e37d02beb703c8ad69bb42a22651031a52b 100644 (file)
@@ -78,6 +78,11 @@ QList<int> KEduVocLesson::entries()
     return d->m_entries.toList();
 }
 
+int KEduVocLesson::entryCount()
+{
+    return d->m_entries.count();
+}
+
 void KEduVocLesson::addEntry( int entryid )
 {
     d->m_entries.insert( entryid );
index cc53a56872eb40e2b25078bc0eade51c7fbc04f4..eb45a92183c3215d58fe5475634a428b0f7fc759 100644 (file)
@@ -52,6 +52,9 @@ public:
 
     /** get a list of all entries in the lesson */
     QList<int> entries();
+    
+    /** get the number of entries in the lesson */
+    int entryCount();
 
     /** add an entry to the lesson
      * @param entryid id of the entry to add