|
玉兔远程控制 0.1.0-bate8
|
The CBookmarkDatabase class 更多...
#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) |
信号 继承自 CDatabase | |
| void | sigChanged () |
Public 成员函数 | |
| 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) |
Public 成员函数 继承自 CDatabase | |
| 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) |
Private 成员函数 | |
| bool | OnInitializeDatabase () override |
| Initialize database | |
| virtual bool | ExportToJson (QJsonObject &obj) override |
| virtual bool | ImportFromJson (const QJsonObject &obj) override |
| bool | ExportToJson (int parentId, QJsonArray &obj) |
| bool | ImportFromJson (int parentId, const QJsonArray &obj) |
Private 属性 | |
| CDatabaseTree | m_TreeDB |
| CDatabaseUrl | m_UrlDB |
额外继承的成员函数 | |
Protected 成员函数 继承自 CDatabase | |
| void | SetError (const QString &szErr=QString()) |
| virtual bool | OnInitializeSqliteDatabase () |
| virtual bool | OnInitializeMySqlDatabase () |
Protected 属性 继承自 CDatabase | |
| QString | m_szConnectName |
| QString | m_MinVersion |
| const CParameterDatabase * | m_pPara |
The CBookmarkDatabase class
在文件 BookmarkDatabase.h 第 66 行定义.
| CBookmarkDatabase::~CBookmarkDatabase | ( | ) |
在文件 BookmarkDatabase.cpp 第 26 行定义.
| int CBookmarkDatabase::addBookmark | ( | const BookmarkItem & | item | ) |
在文件 BookmarkDatabase.cpp 第 48 行定义.
| int CBookmarkDatabase::addFolder | ( | const QString & | name, |
| int | parentId = 0 |
||
| ) |
在文件 BookmarkDatabase.cpp 第 94 行定义.
| TreeItem CBookmarkDatabase::BookmarkToTree | ( | const BookmarkItem & | tree, |
| bool | setKey = false |
||
| ) |
在文件 BookmarkDatabase.cpp 第 194 行定义.
| bool CBookmarkDatabase::deleteBookmark | ( | const QList< BookmarkItem > & | items | ) |
在文件 BookmarkDatabase.cpp 第 76 行定义.
| bool CBookmarkDatabase::deleteBookmark | ( | int | id | ) |
在文件 BookmarkDatabase.cpp 第 71 行定义.
| bool CBookmarkDatabase::deleteFolder | ( | int | folderId | ) |
在文件 BookmarkDatabase.cpp 第 104 行定义.
|
private |
在文件 BookmarkDatabase.cpp 第 295 行定义.
|
overrideprivatevirtual |
重载 CDatabase .
在文件 BookmarkDatabase.cpp 第 241 行定义.
| QList< BookmarkItem > CBookmarkDatabase::getAllBookmarks | ( | int | folderId = 0 | ) |
在文件 BookmarkDatabase.cpp 第 138 行定义.
| QList< BookmarkItem > CBookmarkDatabase::getAllFolders | ( | ) |
在文件 BookmarkDatabase.cpp 第 170 行定义.
| BookmarkItem CBookmarkDatabase::getBookmark | ( | int | id | ) |
在文件 BookmarkDatabase.cpp 第 114 行定义.
| QList< BookmarkItem > CBookmarkDatabase::getBookmarkByUrl | ( | const QString & | url | ) |
在文件 BookmarkDatabase.cpp 第 124 行定义.
| QList< BookmarkItem > CBookmarkDatabase::getSubFolders | ( | int | folderId | ) |
在文件 BookmarkDatabase.cpp 第 182 行定义.
|
overrideprivatevirtual |
重载 CDatabase .
在文件 BookmarkDatabase.cpp 第 251 行定义.
|
private |
在文件 BookmarkDatabase.cpp 第 265 行定义.
| bool CBookmarkDatabase::moveBookmark | ( | int | id, |
| int | newFolderId | ||
| ) |
在文件 BookmarkDatabase.cpp 第 89 行定义.
| bool CBookmarkDatabase::moveFolder | ( | int | folderId, |
| int | newParentId | ||
| ) |
在文件 BookmarkDatabase.cpp 第 109 行定义.
|
overrideprivatevirtual |
| bool CBookmarkDatabase::renameFolder | ( | int | folderId, |
| const QString & | newName | ||
| ) |
在文件 BookmarkDatabase.cpp 第 99 行定义.
| QList< BookmarkItem > CBookmarkDatabase::searchBookmarks | ( | const QString & | keyword | ) |
在文件 BookmarkDatabase.cpp 第 150 行定义.
| BookmarkItem CBookmarkDatabase::TreeToBookmark | ( | const TreeItem & | item, |
| const CDatabaseUrl::UrlItem & | url | ||
| ) |
在文件 BookmarkDatabase.cpp 第 219 行定义.
| BookmarkItem CBookmarkDatabase::TreeToBookmark | ( | const TreeItem & | tree | ) |
在文件 BookmarkDatabase.cpp 第 211 行定义.
| bool CBookmarkDatabase::updateBookmark | ( | const BookmarkItem & | item | ) |
在文件 BookmarkDatabase.cpp 第 56 行定义.
|
private |
在文件 BookmarkDatabase.h 第 113 行定义.
|
private |
在文件 BookmarkDatabase.h 第 114 行定义.