#include <bookmarks.h>
Static Public Methods | |
void | load () |
void | save () |
bool | hasBookmark (int index) |
QString | collectionName (int index) |
int | level (int index) |
CompressedMap | map (int index) |
Movements | moves (int index) |
QDateTime | date (int index) |
QString | annotation (int index) |
void | replaceBookmark (int index, QString const &annotation, QString const &collection_name, int level, CompressedMap const &map, Movements const &moves) |
bool | hasKSokobanBookmark (int ksokoban_index) |
QString | kSokobanBookmarkCollectionAndLevel (int ksokoban_index, int &level) |
bool | importKSokobanBookmark (int ksokoban_index, int index) |
Static Private Methods | |
int | indexToIndex (int index) |
QString | collectionFileForKSokobanCollection (int collection_index) |
Static Private Attributes | |
bool | s_is_initialized |
bool | s_modified |
int | s_number_of_bookmarks |
std::map< int, int > | s_index_to_index_map |
QStringList | s_annotations |
QStringList | s_collection_names |
std::vector< int > | s_levels |
std::vector< CompressedMap > | s_maps |
std::vector< Movements > | s_moves |
std::vector< QDateTime > | s_dates |
|
Returns the annotation of the bookmark.
|
|
Returns the filename of the collection for a ksokoban collection index.
|
|
Returns the collection name of the bookmark.
|
|
Returns the date, when the bookmark was created.
|
|
Returns true, if a bookmark with the given index exists.
|
|
Returns true, if a ksokoban bookmark with the given index exists.
|
|
Tries to import a ksokoban bookmark.
|
|
Returns the internal index for the given bookmark index (or -1 if we don't have the bookmark).
|
|
Returns the collection name of the KSokoban bookmark with the given index and stores the level.
|
|
The index of the level in the collection.
|
|
Loads the bookmarks from disk. This should be the first function called (and called only once). |
|
Returns the start map of the bookmark.
|
|
Returns the moves of the bookmark.
|
|
Replaces or adds the given bookmark.
|
|
Writes the bookmarks to disk.
|
|
Here we store the annotations.
|
|
Here we store the collection names.
|
|
Here we store the dates.
|
|
Maps bookmark indices to internal indices.
|
|
If true, we have called init already.
|
|
Here we store the level numbers.
|
|
Here we store the compressed maps.
|
|
If true, the bookmarks were modified.
|
|
Here we store the moves.
|
|
The number of bookmarks stored.
|