#include <Folder.h>

Public Member Functions | |
| Folder (int id=-1, const QString &title=QString::null) | |
| Folder (const Folder &folder) | |
| virtual | ~Folder () |
| const char * | className () const |
| int | getId () const |
| int | getMaxId () |
| int | getMaxVocabId () |
| const QString | getTitle () const |
| void | setTitle (const QString &title) |
| const QString | getDescription () const |
| void | setDescription (const QString &desc) |
| const QString | getAuthor () const |
| void | setAuthor (const QString &author) |
| const QDateTime | getCreationDate () const |
| void | setCreationDate (const QDateTime &date) |
| const QDateTime | getModificationDate () const |
| void | setModificationDate (const QDateTime &date) |
| bool | isDirty () const |
| void | setDirty (bool isDirty, bool recursive=false) |
| bool | isMarkedForStudy () const |
| void | setMarkedForStudy (bool isMarkedForStudy) |
| bool | isMarkedForDeletion () const |
| void | setMarkedForDeletion (bool isMarkedForDeletion) |
| bool | containsTermWithTranslations (const QString &lang1, const QString &lang2) |
| bool | isReachableFromRoot () const |
| QStringList | getTranslationLanguages () |
| void | removeTranslations (const QStringList &languages) |
| void | add (Vocabulary *child) |
| void | add (Folder *child) |
| void | remove (Vocabulary *child) |
| void | remove (Folder *child) |
| bool | isEmpty () const |
| int | getChildrenCount () const |
| Folder * | getFolder (int id) |
| Vocabulary * | getVocabulary (int id) |
| Folder * | getRoot () const |
| Folder * | getParent () const |
| QString | getPath () const |
| QString | getHumanReadablePath () const |
| void | setParent (Folder *parent) |
| void | getItemsCount (uint *termCount, uint *vocabCount, uint *folderCount, uint *checkedTermCount, uint *checkedVocabCount, uint *checkedFolderCount, uint *selectedTermCount, uint *selectedVocabCount, uint *selectedFolderCount, bool isReachableFromRoot, const QString &firstLang=QString::null, const QString &testLang=QString::null) |
| Base * | first () |
| Base * | next () |
| bool | load (const QString &filename) |
| bool | loadMetadata (const QString &filename) |
| bool | saveMetadata (const QString &filename) const |
| void | buildVocabCopiesMap (QMap< int, Vocabulary > &vocabularies) const |
Static Public Member Functions | |
| static const Q_UINT32 | magicNumber (Q_UINT32(0x77446688)) |
Friends | |
| QDataStream & | operator<< (QDataStream &out, const Folder &folder) |
| QDataStream & | operator>> (QDataStream &in, Folder &folder) |
Definition at line 12 of file Folder.h.
| Folder::Folder | ( | int | id = -1, |
|
| const QString & | title = QString::null | |||
| ) |
Definition at line 3 of file Folder.cpp.
| Folder::Folder | ( | const Folder & | folder | ) |
Definition at line 9 of file Folder.cpp.
| Folder::~Folder | ( | ) | [virtual] |
Definition at line 26 of file Folder.cpp.
| static const Q_UINT32 Folder::magicNumber | ( | Q_UINT32(0x77446688) | ) | [static] |
| const char* Folder::className | ( | ) | const [inline, virtual] |
| int Folder::getId | ( | ) | const |
Definition at line 29 of file Folder.cpp.
| int Folder::getMaxId | ( | ) |
Definition at line 33 of file Folder.cpp.
| int Folder::getMaxVocabId | ( | ) |
Definition at line 45 of file Folder.cpp.
| const QString Folder::getTitle | ( | ) | const |
Definition at line 63 of file Folder.cpp.
| void Folder::setTitle | ( | const QString & | title | ) |
Definition at line 68 of file Folder.cpp.
| const QString Folder::getDescription | ( | ) | const |
Definition at line 72 of file Folder.cpp.
| void Folder::setDescription | ( | const QString & | desc | ) |
Definition at line 76 of file Folder.cpp.
| const QString Folder::getAuthor | ( | ) | const |
Definition at line 80 of file Folder.cpp.
| void Folder::setAuthor | ( | const QString & | author | ) |
Definition at line 84 of file Folder.cpp.
| const QDateTime Folder::getCreationDate | ( | ) | const |
Definition at line 88 of file Folder.cpp.
| void Folder::setCreationDate | ( | const QDateTime & | date | ) |
Definition at line 92 of file Folder.cpp.
| const QDateTime Folder::getModificationDate | ( | ) | const |
Definition at line 96 of file Folder.cpp.
| void Folder::setModificationDate | ( | const QDateTime & | date | ) |
Definition at line 100 of file Folder.cpp.
| bool Folder::isDirty | ( | ) | const |
Definition at line 404 of file Folder.cpp.
| void Folder::setDirty | ( | bool | isDirty, | |
| bool | recursive = false | |||
| ) |
Definition at line 408 of file Folder.cpp.
| bool Folder::isMarkedForStudy | ( | ) | const |
Definition at line 104 of file Folder.cpp.
| void Folder::setMarkedForStudy | ( | bool | isMarkedForStudy | ) |
Definition at line 108 of file Folder.cpp.
| bool Folder::isMarkedForDeletion | ( | ) | const |
Definition at line 112 of file Folder.cpp.
| void Folder::setMarkedForDeletion | ( | bool | isMarkedForDeletion | ) |
Definition at line 116 of file Folder.cpp.
| bool Folder::containsTermWithTranslations | ( | const QString & | lang1, | |
| const QString & | lang2 | |||
| ) |
Definition at line 132 of file Folder.cpp.
| bool Folder::isReachableFromRoot | ( | ) | const |
Definition at line 148 of file Folder.cpp.
| QStringList Folder::getTranslationLanguages | ( | ) |
Definition at line 177 of file Folder.cpp.
| void Folder::removeTranslations | ( | const QStringList & | languages | ) |
Definition at line 198 of file Folder.cpp.
| void Folder::add | ( | Vocabulary * | child | ) |
Definition at line 211 of file Folder.cpp.
| void Folder::add | ( | Folder * | child | ) |
Definition at line 216 of file Folder.cpp.
| void Folder::remove | ( | Vocabulary * | child | ) |
Definition at line 221 of file Folder.cpp.
| void Folder::remove | ( | Folder * | child | ) |
Definition at line 226 of file Folder.cpp.
| bool Folder::isEmpty | ( | ) | const |
Definition at line 231 of file Folder.cpp.
| int Folder::getChildrenCount | ( | ) | const |
Definition at line 235 of file Folder.cpp.
| Folder * Folder::getFolder | ( | int | id | ) |
Definition at line 161 of file Folder.cpp.
| Vocabulary * Folder::getVocabulary | ( | int | id | ) |
Definition at line 239 of file Folder.cpp.
| Folder * Folder::getRoot | ( | ) | const |
Definition at line 398 of file Folder.cpp.
| Folder * Folder::getParent | ( | ) | const |
Definition at line 424 of file Folder.cpp.
| QString Folder::getPath | ( | ) | const |
Definition at line 428 of file Folder.cpp.
| QString Folder::getHumanReadablePath | ( | ) | const |
Definition at line 436 of file Folder.cpp.
| void Folder::setParent | ( | Folder * | parent | ) |
Definition at line 456 of file Folder.cpp.
| void Folder::getItemsCount | ( | uint * | termCount, | |
| uint * | vocabCount, | |||
| uint * | folderCount, | |||
| uint * | checkedTermCount, | |||
| uint * | checkedVocabCount, | |||
| uint * | checkedFolderCount, | |||
| uint * | selectedTermCount, | |||
| uint * | selectedVocabCount, | |||
| uint * | selectedFolderCount, | |||
| bool | isReachableFromRoot, | |||
| const QString & | firstLang = QString::null, |
|||
| const QString & | testLang = QString::null | |||
| ) |
Definition at line 501 of file Folder.cpp.
| Base * Folder::first | ( | ) |
Definition at line 243 of file Folder.cpp.
| Base * Folder::next | ( | ) |
Definition at line 247 of file Folder.cpp.
| bool Folder::load | ( | const QString & | filename | ) |
Definition at line 251 of file Folder.cpp.
| bool Folder::loadMetadata | ( | const QString & | filename | ) |
Definition at line 304 of file Folder.cpp.
| bool Folder::saveMetadata | ( | const QString & | filename | ) | const |
Definition at line 351 of file Folder.cpp.
| void Folder::buildVocabCopiesMap | ( | QMap< int, Vocabulary > & | vocabularies | ) | const |
Definition at line 384 of file Folder.cpp.
| QDataStream& operator<< | ( | QDataStream & | out, | |
| const Folder & | folder | |||
| ) | [friend] |
Definition at line 579 of file Folder.cpp.
| QDataStream& operator>> | ( | QDataStream & | in, | |
| Folder & | folder | |||
| ) | [friend] |
Definition at line 608 of file Folder.cpp.
1.5.6