Public Types | |
enum | ColumnHeaders { AddressColumn = 0 , DataColumn = 1 , FunctionColumn = 2 , PreviewColumn = 3 , EndOfColumn = 4 } |
Public Member Functions | |
SearchResultModel (QWidget *parent, BinaryViewRef data) | |
virtual | ~SearchResultModel () |
virtual QModelIndex | index (int row, int col, const QModelIndex &parent=QModelIndex()) const override |
void | reset () |
virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
SearchResultItem | getRow (int row) const |
virtual QVariant | data (const QModelIndex &i, int role) const override |
virtual QVariant | headerData (int column, Qt::Orientation orientation, int role) const override |
void | addItem (const SearchResultItem &addr) |
void | clear () |
void | updateFindParameters (const BinaryNinja::FindParameters params) |
void | updateSearchResults () |
size_t | getColumnWidth (size_t column) const |
void | updateColumnWidth (size_t column, size_t size) const |
void | resetColumnWidth () |
bool | isUserColumnWidth (size_t column) const |
void | setUserColumnWidth (size_t column) |
Protected Attributes | |
QWidget * | m_owner |
BinaryViewRef | m_data |
BinaryNinja::FindParameters | m_params |
std::vector< SearchResultItem > | m_refs |
size_t | m_columnWidths [4] |
bool | m_userColumnWidth [4] |
std::mutex | m_updateMutex |
std::set< SearchResultItem > | m_pendingSearchResults |
SearchResultModel::SearchResultModel | ( | QWidget * | parent, |
BinaryViewRef | data ) |
|
virtual |
|
overridevirtual |
void SearchResultModel::reset | ( | ) |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
SearchResultItem SearchResultModel::getRow | ( | int | row | ) | const |
|
overridevirtual |
|
overridevirtual |
void SearchResultModel::addItem | ( | const SearchResultItem & | addr | ) |
void SearchResultModel::clear | ( | ) |
void SearchResultModel::updateFindParameters | ( | const BinaryNinja::FindParameters | params | ) |
void SearchResultModel::updateSearchResults | ( | ) |
size_t SearchResultModel::getColumnWidth | ( | size_t | column | ) | const |
void SearchResultModel::updateColumnWidth | ( | size_t | column, |
size_t | size ) const |
void SearchResultModel::resetColumnWidth | ( | ) |
bool SearchResultModel::isUserColumnWidth | ( | size_t | column | ) | const |
void SearchResultModel::setUserColumnWidth | ( | size_t | column | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |