Class sh::tools::BookmarkManager¶
-
class
sh::tools
::
BookmarkManager
: public QObject, public sh::base::Singleton¶ The bookmark manager.
Use it for getting or modifying bookmarks.
Public Functions
-
bool
hasBookmarks
()¶ Checks if any bookmarks exist.
Adds a new bookmark.
- Return
The id of the new bookmark.
-
void
removeBookmark
(QString id)¶ Removes a bookmarks.
Changes data of a bookmark.
-
void
changeBookmarkTags
(QString id, QString tags)¶ Changes the
tags
of a bookmark.
-
void
moveBookmarkUp
(QString id)¶ Moves a bookmark up within its folder.
-
void
moveBookmarkDown
(QString id)¶ Moves a bookmark down within its folder.
-
void
moveBookmarkToFolder
(QString id, QList<QString> folder)¶ Changes to
folder
of a bookmark.
-
void
doInitialize
()¶ Executes singleton initialization.
-
void
doShutdown
()¶ Executes singleton shutdown.
-
void
shutdown
()¶ Shutdown down this singleton.
-
bool
isAlive
()¶ Returns if this singleton is alive (true until its shutdown begins).
Signals
-
void
changed
()¶
Private Functions
-
BookmarkManager
()¶
-
void
moveBookmark
(QString id, int direction)¶
-
void
readBookmarks
()¶
-
void
writeBookmarks
()¶
Private Members
-
std::shared_ptr<sh::configuration::ConfigurationValue>
cfgvalBookmarks
¶
-
QMutex
_bookmarksmutex
¶
-
bool