|
玉兔远程控制 0.1.0-bate8
|
The CDatabaseTree class 更多...
#include <DatabaseTree.h>


信号 | |
| void | sigAddNode (int id, int parentId) |
| void | sigAdd (int id, int parentId) |
信号 继承自 CDatabase | |
| void | sigChanged () |
Public 成员函数 | |
| CDatabaseTree (const QString &szPrefix=QString(), QObject *parent=nullptr) | |
| virtual int | Add (const TreeItem &item) |
| Add item | |
| virtual bool | Update (const TreeItem &item) |
| virtual bool | Delete (int id, bool delKey=false) |
| virtual bool | Delete (QList< int > items, bool delKey=false) |
| virtual bool | DeleteChild (int parentId, bool delKey=false) |
| virtual bool | Move (int id, int newParent) |
| TreeItem | GetLeaf (int id) |
| QList< TreeItem > | GetLeaves (int nodeId) |
| Get the leaves under nodeId | |
| QList< TreeItem > | GetLeavesByKey (int key) |
| Get leaves | |
| QList< TreeItem > | GetLeavesByKey (QList< int > key) |
| int | GetLeafCount (int parentId=0) |
| virtual int | AddNode (const QString &name, int parentId=0) |
| virtual bool | RenameNode (int id, const QString &newName) |
| virtual bool | DeleteNode (int id, bool delKey=false) |
| virtual bool | MoveNode (int id, int newParentId) |
| TreeItem | GetNode (int id) |
| QList< TreeItem > | GetAllNodes () |
| QList< TreeItem > | GetSubNodes (int parentId) |
| int | GetNodeCount (int nParentId=0) |
| int | GetCount (int parentId=0) |
| 得到指定id节点下的所有节点和叶子数。不递归。 | |
| virtual bool | ExportToJson (QJsonObject &obj) override |
| virtual bool | ImportFromJson (const QJsonObject &obj) override |
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) |
Protected 成员函数 | |
| virtual bool | OnDeleteKey (int key) |
| 从 key 相关的表中删除 key | |
| virtual bool | OnInitializeDatabase () override |
| Initialize database | |
| virtual bool | OnInitializeSqliteDatabase () override |
| virtual bool | OnInitializeMySqlDatabase () override |
Protected 成员函数 继承自 CDatabase | |
| void | SetError (const QString &szErr=QString()) |
Private 属性 | |
| QString | m_szTableName |
| CDatabaseNode | m_FolderDB |
额外继承的成员函数 | |
Protected 属性 继承自 CDatabase | |
| QString | m_szConnectName |
| QString | m_MinVersion |
| const CParameterDatabase * | m_pPara |
The CDatabaseTree class
在文件 DatabaseTree.h 第 109 行定义.
|
explicit |
在文件 DatabaseTree.cpp 第 528 行定义.
|
virtual |
|
virtual |
在文件 DatabaseTree.cpp 第 981 行定义.
|
virtual |
在文件 DatabaseTree.cpp 第 710 行定义.
|
virtual |
在文件 DatabaseTree.cpp 第 738 行定义.
|
virtual |
在文件 DatabaseTree.cpp 第 778 行定义.
|
virtual |
在文件 DatabaseTree.cpp 第 991 行定义.
|
overridevirtual |
重载 CDatabase .
在文件 DatabaseTree.cpp 第 1036 行定义.
| QList< TreeItem > CDatabaseTree::GetAllNodes | ( | ) |
在文件 DatabaseTree.cpp 第 1011 行定义.
| int CDatabaseTree::GetCount | ( | int | parentId = 0 | ) |
| TreeItem CDatabaseTree::GetLeaf | ( | int | id | ) |
在文件 DatabaseTree.cpp 第 818 行定义.
| int CDatabaseTree::GetLeafCount | ( | int | parentId = 0 | ) |
在文件 DatabaseTree.cpp 第 961 行定义.
| QList< TreeItem > CDatabaseTree::GetLeaves | ( | int | nodeId | ) |
Get the leaves under nodeId
| nodeId |
|
在文件 DatabaseTree.cpp 第 852 行定义.
| QList< TreeItem > CDatabaseTree::GetLeavesByKey | ( | int | key | ) |
| QList< TreeItem > CDatabaseTree::GetLeavesByKey | ( | QList< int > | key | ) |
在文件 DatabaseTree.cpp 第 920 行定义.
| TreeItem CDatabaseTree::GetNode | ( | int | id | ) |
在文件 DatabaseTree.cpp 第 1006 行定义.
| int CDatabaseTree::GetNodeCount | ( | int | nParentId = 0 | ) |
在文件 DatabaseTree.cpp 第 1021 行定义.
| QList< TreeItem > CDatabaseTree::GetSubNodes | ( | int | parentId | ) |
在文件 DatabaseTree.cpp 第 1016 行定义.
|
overridevirtual |
重载 CDatabase .
在文件 DatabaseTree.cpp 第 1072 行定义.
|
virtual |
在文件 DatabaseTree.cpp 第 801 行定义.
|
virtual |
在文件 DatabaseTree.cpp 第 1001 行定义.
|
protectedvirtual |
从 key 相关的表中删除 key
| key |
被 CFavoriteDatabase 重载.
在文件 DatabaseTree.cpp 第 1031 行定义.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
重载 CDatabase .
在文件 DatabaseTree.cpp 第 585 行定义.
|
overrideprotectedvirtual |
重载 CDatabase .
在文件 DatabaseTree.cpp 第 553 行定义.
|
virtual |
在文件 DatabaseTree.cpp 第 986 行定义.
|
virtual |
在文件 DatabaseTree.cpp 第 673 行定义.
|
private |
在文件 DatabaseTree.h 第 190 行定义.
|
private |
在文件 DatabaseTree.h 第 189 行定义.