The CHistoryDatabase class.
More...
#include <HistoryDatabase.h>
|
| | 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 () |
| |
|
| 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) |
| |
The CHistoryDatabase class.
Definition at line 24 of file HistoryDatabase.h.
◆ CHistoryDatabase()
| CHistoryDatabase::CHistoryDatabase |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ ~CHistoryDatabase()
| CHistoryDatabase::~CHistoryDatabase |
( |
| ) |
|
◆ 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 | ) |
|
◆ 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 |
( |
| ) |
|
◆ ImportFromJson()
| bool CHistoryDatabase::ImportFromJson |
( |
const QJsonObject & |
obj | ) |
|
|
overrideprivatevirtual |
◆ OnInitializeDatabase()
| bool CHistoryDatabase::OnInitializeDatabase |
( |
| ) |
|
|
overrideprivatevirtual |
◆ OnInitializeMySqlDatabase()
| bool CHistoryDatabase::OnInitializeMySqlDatabase |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ OnInitializeSqliteDatabase()
| bool CHistoryDatabase::OnInitializeSqliteDatabase |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ scheduleCleanup()
| void CHistoryDatabase::scheduleCleanup |
( |
int |
maxDays, |
|
|
int |
maxCount |
|
) |
| |
◆ searchHistory()
| QList< HistoryItem > CHistoryDatabase::searchHistory |
( |
const QString & |
keyword | ) |
|
◆ 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() |
|
) |
| |
◆ 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