![]() |
Falkon Develop
Cross-platform Qt-based web browser
|
The class exposing the Bookmarks API to QML. More...
#include <qmlbookmarks.h>
Signals | |
| void | created (QmlBookmarkTreeNode *treeNode) |
| This signal is emitted when a new bookmark item is created. More... | |
| void | changed (QmlBookmarkTreeNode *treeNode) |
| This signal is emitted when a bookmark item is edited. More... | |
| void | removed (QmlBookmarkTreeNode *treeNode) |
| This signal is emitted when a bookmark item is removed. More... | |
Public Member Functions | |
| QmlBookmarks (QObject *parent=nullptr) | |
| Q_INVOKABLE bool | isBookmarked (const QString &url) const |
| Checks if the url is bookmarked. More... | |
| Q_INVOKABLE QmlBookmarkTreeNode * | rootItem () const |
| Get the root bookmark item. More... | |
| Q_INVOKABLE QmlBookmarkTreeNode * | toolbarFolder () const |
| Get the bookmarks toolbar. More... | |
| Q_INVOKABLE QmlBookmarkTreeNode * | menuFolder () const |
| Get the bookmarks menu folder. More... | |
| Q_INVOKABLE QmlBookmarkTreeNode * | unsortedFolder () const |
| Get the unsorted bookmarks folder. More... | |
| Q_INVOKABLE QmlBookmarkTreeNode * | lastUsedFolder () const |
| Get the last used bookmarks folder. More... | |
| Q_INVOKABLE bool | create (const QVariantMap &map) const |
| Creates a bookmark item. More... | |
| Q_INVOKABLE bool | remove (QmlBookmarkTreeNode *treeNode) const |
| Removes a bookmark item. More... | |
| Q_INVOKABLE QList< QObject * > | search (const QVariantMap &map) const |
| QmlBookmarks::search. More... | |
| Q_INVOKABLE bool | update (QObject *object, const QVariantMap &changes) const |
| Updates a bookmark item. More... | |
| Q_INVOKABLE QmlBookmarkTreeNode * | get (const QString &string) const |
| Get the first matched bookmark item. More... | |
| Q_INVOKABLE QList< QObject * > | getChildren (QObject *object) const |
| Get children of the bookmark item. More... | |
The class exposing the Bookmarks API to QML.
Definition at line 28 of file qmlbookmarks.h.
|
explicit |
Definition at line 24 of file qmlbookmarks.cpp.
|
signal |
This signal is emitted when a bookmark item is edited.
| bookmark | item, exposed to QML as QmlBookmarkTreeNode |
| bool QmlBookmarks::create | ( | const QVariantMap & | map | ) | const |
Creates a bookmark item.
| A | JavaScript object containing
|
Definition at line 121 of file qmlbookmarks.cpp.
|
signal |
This signal is emitted when a new bookmark item is created.
| bookmark | item, exposed to QML as QmlBookmarkTreeNode |
| QmlBookmarkTreeNode * QmlBookmarks::get | ( | const QString & | string | ) | const |
Get the first matched bookmark item.
| String | representing the query |
Definition at line 229 of file qmlbookmarks.cpp.
| QList< QObject * > QmlBookmarks::getChildren | ( | QObject * | object | ) | const |
Get children of the bookmark item.
| Object | of type QmlBookmarkTreeNode, representing the parent whose children are requested. |
Definition at line 241 of file qmlbookmarks.cpp.
| bool QmlBookmarks::isBookmarked | ( | const QString & | url | ) | const |
Checks if the url is bookmarked.
| String | representing the url to check |
Definition at line 91 of file qmlbookmarks.cpp.
| QmlBookmarkTreeNode * QmlBookmarks::lastUsedFolder | ( | ) | const |
Get the last used bookmarks folder.
Definition at line 116 of file qmlbookmarks.cpp.
| QmlBookmarkTreeNode * QmlBookmarks::menuFolder | ( | ) | const |
Get the bookmarks menu folder.
Definition at line 106 of file qmlbookmarks.cpp.
| bool QmlBookmarks::remove | ( | QmlBookmarkTreeNode * | treeNode | ) | const |
Removes a bookmark item.
| treeNode | Object of type QmlBookmarkTreeNode to be removed |
Definition at line 158 of file qmlbookmarks.cpp.
|
signal |
This signal is emitted when a bookmark item is removed.
| bookmark | item, exposed to QML as QmlBookmarkTreeNode |
| QmlBookmarkTreeNode * QmlBookmarks::rootItem | ( | ) | const |
Get the root bookmark item.
Definition at line 96 of file qmlbookmarks.cpp.
| QList< QObject * > QmlBookmarks::search | ( | const QVariantMap & | map | ) | const |
| A | JavaScript object containing
|
Definition at line 168 of file qmlbookmarks.cpp.
| QmlBookmarkTreeNode * QmlBookmarks::toolbarFolder | ( | ) | const |
Get the bookmarks toolbar.
Definition at line 101 of file qmlbookmarks.cpp.
| QmlBookmarkTreeNode * QmlBookmarks::unsortedFolder | ( | ) | const |
Get the unsorted bookmarks folder.
Definition at line 111 of file qmlbookmarks.cpp.
| bool QmlBookmarks::update | ( | QObject * | object, |
| const QVariantMap & | changes | ||
| ) | const |
Updates a bookmark item.
| Object | of type QmlBookmarkTreeNode, representing the bookmark to update |
| JavaScript | object containing the values to be updated
|
Definition at line 191 of file qmlbookmarks.cpp.