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


Public 成员函数 | |
| CHistoryDatabase (QObject *parent=nullptr) | |
| 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 () |
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 | OnInitializeSqliteDatabase () override |
| virtual bool | OnInitializeMySqlDatabase () override |
Protected 成员函数 继承自 CDatabase | |
| void | SetError (const QString &szErr=QString()) |
Private 成员函数 | |
| bool | OnInitializeDatabase () override |
| Initialize database | |
| virtual bool | ExportToJson (QJsonObject &obj) override |
| virtual bool | ImportFromJson (const QJsonObject &obj) override |
Private 属性 | |
| CDatabaseUrl | m_UrlDB |
额外继承的成员函数 | |
信号 继承自 CDatabase | |
| void | sigChanged () |
Protected 属性 继承自 CDatabase | |
| QString | m_szConnectName |
| QString | m_MinVersion |
| const CParameterDatabase * | m_pPara |
The CHistoryDatabase class
在文件 HistoryDatabase.h 第 24 行定义.
|
explicit |
在文件 HistoryDatabase.cpp 第 44 行定义.
| CHistoryDatabase::~CHistoryDatabase | ( | ) |
在文件 HistoryDatabase.cpp 第 50 行定义.
| bool CHistoryDatabase::addHistoryEntry | ( | const QString & | url | ) |
在文件 HistoryDatabase.cpp 第 64 行定义.
| bool CHistoryDatabase::addHistoryEntry | ( | const QString & | url, |
| const QString & | title, | ||
| const QDateTime & | time | ||
| ) |
在文件 HistoryDatabase.cpp 第 99 行定义.
| bool CHistoryDatabase::clearHistory | ( | int | days = 0 | ) |
在文件 HistoryDatabase.cpp 第 229 行定义.
| bool CHistoryDatabase::deleteDomainEntries | ( | const QString & | szDomain | ) |
在文件 HistoryDatabase.cpp 第 208 行定义.
| bool CHistoryDatabase::deleteHistoryEntry | ( | const QString & | url | ) |
在文件 HistoryDatabase.cpp 第 189 行定义.
| bool CHistoryDatabase::deleteHistoryEntry | ( | int | id | ) |
在文件 HistoryDatabase.cpp 第 172 行定义.
|
overrideprivatevirtual |
重载 CDatabase .
在文件 HistoryDatabase.cpp 第 510 行定义.
| QList< HistoryItem > CHistoryDatabase::getAllHistory | ( | int | limit = -1, |
| int | offset = 0 |
||
| ) |
在文件 HistoryDatabase.cpp 第 281 行定义.
| QList< HistoryItem > CHistoryDatabase::getHistoryByDate | ( | const QDate & | date | ) |
在文件 HistoryDatabase.cpp 第 323 行定义.
| QList< HistoryItem > CHistoryDatabase::getHistoryByDate | ( | const QDate & | start, |
| const QDate & | end, | ||
| int | limit = 100 |
||
| ) |
在文件 HistoryDatabase.cpp 第 357 行定义.
| HistoryItem CHistoryDatabase::getHistoryById | ( | int | id | ) |
在文件 HistoryDatabase.cpp 第 444 行定义.
| HistoryItem CHistoryDatabase::getHistoryByUrl | ( | const QString & | url | ) |
在文件 HistoryDatabase.cpp 第 409 行定义.
| int CHistoryDatabase::getHistoryCount | ( | ) |
在文件 HistoryDatabase.cpp 第 476 行定义.
| QDateTime CHistoryDatabase::getLastVisitTime | ( | ) |
在文件 HistoryDatabase.cpp 第 493 行定义.
|
overrideprivatevirtual |
重载 CDatabase .
在文件 HistoryDatabase.cpp 第 525 行定义.
|
overrideprivatevirtual |
|
overrideprotectedvirtual |
重载 CDatabase .
在文件 HistoryDatabase.cpp 第 588 行定义.
|
overrideprotectedvirtual |
重载 CDatabase .
在文件 HistoryDatabase.cpp 第 546 行定义.
| void CHistoryDatabase::scheduleCleanup | ( | int | maxDays, |
| int | maxCount | ||
| ) |
在文件 HistoryDatabase.cpp 第 255 行定义.
| QList< HistoryItem > CHistoryDatabase::searchHistory | ( | const QString & | keyword | ) |
在文件 HistoryDatabase.cpp 第 395 行定义.
| bool CHistoryDatabase::updateHistoryEntry | ( | const QString & | url, |
| const QString & | title = QString(), |
||
| const QIcon & | icon = QIcon() |
||
| ) |
在文件 HistoryDatabase.cpp 第 133 行定义.
| bool CHistoryDatabase::updateHistoryEntry | ( | int | id, |
| const QString & | title = QString(), |
||
| const QIcon & | icon = QIcon() |
||
| ) |
在文件 HistoryDatabase.cpp 第 146 行定义.
|
private |
在文件 HistoryDatabase.h 第 56 行定义.