#include <collection_holder.h>
Static Public Methods | |
| void | load () |
| void | save () |
| int | numberOfCollections () |
| int | numberOfPermanentCollections () |
| int | numberOfTemporaryCollections () |
| int | indexFromName (QString const &name) |
| Collection * | collection (int index) |
| bool | isTemporary (int index) |
| void | setTemporary (int index, bool temporary) |
| int | addCollection (Collection *collection, bool temporary) |
| void | removeCollection (int index) |
| void | setModified () |
| void | findCompressedMap (CompressedMap const &compressed_map, int &collection_nr, int &level_nr) |
| bool | updateCollections (QDateTime const &min_date, bool show_trival_changes) |
Static Private Methods | |
| void | getCollections (QString const &filename) |
| void | getCollections (QStringList const &files) |
Static Private Attributes | |
| std::vector< Collection *> | s_collections |
| std::vector< int > | s_temporary |
| bool | s_modified |
| bool | s_initialized |
|
|||||||||||||||
|
Adds a new collection. If a collection with the same name exists, it will be deleted! This object takes over ownership of the collection.
|
|
|
Returns a pointer to the given collection.
|
|
||||||||||||||||||||||
|
Gets the index of the collection and level of a compressed map. If the compressed map is not found, collection_nr will be set to -1.
|
|
|
Loads the collections from the given xsb-files.
|
|
|
Loads the collections from the given compiled file.
|
|
|
Returns the index of the collection with the given name or -1 if it does not exists.
|
|
|
Returns true, if the given collection is only temporary.
|
|
|
Loads the collections. Call this first and only once! |
|
|
Returns the number of collections.
|
|
|
Returns the number of non temporary collections.
|
|
|
Returns the number of temporary collections.
|
|
|
Removes the collection with the given index. The collection must be modifyable.
|
|
|
Saves the collections, if they were modified.
|
|
|
Marks a collection as modified.
|
|
|||||||||||||||
|
Makes the current collection temporary or not.
|
|
|||||||||||||||
|
Searches for updated or new collections.
|
|
|
The collections.
|
|
|
If true, load was called.
|
|
|
If true, the collection was modified.
|
|
|
The flags, if the level are only temporary.
|
1.2.9.1 written by Dimitri van Heesch,
© 1997-2001