|
Rabbit Remote Control 0.1.0-bate14
|


Public Types | |
| enum | Column { ColumnTitle = 0 , ColumnUrl , ColumnVisitTime , ColumnCount } |
Public Member Functions | |
| 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 | search (const QString &keyword) |
| bool | importFromJson (const QString &filename) |
| bool | exportToJson (const QString &filename) |
Private Attributes | |
| QList< HistoryItem > | m_historyItems |
| CHistoryDatabase * | m_pDatabase |
| CParameterWebBrowser * | m_pPara |
Definition at line 10 of file HistoryModel.h.
| enum CHistoryModel::Column |
Definition at line 18 of file HistoryModel.h.
| CHistoryModel::~CHistoryModel | ( | ) |
Definition at line 23 of file HistoryModel.cpp.
|
override |
Definition at line 49 of file HistoryModel.cpp.
|
override |
Definition at line 55 of file HistoryModel.cpp.
| bool CHistoryModel::exportToJson | ( | const QString & | filename | ) |
Definition at line 191 of file HistoryModel.cpp.
| HistoryItem CHistoryModel::getItem | ( | const QModelIndex & | index | ) | const |
Definition at line 148 of file HistoryModel.cpp.
|
override |
Definition at line 28 of file HistoryModel.cpp.
| bool CHistoryModel::importFromJson | ( | const QString & | filename | ) |
Definition at line 185 of file HistoryModel.cpp.
| void CHistoryModel::refresh | ( | ) |
Definition at line 99 of file HistoryModel.cpp.
| void CHistoryModel::refresh | ( | const QDate & | start, |
| const QDate & | end ) |
Definition at line 113 of file HistoryModel.cpp.
| bool CHistoryModel::removeDomainItems | ( | const QString & | szDomain | ) |
Definition at line 156 of file HistoryModel.cpp.
| bool CHistoryModel::removeItems | ( | const QString & | url | ) |
Definition at line 166 of file HistoryModel.cpp.
|
override |
Definition at line 127 of file HistoryModel.cpp.
|
override |
Definition at line 43 of file HistoryModel.cpp.
| bool CHistoryModel::search | ( | const QString & | keyword | ) |
Definition at line 176 of file HistoryModel.cpp.
|
private |
Definition at line 48 of file HistoryModel.h.
|
private |
Definition at line 49 of file HistoryModel.h.
|
private |
Definition at line 50 of file HistoryModel.h.