digiKam
|
Public Types | |
enum | Type { Root , Folder , Bookmark , Separator , RootFolder } |
Public Member Functions | |
void | add (BookmarkNode *const child, int offset=-1) |
BookmarkNode (Type type=Root, BookmarkNode *const parent=nullptr) | |
QList< BookmarkNode * > | children () const |
bool | operator== (const BookmarkNode &other) const |
BookmarkNode * | parent () const |
void | remove (BookmarkNode *const child) |
void | setType (Type type) |
Type | type () const |
~BookmarkNode () override | |
Public Attributes | |
QDateTime | dateAdded |
QString | desc |
bool | expanded |
QString | title |
QString | url |
|
explicit |
|
override |
void Digikam::BookmarkNode::add | ( | BookmarkNode *const | child, |
int | offset = -1 |
||
) |
References Root.
Referenced by BookmarkNode(), and Digikam::RemoveBookmarksCommand::undo().
QList< BookmarkNode * > Digikam::BookmarkNode::children | ( | ) | const |
Referenced by Digikam::BookmarksModel::dropMimeData(), Digikam::BookmarksModel::entryAdded(), Digikam::BookmarksModel::index(), Digikam::BookmarksModel::parent(), Digikam::BookmarksManager::removeBookmark(), Digikam::BookmarksModel::removeRows(), Digikam::BookmarksModel::rowCount(), and Digikam::XbelWriter::write().
bool Digikam::BookmarkNode::operator== | ( | const BookmarkNode & | other | ) | const |
BookmarkNode * Digikam::BookmarkNode::parent | ( | ) | const |
void Digikam::BookmarkNode::remove | ( | BookmarkNode *const | child | ) |
Referenced by Digikam::BookmarksModel::dropMimeData(), and Digikam::RemoveBookmarksCommand::redo().
void Digikam::BookmarkNode::setType | ( | Type | type | ) |
References type().
Referenced by Digikam::BookmarksManager::importBookmarks().
BookmarkNode::Type Digikam::BookmarkNode::type | ( | ) | const |
QDateTime Digikam::BookmarkNode::dateAdded |
Referenced by Digikam::BookmarksModel::data(), and operator==().
QString Digikam::BookmarkNode::desc |
Referenced by Digikam::BookmarksModel::data(), and operator==().
bool Digikam::BookmarkNode::expanded |
Referenced by BookmarkNode(), and operator==().
QString Digikam::BookmarkNode::title |
QString Digikam::BookmarkNode::url |
Referenced by Digikam::BookmarksModel::data(), and operator==().