The CBookmarkDatabase class.
More...
#include <BookmarkDatabase.h>
|
|
void | bookmarksChanged () |
| |
|
void | bookmarkAdded (const BookmarkItem &item) |
| |
|
void | bookmarkUpdated (const BookmarkItem &item) |
| |
|
void | bookmarkDeleted (int id) |
| |
|
void | folderAdded (const BookmarkItem &folder) |
| |
|
void | folderUpdated (const BookmarkItem &folder) |
| |
|
void | folderDeleted (int folderId) |
| |
|
void | sigChanged () |
| |
|
|
| CBookmarkDatabase (QObject *parent=nullptr) |
| |
| int | addBookmark (const BookmarkItem &item) |
| |
| bool | updateBookmark (const BookmarkItem &item) |
| |
| bool | deleteBookmark (int id) |
| |
| bool | deleteBookmark (const QList< BookmarkItem > &items) |
| |
| bool | moveBookmark (int id, int newFolderId) |
| |
| int | addFolder (const QString &name, int parentId=0) |
| |
| bool | renameFolder (int folderId, const QString &newName) |
| |
| bool | deleteFolder (int folderId) |
| |
| bool | moveFolder (int folderId, int newParentId) |
| |
| BookmarkItem | getBookmark (int id) |
| |
| QList< BookmarkItem > | getBookmarkByUrl (const QString &url) |
| |
| QList< BookmarkItem > | getAllBookmarks (int folderId=0) |
| |
| QList< BookmarkItem > | searchBookmarks (const QString &keyword) |
| |
| QList< BookmarkItem > | getAllFolders () |
| |
| QList< BookmarkItem > | getSubFolders (int folderId) |
| |
| TreeItem | BookmarkToTree (const BookmarkItem &tree, bool setKey=false) |
| |
| BookmarkItem | TreeToBookmark (const TreeItem &tree) |
| |
| BookmarkItem | TreeToBookmark (const TreeItem &item, const CDatabaseUrl::UrlItem &url) |
| |
|
| CDatabase (QObject *parent=nullptr) |
| |
| QSqlDatabase | GetDatabase () const |
| |
| virtual bool | IsOpen () const |
| |
| void | CloseDatabase () |
| | Close database.
|
| |
| const CParameterDatabase * | GetParameter () const |
| |
| const QString | GetError () const |
| |
| bool | SetDatabase (const CDatabase *db) |
| | Share an existing database.
|
| |
| bool | SetDatabase (const QSqlDatabase db, const CParameterDatabase *pPara) |
| | Share an existing database.
|
| |
| bool | OpenDatabase (const CParameterDatabase *pPara=nullptr, const QString &szConnectName=QString()) |
| | Open a new database.
|
| |
| bool | OpenMySqlDatabase (const CParameterDatabase *pPara, const QString &szConnectName=QString()) |
| |
| bool | OpenODBCDatabase (const CParameterDatabase *pPara, const QString &szConnectName=QString()) |
| |
| bool | OpenSQLiteDatabase (const CParameterDatabase *pPara, const QString &szConnectionName=QString()) |
| |
| bool | OpenSQLiteDatabase (const QString &szFile, const QString &szConnectionName=QString()) |
| |
| virtual bool | ExportToJsonFile (const QString &szFile) |
| |
| virtual bool | ImportFromJsonFile (const QString &szFile) |
| |
The CBookmarkDatabase class.
Definition at line 66 of file BookmarkDatabase.h.
◆ ~CBookmarkDatabase()
| CBookmarkDatabase::~CBookmarkDatabase |
( |
| ) |
|
◆ addBookmark()
| int CBookmarkDatabase::addBookmark |
( |
const BookmarkItem & |
item | ) |
|
◆ addFolder()
| int CBookmarkDatabase::addFolder |
( |
const QString & |
name, |
|
|
int |
parentId = 0 |
|
) |
| |
◆ BookmarkToTree()
◆ deleteBookmark() [1/2]
| bool CBookmarkDatabase::deleteBookmark |
( |
const QList< BookmarkItem > & |
items | ) |
|
◆ deleteBookmark() [2/2]
| bool CBookmarkDatabase::deleteBookmark |
( |
int |
id | ) |
|
◆ deleteFolder()
| bool CBookmarkDatabase::deleteFolder |
( |
int |
folderId | ) |
|
◆ ExportToJson() [1/2]
| bool CBookmarkDatabase::ExportToJson |
( |
int |
parentId, |
|
|
QJsonArray & |
obj |
|
) |
| |
|
private |
◆ ExportToJson() [2/2]
| bool CBookmarkDatabase::ExportToJson |
( |
QJsonObject & |
obj | ) |
|
|
overrideprivatevirtual |
◆ getAllBookmarks()
| QList< BookmarkItem > CBookmarkDatabase::getAllBookmarks |
( |
int |
folderId = 0 | ) |
|
◆ getAllFolders()
◆ getBookmark()
◆ getBookmarkByUrl()
| QList< BookmarkItem > CBookmarkDatabase::getBookmarkByUrl |
( |
const QString & |
url | ) |
|
◆ getSubFolders()
| QList< BookmarkItem > CBookmarkDatabase::getSubFolders |
( |
int |
folderId | ) |
|
◆ ImportFromJson() [1/2]
| bool CBookmarkDatabase::ImportFromJson |
( |
const QJsonObject & |
obj | ) |
|
|
overrideprivatevirtual |
◆ ImportFromJson() [2/2]
| bool CBookmarkDatabase::ImportFromJson |
( |
int |
parentId, |
|
|
const QJsonArray & |
obj |
|
) |
| |
|
private |
◆ moveBookmark()
| bool CBookmarkDatabase::moveBookmark |
( |
int |
id, |
|
|
int |
newFolderId |
|
) |
| |
◆ moveFolder()
| bool CBookmarkDatabase::moveFolder |
( |
int |
folderId, |
|
|
int |
newParentId |
|
) |
| |
◆ OnInitializeDatabase()
| bool CBookmarkDatabase::OnInitializeDatabase |
( |
| ) |
|
|
overrideprivatevirtual |
◆ renameFolder()
| bool CBookmarkDatabase::renameFolder |
( |
int |
folderId, |
|
|
const QString & |
newName |
|
) |
| |
◆ searchBookmarks()
| QList< BookmarkItem > CBookmarkDatabase::searchBookmarks |
( |
const QString & |
keyword | ) |
|
◆ TreeToBookmark() [1/2]
◆ TreeToBookmark() [2/2]
◆ updateBookmark()
| bool CBookmarkDatabase::updateBookmark |
( |
const BookmarkItem & |
item | ) |
|
◆ m_TreeDB
◆ m_UrlDB
The documentation for this class was generated from the following files:
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Plugins/WebBrowser/Bookmark/BookmarkDatabase.h
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Plugins/WebBrowser/Bookmark/BookmarkDatabase.cpp