|
| 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) |
| |
|
| 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) |
| |
Definition at line 20 of file HistoryDatabase.h.
◆ CHistoryDatabase()
| CHistoryDatabase::CHistoryDatabase |
( |
QObject * |
parent = nullptr | ) |
|
|
explicitprivate |
◆ ~CHistoryDatabase()
| CHistoryDatabase::~CHistoryDatabase |
( |
| ) |
|
|
private |
◆ addHistoryEntry() [1/2]
| bool CHistoryDatabase::addHistoryEntry |
( |
const QString & |
url | ) |
|
◆ addHistoryEntry() [2/2]
| bool CHistoryDatabase::addHistoryEntry |
( |
const QString & |
url, |
|
|
const QString & |
title, |
|
|
const QDateTime & |
time |
|
) |
| |
◆ clearHistory()
| bool CHistoryDatabase::clearHistory |
( |
int |
days = 0 | ) |
|
◆ deleteDomainEntries()
| bool CHistoryDatabase::deleteDomainEntries |
( |
const QString & |
szDomain | ) |
|
◆ deleteHistoryEntry() [1/2]
| bool CHistoryDatabase::deleteHistoryEntry |
( |
const QString & |
url | ) |
|
◆ deleteHistoryEntry() [2/2]
| bool CHistoryDatabase::deleteHistoryEntry |
( |
int |
id | ) |
|
◆ escapeForCsv()
| QString CHistoryDatabase::escapeForCsv |
( |
const QString & |
text | ) |
|
|
private |
◆ exportToCSV()
| bool CHistoryDatabase::exportToCSV |
( |
const QString & |
filename | ) |
|
◆ exportToJson()
| bool CHistoryDatabase::exportToJson |
( |
const QString & |
filename | ) |
|
◆ ExportToJson()
| bool CHistoryDatabase::ExportToJson |
( |
QJsonObject & |
obj | ) |
|
|
overrideprivatevirtual |
◆ getAllHistory()
| QList< HistoryItem > CHistoryDatabase::getAllHistory |
( |
int |
limit = -1, |
|
|
int |
offset = 0 |
|
) |
| |
◆ getHistoryByDate() [1/2]
| QList< HistoryItem > CHistoryDatabase::getHistoryByDate |
( |
const QDate & |
date | ) |
|
◆ getHistoryByDate() [2/2]
| QList< HistoryItem > CHistoryDatabase::getHistoryByDate |
( |
const QDate & |
start, |
|
|
const QDate & |
end, |
|
|
int |
limit = 100 |
|
) |
| |
◆ getHistoryById()
◆ getHistoryByUrl()
| HistoryItem CHistoryDatabase::getHistoryByUrl |
( |
const QString & |
url | ) |
|
◆ getHistoryCount()
| int CHistoryDatabase::getHistoryCount |
( |
| ) |
|
◆ getLastVisitTime()
| QDateTime CHistoryDatabase::getLastVisitTime |
( |
| ) |
|
◆ importCsvRecord()
| bool CHistoryDatabase::importCsvRecord |
( |
const QStringList & |
fields | ) |
|
|
private |
◆ importFromCSV()
| bool CHistoryDatabase::importFromCSV |
( |
const QString & |
filename | ) |
|
◆ ImportFromJson()
| bool CHistoryDatabase::ImportFromJson |
( |
const QJsonObject & |
obj | ) |
|
|
overrideprivatevirtual |
◆ importFromJson()
| bool CHistoryDatabase::importFromJson |
( |
const QString & |
filename | ) |
|
◆ Instance()
| CHistoryDatabase * CHistoryDatabase::Instance |
( |
const QString & |
szPath = QString() | ) |
|
|
static |
◆ OnInitializeDatabase()
| bool CHistoryDatabase::OnInitializeDatabase |
( |
| ) |
|
|
overrideprivatevirtual |
◆ parseCsvLine()
| QStringList CHistoryDatabase::parseCsvLine |
( |
const QString & |
line | ) |
|
|
private |
◆ scheduleCleanup()
| void CHistoryDatabase::scheduleCleanup |
( |
int |
maxDays, |
|
|
int |
maxCount |
|
) |
| |
◆ searchHistory()
| QList< HistoryItem > CHistoryDatabase::searchHistory |
( |
const QString & |
keyword | ) |
|
◆ unescapeCsvField()
| QString CHistoryDatabase::unescapeCsvField |
( |
const QString & |
field | ) |
|
|
private |
◆ updateHistoryEntry() [1/2]
| bool CHistoryDatabase::updateHistoryEntry |
( |
const QString & |
url, |
|
|
const QString & |
title = QString(), |
|
|
const QIcon & |
icon = QIcon() |
|
) |
| |
◆ updateHistoryEntry() [2/2]
| bool CHistoryDatabase::updateHistoryEntry |
( |
int |
id, |
|
|
const QString & |
title = QString(), |
|
|
const QIcon & |
icon = QIcon() |
|
) |
| |
◆ validateCsvHeader()
| bool CHistoryDatabase::validateCsvHeader |
( |
const QString & |
headerLine | ) |
|
|
private |
◆ m_UrlDB
The documentation for this class was generated from the following files:
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Plugins/WebBrowser/History/HistoryDatabase.h
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Plugins/WebBrowser/History/HistoryDatabase.cpp