MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / addBookmark

Method addBookmark

Plugins/WebBrowser/Bookmark/BookmarkDatabase.cpp:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48int CBookmarkDatabase::addBookmark(const BookmarkItem &item)
49{
50 int urlId = m_UrlDB.AddUrl(item.url, item.title, item.icon);
51 auto tree = BookmarkToTree(item);
52 tree.SetKey(urlId);
53 return m_TreeDB.Add(tree);
54}
55
56bool CBookmarkDatabase::updateBookmark(const BookmarkItem &item)
57{

Callers 2

on_pbAdd_clickedMethod · 0.80
onAddBookmarkMethod · 0.80

Calls 3

AddUrlMethod · 0.80
SetKeyMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected