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

parley

  • sources
  • kde-4.14
  • kdeedu
  • parley
  • src
  • collection
collection.h
Go to the documentation of this file.
1 /***************************************************************************
2 
3  Copyright 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
4  Copyright 2014 Inge Wallin <inge@lysator.liu.se>
5 
6  ***************************************************************************/
7 
8 /***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 
17 #ifndef COLLECTION_H
18 #define COLLECTION_H
19 
20 // Qt
21 #include <QObject>
22 
23 // keduvocdocument library
24 #include <keduvocdocument.h>
25 
26 // Parley
27 #include "testentry.h"
28 
29 
30 class QTimer;
31 class WordCount;
32 
33 
34 class Collection : public QObject
35 {
36  Q_OBJECT
37 
38 public:
39  Collection(KEduVocDocument *doc, QObject* parent = 0);
40  Collection(KUrl *url, QObject* parent = 0);
41  ~Collection();
42 
43 
44  KEduVocDocument *eduVocDocument();
45 
46  void setTitle(const QString& title);
47 
48  void numDueWords(WordCount &wc);
49 
50 
53  void enableAutoBackup(bool enable);
54 
55 public Q_SLOTS:
56 
58  void close();
59 
60 Q_SIGNALS:
63  void documentChanged(KEduVocDocument *newDocument);
64  void languagesChanged();
65  void statesNeedSaving();
66 
67 private:
68  void initializeDefaultGrammar(KEduVocDocument *doc);
69  void setDefaultDocumentProperties(KEduVocDocument *doc);
70 
71  private:
72  // The contents of the document
73  KEduVocDocument *m_doc;
74 
75  QTimer *m_backupTimer; // Timer for next autosave
76  QList<TestEntry*> m_allTestEntries;
77 
78 };
79 
80 #endif
Collection::enableAutoBackup
void enableAutoBackup(bool enable)
Enable/disable the timed auto backup.
Definition: collection.cpp:108
Collection::Collection
Collection(KEduVocDocument *doc, QObject *parent=0)
Definition: collection.cpp:58
Collection
Definition: collection.h:34
Collection::documentChanged
void documentChanged(KEduVocDocument *newDocument)
Emitted when the document pointer is changed.
WordCount
Definition: utils.h:30
Collection::~Collection
~Collection()
Definition: collection.cpp:75
testentry.h
Collection::eduVocDocument
KEduVocDocument * eduVocDocument()
Definition: collection.cpp:91
Collection::statesNeedSaving
void statesNeedSaving()
Collection::close
void close()
close the document
Definition: collection.cpp:160
Collection::languagesChanged
void languagesChanged()
QTimer
QObject
Collection::setTitle
void setTitle(const QString &title)
Definition: collection.cpp:101
QString
QList< TestEntry * >
Collection::numDueWords
void numDueWords(WordCount &wc)
Definition: collection.cpp:123
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

parley

Skip menu "parley"
  • 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