|
玉兔远程控制 0.1.0-bate6
|


Public 成员函数 | |
| bool | addHistoryEntry (const QString &url) |
| bool | addHistoryEntry (const QString &url, const QString &title, const QDateTime &time) |
| bool | updateHistoryEntry (const QString &url, const QString &title=QString(), const QIcon &icon=QIcon()) |
| bool | updateHistoryEntry (int id, const QString &title=QString(), const QIcon &icon=QIcon()) |
| bool | deleteHistoryEntry (int id) |
| bool | deleteHistoryEntry (const QString &url) |
| bool | deleteDomainEntries (const QString &szDomain) |
| bool | clearHistory (int days=0) |
| void | scheduleCleanup (int maxDays, int maxCount) |
| QList< HistoryItem > | getAllHistory (int limit=-1, int offset=0) |
| QList< HistoryItem > | getHistoryByDate (const QDate &date) |
| QList< HistoryItem > | getHistoryByDate (const QDate &start, const QDate &end, int limit=100) |
| QList< HistoryItem > | searchHistory (const QString &keyword) |
| HistoryItem | getHistoryByUrl (const QString &url) |
| HistoryItem | getHistoryById (int id) |
| int | getHistoryCount () |
| QDateTime | getLastVisitTime () |
| bool | importFromCSV (const QString &filename) |
| bool | exportToCSV (const QString &filename) |
| bool | importFromJson (const QString &filename) |
| bool | exportToJson (const QString &filename) |
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) |
静态 Public 成员函数 | |
| static CHistoryDatabase * | Instance (const QString &szPath=QString()) |
Private 成员函数 | |
| QString | escapeForCsv (const QString &text) |
| QString | unescapeCsvField (const QString &field) |
| bool | validateCsvHeader (const QString &headerLine) |
| QStringList | parseCsvLine (const QString &line) |
| bool | importCsvRecord (const QStringList &fields) |
| CHistoryDatabase (QObject *parent=nullptr) | |
| bool | OnInitializeDatabase () override |
| virtual bool | ExportToJson (QJsonObject &obj) override |
| virtual bool | ImportFromJson (const QJsonObject &obj) override |
Private 属性 | |
| CDatabaseUrl | m_UrlDB |
额外继承的成员函数 | |
信号 继承自 CDatabase | |
| void | sigChanged () |
Protected 成员函数 继承自 CDatabase | |
| virtual bool | OnInitializeSqliteDatabase () |
| virtual bool | OnInitializeMySqlDatabase () |
Protected 属性 继承自 CDatabase | |
| QString | m_szConnectName |
| QString | m_MinVersion |
| CParameterDatabase * | m_pPara |
在文件 HistoryDatabase.h 第 20 行定义.
|
explicitprivate |
在文件 HistoryDatabase.cpp 第 60 行定义.
|
private |
在文件 HistoryDatabase.cpp 第 66 行定义.
| bool CHistoryDatabase::addHistoryEntry | ( | const QString & | url | ) |
在文件 HistoryDatabase.cpp 第 98 行定义.
| bool CHistoryDatabase::addHistoryEntry | ( | const QString & | url, |
| const QString & | title, | ||
| const QDateTime & | time | ||
| ) |
在文件 HistoryDatabase.cpp 第 129 行定义.
| bool CHistoryDatabase::clearHistory | ( | int | days = 0 | ) |
在文件 HistoryDatabase.cpp 第 224 行定义.
| bool CHistoryDatabase::deleteDomainEntries | ( | const QString & | szDomain | ) |
在文件 HistoryDatabase.cpp 第 209 行定义.
| bool CHistoryDatabase::deleteHistoryEntry | ( | const QString & | url | ) |
在文件 HistoryDatabase.cpp 第 198 行定义.
| bool CHistoryDatabase::deleteHistoryEntry | ( | int | id | ) |
在文件 HistoryDatabase.cpp 第 189 行定义.
|
private |
在文件 HistoryDatabase.cpp 第 627 行定义.
| bool CHistoryDatabase::exportToCSV | ( | const QString & | filename | ) |
在文件 HistoryDatabase.cpp 第 594 行定义.
| bool CHistoryDatabase::exportToJson | ( | const QString & | filename | ) |
在文件 HistoryDatabase.cpp 第 490 行定义.
|
overrideprivatevirtual |
实现了 CDatabase.
在文件 HistoryDatabase.cpp 第 755 行定义.
| QList< HistoryItem > CHistoryDatabase::getAllHistory | ( | int | limit = -1, |
| int | offset = 0 |
||
| ) |
在文件 HistoryDatabase.cpp 第 272 行定义.
| QList< HistoryItem > CHistoryDatabase::getHistoryByDate | ( | const QDate & | date | ) |
在文件 HistoryDatabase.cpp 第 311 行定义.
| QList< HistoryItem > CHistoryDatabase::getHistoryByDate | ( | const QDate & | start, |
| const QDate & | end, | ||
| int | limit = 100 |
||
| ) |
在文件 HistoryDatabase.cpp 第 340 行定义.
| HistoryItem CHistoryDatabase::getHistoryById | ( | int | id | ) |
在文件 HistoryDatabase.cpp 第 414 行定义.
| HistoryItem CHistoryDatabase::getHistoryByUrl | ( | const QString & | url | ) |
在文件 HistoryDatabase.cpp 第 387 行定义.
| int CHistoryDatabase::getHistoryCount | ( | ) |
在文件 HistoryDatabase.cpp 第 438 行定义.
| QDateTime CHistoryDatabase::getLastVisitTime | ( | ) |
在文件 HistoryDatabase.cpp 第 450 行定义.
|
private |
在文件 HistoryDatabase.cpp 第 726 行定义.
| bool CHistoryDatabase::importFromCSV | ( | const QString & | filename | ) |
在文件 HistoryDatabase.cpp 第 521 行定义.
|
overrideprivatevirtual |
实现了 CDatabase.
在文件 HistoryDatabase.cpp 第 760 行定义.
| bool CHistoryDatabase::importFromJson | ( | const QString & | filename | ) |
在文件 HistoryDatabase.cpp 第 462 行定义.
|
static |
在文件 HistoryDatabase.cpp 第 44 行定义.
|
overrideprivatevirtual |
重载 CDatabase .
在文件 HistoryDatabase.cpp 第 71 行定义.
|
private |
在文件 HistoryDatabase.cpp 第 672 行定义.
| void CHistoryDatabase::scheduleCleanup | ( | int | maxDays, |
| int | maxCount | ||
| ) |
在文件 HistoryDatabase.cpp 第 246 行定义.
| QList< HistoryItem > CHistoryDatabase::searchHistory | ( | const QString & | keyword | ) |
在文件 HistoryDatabase.cpp 第 373 行定义.
|
private |
在文件 HistoryDatabase.cpp 第 653 行定义.
| bool CHistoryDatabase::updateHistoryEntry | ( | const QString & | url, |
| const QString & | title = QString(), |
||
| const QIcon & | icon = QIcon() |
||
| ) |
在文件 HistoryDatabase.cpp 第 159 行定义.
| bool CHistoryDatabase::updateHistoryEntry | ( | int | id, |
| const QString & | title = QString(), |
||
| const QIcon & | icon = QIcon() |
||
| ) |
在文件 HistoryDatabase.cpp 第 172 行定义.
|
private |
在文件 HistoryDatabase.cpp 第 705 行定义.
|
private |
在文件 HistoryDatabase.h 第 64 行定义.