|
玉兔远程控制 0.1.0-bate6
|


信号 | |
| void | sigAddFolder (int id, int parentId) |
| void | sigAdd (int id, int parentId) |
信号 继承自 CDatabase | |
| void | sigChanged () |
Public 成员函数 | |
| CDatabaseTree (QObject *parent=nullptr) | |
| CDatabaseTree (const QString &szPrefix, 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 | OnInitializeDatabase () override |
| virtual bool | ExportToJson (QJsonObject &obj) override |
| virtual bool | ImportFromJson (const QJsonObject &obj) override |
Public 成员函数 继承自 CDatabase | |
| CDatabase (QObject *parent=nullptr) | |
| void | SetDatabase (QSqlDatabase db, CParameterDatabase *pPara=nullptr) |
| QSqlDatabase | GetDatabase () const |
| virtual bool | OpenDatabase (CParameterDatabase *pPara=nullptr) |
| OpenDatabase | |
| virtual bool | OpenMySqlDatabase (CParameterDatabase *pPara) |
| virtual bool | OpenODBCDatabase (CParameterDatabase *pPara) |
| virtual bool | OpenSQLiteDatabase (const QString &connectionName=QString(), const QString &dbPath=QString()) |
| virtual bool | IsOpen () const |
| virtual void | CloseDatabase () |
| virtual bool | ExportToJsonFile (const QString &szFile) |
| virtual bool | ImportFromJsonFile (const QString &szFile) |
Protected 成员函数 | |
| virtual bool | OnDeleteKey (int key) |
| 从 key 相关的表中删除 key | |
| virtual bool | OnInitializeSqliteDatabase () override |
| virtual bool | OnInitializeMySqlDatabase () override |
Private 属性 | |
| QString | m_szTableName |
| CDatabaseFolder | m_FolderDB |
额外继承的成员函数 | |
Protected 属性 继承自 CDatabase | |
| QString | m_szConnectName |
| QString | m_MinVersion |
| CParameterDatabase * | m_pPara |
在文件 DatabaseTree.h 第 93 行定义.
|
explicit |
在文件 DatabaseTree.cpp 第 512 行定义.
|
explicit |
在文件 DatabaseTree.cpp 第 519 行定义.
|
virtual |
|
virtual |
在文件 DatabaseTree.cpp 第 966 行定义.
|
virtual |
在文件 DatabaseTree.cpp 第 693 行定义.
|
virtual |
在文件 DatabaseTree.cpp 第 721 行定义.
|
virtual |
在文件 DatabaseTree.cpp 第 761 行定义.
|
virtual |
在文件 DatabaseTree.cpp 第 976 行定义.
|
overridevirtual |
实现了 CDatabase.
在文件 DatabaseTree.cpp 第 1018 行定义.
| QList< TreeItem > CDatabaseTree::GetAllNodes | ( | ) |
在文件 DatabaseTree.cpp 第 993 行定义.
| int CDatabaseTree::GetCount | ( | int | parentId = 0 | ) |
| TreeItem CDatabaseTree::GetLeaf | ( | int | id | ) |
在文件 DatabaseTree.cpp 第 805 行定义.
| int CDatabaseTree::GetLeafCount | ( | int | parentId = 0 | ) |
在文件 DatabaseTree.cpp 第 952 行定义.
| QList< TreeItem > CDatabaseTree::GetLeaves | ( | int | nodeId | ) |
Get the leaves under nodeId
| nodeId |
|
在文件 DatabaseTree.cpp 第 837 行定义.
| QList< TreeItem > CDatabaseTree::GetLeavesByKey | ( | int | key | ) |
| QList< TreeItem > CDatabaseTree::GetLeavesByKey | ( | QList< int > | key | ) |
在文件 DatabaseTree.cpp 第 909 行定义.
| TreeItem CDatabaseTree::GetNode | ( | int | id | ) |
在文件 DatabaseTree.cpp 第 988 行定义.
| int CDatabaseTree::GetNodeCount | ( | int | nParentId = 0 | ) |
在文件 DatabaseTree.cpp 第 1003 行定义.
| QList< TreeItem > CDatabaseTree::GetSubNodes | ( | int | parentId | ) |
在文件 DatabaseTree.cpp 第 998 行定义.
|
overridevirtual |
实现了 CDatabase.
在文件 DatabaseTree.cpp 第 1053 行定义.
|
virtual |
在文件 DatabaseTree.cpp 第 786 行定义.
|
virtual |
在文件 DatabaseTree.cpp 第 983 行定义.
|
protectedvirtual |
从 key 相关的表中删除 key
| key |
被 CFavoriteDatabase 重载.
在文件 DatabaseTree.cpp 第 1013 行定义.
|
overridevirtual |
重载 CDatabase .
在文件 DatabaseTree.cpp 第 527 行定义.
|
overrideprotectedvirtual |
重载 CDatabase .
在文件 DatabaseTree.cpp 第 577 行定义.
|
overrideprotectedvirtual |
重载 CDatabase .
在文件 DatabaseTree.cpp 第 543 行定义.
|
virtual |
在文件 DatabaseTree.cpp 第 971 行定义.
|
virtual |
在文件 DatabaseTree.cpp 第 662 行定义.
|
private |
在文件 DatabaseTree.h 第 175 行定义.
|
private |
在文件 DatabaseTree.h 第 174 行定义.