8#ifndef KEDUVOCDOCUMENT_H
9#define KEDUVOCDOCUMENT_H
11#include "keduvocdocument_export.h"
13#include "keduvocarticle.h"
14#include "keduvocconjugation.h"
15#include "keduvocidentifier.h"
68 FileDefaultHandling = 0x0,
70 FileOpenReadOnly = 0x2,
82 DeleteEntriesAndLesson,
113 ErrorCode open(
const QUrl &url, FileHandlingFlags flags = FileDefaultHandling);
135 ErrorCode saveAs(
const QUrl &url, FileType ft, FileHandlingFlags flags = FileDefaultHandling);
157 void setModified(
bool dirty =
true);
160 bool isModified()
const;
166 void setUrl(
const QUrl &url);
180 void setTitle(
const QString &title);
187 void setAuthor(
const QString &author);
194 void setAuthorContact(
const QString &authorContact);
201 void setLicense(
const QString &license);
208 void setDocumentComment(
const QString &comment);
211 QString documentComment()
const;
215 void setCategory(
const QString &category);
224 void setGenerator(
const QString &generator);
231 void setVersion(
const QString &ver);
246 int identifierCount()
const;
284 void removeIdentifier(
int index);
292 int indexOfIdentifier(
const QString &name)
const;
308 KEDUVOCDOCUMENT_DEPRECATED
void queryIdentifier(
QString &
org,
QString &trans)
const;
317 KEDUVOCDOCUMENT_DEPRECATED
void setQueryIdentifier(
const QString &
org,
const QString &trans);
360 void setCsvDelimiter(
const QString &delimiter);
369 static FileType detectFileType(
const QString &fileName);
379 static QString pattern(FileDialogMode mode);
386 static QString errorDescription(
int errorCode);
404 class KEduVocDocumentPrivate;
405 KEduVocDocumentPrivate *
const d;
The primary entry point to the hierarchy of objects describing vocabularies.
FileHandlingFlags
indicates file open/save status locking or readonly
void progressChanged(KEduVocDocument *, int curr_percent)
never used
LessonDeletion
delete only empty lessons or also if they have entries
void docModified(bool mod)
Emitted when the document becomes modified or saved.
ErrorCode
the return code when opening/saving
@ FileIsReadOnly
Can't save this file because it was opened read-only.
@ FileCannotWrite
unwritable file
@ FileCannotLock
Can't create an autosave file for this document.
@ InvalidXml
malformed xml or bad file formatting
@ Unknown
unspecified error
@ FileWriterFailed
file writer failed
@ FileTypeUnknown
unknown file type
@ FileReaderFailed
file reader failed
@ FileDoesNotExist
unknown file type
@ FileCannotRead
unreadable file
@ FileLocked
An autosave file exists for this document.
FileType
known vocabulary file types
@ Vokabeln
Vokabeln format.
@ Csv
Command separated values.
@ Automatic
try to automatically determine file type
FileDialogMode
used as parameter for pattern
Class to store meta information about a language or any other category in the vocabulary.
Leitner Boxes are an alternative grading system.
class to store information about a lesson
class to store translation word types
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:43 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.