|
| enum | Column { ColumnVisitTime = 0
, ColumnTitle
, ColumnUrl
, ColumnCount
} |
| |
|
|
| CHistoryModel (CParameterWebBrowser *pPara, QObject *parent=nullptr) |
| |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| |
| bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) override |
| |
| void | refresh () |
| |
| void | refresh (const QDate &start, const QDate &end) |
| |
| HistoryItem | getItem (const QModelIndex &index) const |
| |
| bool | removeDomainItems (const QString &szDomain) |
| |
| bool | removeItems (const QString &url) |
| |
| bool | importFromCSV (const QString &filename) |
| |
| bool | exportToCSV (const QString &filename) |
| |
| bool | importFromJson (const QString &filename) |
| |
| bool | exportToJson (const QString &filename) |
| |
◆ Column
| enum CHistoryModel::Column |
◆ ~CHistoryModel()
| CHistoryModel::~CHistoryModel |
( |
| ) |
|
◆ columnCount()
| int CHistoryModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ data()
| QVariant CHistoryModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ exportToCSV()
| bool CHistoryModel::exportToCSV |
( |
const QString & |
filename | ) |
|
◆ exportToJson()
| bool CHistoryModel::exportToJson |
( |
const QString & |
filename | ) |
|
◆ getItem()
| HistoryItem CHistoryModel::getItem |
( |
const QModelIndex & |
index | ) |
const |
◆ headerData()
| QVariant CHistoryModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ importFromCSV()
| bool CHistoryModel::importFromCSV |
( |
const QString & |
filename | ) |
|
◆ importFromJson()
| bool CHistoryModel::importFromJson |
( |
const QString & |
filename | ) |
|
◆ refresh() [1/2]
| void CHistoryModel::refresh |
( |
| ) |
|
◆ refresh() [2/2]
| void CHistoryModel::refresh |
( |
const QDate & |
start, |
|
|
const QDate & |
end |
|
) |
| |
◆ removeDomainItems()
| bool CHistoryModel::removeDomainItems |
( |
const QString & |
szDomain | ) |
|
◆ removeItems()
| bool CHistoryModel::removeItems |
( |
const QString & |
url | ) |
|
◆ removeRows()
| bool CHistoryModel::removeRows |
( |
int |
row, |
|
|
int |
count, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| |
|
override |
◆ rowCount()
| int CHistoryModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ m_historyItems
◆ m_pDatabase
◆ m_pPara
该类的文档由以下文件生成:
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Plugins/WebBrowser/History/HistoryModel.h
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Plugins/WebBrowser/History/HistoryModel.cpp