SymbolListModel Class Reference

Classes

struct  NamedObject
 

Public Types

enum  SortType { SortAscendingAddresses , SortDescendingAddresses , SortAlphabeticallyAscending , SortAlphabeticallyDescending }
 

Signals

void afterListReset ()
 
void beforeListReset ()
 

Public Member Functions

 SymbolListModel (QWidget *parent, ViewFrame *view, BinaryViewRef data)
 
virtual ~SymbolListModel ()
 
virtual QModelIndex index (int row, int col, const QModelIndex &parent) const override
 
virtual QModelIndex parent (const QModelIndex &i) const override
 
virtual bool hasChildren (const QModelIndex &parent) const override
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
virtual int columnCount (const QModelIndex &parent) const override
 
virtual QVariant data (const QModelIndex &i, int role) const override
 
virtual void OnAnalysisFunctionAdded (BinaryNinja::BinaryView *data, BinaryNinja::Function *func) override
 
virtual void OnAnalysisFunctionRemoved (BinaryNinja::BinaryView *data, BinaryNinja::Function *func) override
 
virtual void OnDataVariableAdded (BinaryNinja::BinaryView *data, const BinaryNinja::DataVariable &var) override
 
virtual void OnDataVariableRemoved (BinaryNinja::BinaryView *data, const BinaryNinja::DataVariable &var) override
 
virtual void OnSymbolAdded (BinaryNinja::BinaryView *data, BinaryNinja::Symbol *sym) override
 
virtual void OnSymbolUpdated (BinaryNinja::BinaryView *data, BinaryNinja::Symbol *sym) override
 
virtual void OnSymbolRemoved (BinaryNinja::BinaryView *data, BinaryNinja::Symbol *sym) override
 
void updateFonts ()
 
bool isValidType (const NamedObject &rec)
 
bool setCurrentObject (const NamedObject &rec)
 
bool setCurrentFunction (FunctionRef func)
 
QModelIndex findSymbol (const NamedObject &rec) const
 
QModelIndex getSymbolIndex (const std::deque< NamedObject >::const_iterator rec) const
 
QModelIndex findCurrentSymbol () const
 
NamedObject getNamedObjectForIndex (int i) const
 
void updateFunctions ()
 
void backgroundUpdate ()
 
bool hasSymbols () const
 
void setFilter (const std::string &filter)
 
void showExportedDataVars (bool show)
 
void showExportedFunctions (bool show)
 
void showLocalFunctions (bool show)
 
void showLocalDataVars (bool show)
 
void showImports (bool show)
 
void toggleExportedDataVars ()
 
void toggleExportedFunctions ()
 
void toggleLocalFunctions ()
 
void toggleLocalDataVars ()
 
void toggleImports ()
 
bool getShowExportedFunctions () const
 
bool getShowExportedDataVars () const
 
bool getShowLocalFunctions () const
 
bool getShowLocalDataVars () const
 
bool getShowImports () const
 
bool getShowMangled () const
 
void setShowMangled (bool show)
 
void sortSymbols (SortType type)
 
void setSortType (SortType type)
 
SortType getSortType () const
 
NamedObject getCurrentSym () const
 
bool checkTriggerFullUpdate ()
 
- Public Member Functions inherited from BinaryNinja::BinaryDataNotification
 BinaryDataNotification ()
 
virtual ~BinaryDataNotification ()
 
BNBinaryDataNotificationGetCallbacks ()
 
virtual void OnBinaryDataWritten (BinaryView *view, uint64_t offset, size_t len)
 
virtual void OnBinaryDataInserted (BinaryView *view, uint64_t offset, size_t len)
 
virtual void OnBinaryDataRemoved (BinaryView *view, uint64_t offset, uint64_t len)
 
virtual void OnAnalysisFunctionAdded (BinaryView *view, Function *func)
 
virtual void OnAnalysisFunctionRemoved (BinaryView *view, Function *func)
 
virtual void OnAnalysisFunctionUpdated (BinaryView *view, Function *func)
 
virtual void OnAnalysisFunctionUpdateRequested (BinaryView *view, Function *func)
 
virtual void OnDataVariableAdded (BinaryView *view, const DataVariable &var)
 
virtual void OnDataVariableRemoved (BinaryView *view, const DataVariable &var)
 
virtual void OnDataVariableUpdated (BinaryView *view, const DataVariable &var)
 
virtual void OnDataMetadataUpdated (BinaryView *view, uint64_t offset)
 
virtual void OnTagTypeUpdated (BinaryView *view, Ref< TagType > tagTypeRef)
 
virtual void OnTagAdded (BinaryView *view, const TagReference &tagRef)
 
virtual void OnTagUpdated (BinaryView *view, const TagReference &tagRef)
 
virtual void OnTagRemoved (BinaryView *view, const TagReference &tagRef)
 
virtual void OnSymbolAdded (BinaryView *view, Symbol *sym)
 
virtual void OnSymbolUpdated (BinaryView *view, Symbol *sym)
 
virtual void OnSymbolRemoved (BinaryView *view, Symbol *sym)
 
virtual void OnStringFound (BinaryView *data, BNStringType type, uint64_t offset, size_t len)
 
virtual void OnStringRemoved (BinaryView *data, BNStringType type, uint64_t offset, size_t len)
 
virtual void OnTypeDefined (BinaryView *data, const QualifiedName &name, Type *type)
 
virtual void OnTypeUndefined (BinaryView *data, const QualifiedName &name, Type *type)
 
virtual void OnTypeReferenceChanged (BinaryView *data, const QualifiedName &name, Type *type)
 
virtual void OnTypeFieldReferenceChanged (BinaryView *data, const QualifiedName &name, uint64_t offset)
 

Member Enumeration Documentation

◆ SortType

Enumerator
SortAscendingAddresses 
SortDescendingAddresses 
SortAlphabeticallyAscending 
SortAlphabeticallyDescending 

Constructor & Destructor Documentation

◆ SymbolListModel()

SymbolListModel::SymbolListModel ( QWidget *  parent,
ViewFrame view,
BinaryViewRef  data 
)

◆ ~SymbolListModel()

virtual SymbolListModel::~SymbolListModel ( )
virtual

Member Function Documentation

◆ afterListReset

void SymbolListModel::afterListReset ( )
signal

◆ backgroundUpdate()

void SymbolListModel::backgroundUpdate ( )

◆ beforeListReset

void SymbolListModel::beforeListReset ( )
signal

◆ checkTriggerFullUpdate()

bool SymbolListModel::checkTriggerFullUpdate ( )

◆ columnCount()

virtual int SymbolListModel::columnCount ( const QModelIndex &  parent) const
overridevirtual

◆ data()

virtual QVariant SymbolListModel::data ( const QModelIndex &  i,
int  role 
) const
overridevirtual

◆ findCurrentSymbol()

QModelIndex SymbolListModel::findCurrentSymbol ( ) const

◆ findSymbol()

QModelIndex SymbolListModel::findSymbol ( const NamedObject rec) const

◆ getCurrentSym()

NamedObject SymbolListModel::getCurrentSym ( ) const
inline

◆ getNamedObjectForIndex()

NamedObject SymbolListModel::getNamedObjectForIndex ( int  i) const

◆ getShowExportedDataVars()

bool SymbolListModel::getShowExportedDataVars ( ) const
inline

◆ getShowExportedFunctions()

bool SymbolListModel::getShowExportedFunctions ( ) const
inline

◆ getShowImports()

bool SymbolListModel::getShowImports ( ) const
inline

◆ getShowLocalDataVars()

bool SymbolListModel::getShowLocalDataVars ( ) const
inline

◆ getShowLocalFunctions()

bool SymbolListModel::getShowLocalFunctions ( ) const
inline

◆ getShowMangled()

bool SymbolListModel::getShowMangled ( ) const
inline

◆ getSortType()

SortType SymbolListModel::getSortType ( ) const
inline

◆ getSymbolIndex()

QModelIndex SymbolListModel::getSymbolIndex ( const std::deque< NamedObject >::const_iterator  rec) const

◆ hasChildren()

virtual bool SymbolListModel::hasChildren ( const QModelIndex &  parent) const
overridevirtual

◆ hasSymbols()

bool SymbolListModel::hasSymbols ( ) const

◆ index()

virtual QModelIndex SymbolListModel::index ( int  row,
int  col,
const QModelIndex &  parent 
) const
overridevirtual

◆ isValidType()

bool SymbolListModel::isValidType ( const NamedObject rec)

◆ OnAnalysisFunctionAdded()

virtual void SymbolListModel::OnAnalysisFunctionAdded ( BinaryNinja::BinaryView data,
BinaryNinja::Function func 
)
overridevirtual

◆ OnAnalysisFunctionRemoved()

virtual void SymbolListModel::OnAnalysisFunctionRemoved ( BinaryNinja::BinaryView data,
BinaryNinja::Function func 
)
overridevirtual

◆ OnDataVariableAdded()

virtual void SymbolListModel::OnDataVariableAdded ( BinaryNinja::BinaryView data,
const BinaryNinja::DataVariable var 
)
overridevirtual

◆ OnDataVariableRemoved()

virtual void SymbolListModel::OnDataVariableRemoved ( BinaryNinja::BinaryView data,
const BinaryNinja::DataVariable var 
)
overridevirtual

◆ OnSymbolAdded()

virtual void SymbolListModel::OnSymbolAdded ( BinaryNinja::BinaryView data,
BinaryNinja::Symbol sym 
)
overridevirtual

◆ OnSymbolRemoved()

virtual void SymbolListModel::OnSymbolRemoved ( BinaryNinja::BinaryView data,
BinaryNinja::Symbol sym 
)
overridevirtual

◆ OnSymbolUpdated()

virtual void SymbolListModel::OnSymbolUpdated ( BinaryNinja::BinaryView data,
BinaryNinja::Symbol sym 
)
overridevirtual

◆ parent()

virtual QModelIndex SymbolListModel::parent ( const QModelIndex &  i) const
overridevirtual

◆ rowCount()

virtual int SymbolListModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
overridevirtual

◆ setCurrentFunction()

bool SymbolListModel::setCurrentFunction ( FunctionRef  func)

◆ setCurrentObject()

bool SymbolListModel::setCurrentObject ( const NamedObject rec)

◆ setFilter()

void SymbolListModel::setFilter ( const std::string &  filter)

◆ setShowMangled()

void SymbolListModel::setShowMangled ( bool  show)
inline

◆ setSortType()

void SymbolListModel::setSortType ( SortType  type)
inline

◆ showExportedDataVars()

void SymbolListModel::showExportedDataVars ( bool  show)
inline

◆ showExportedFunctions()

void SymbolListModel::showExportedFunctions ( bool  show)
inline

◆ showImports()

void SymbolListModel::showImports ( bool  show)
inline

◆ showLocalDataVars()

void SymbolListModel::showLocalDataVars ( bool  show)
inline

◆ showLocalFunctions()

void SymbolListModel::showLocalFunctions ( bool  show)
inline

◆ sortSymbols()

void SymbolListModel::sortSymbols ( SortType  type)

◆ toggleExportedDataVars()

void SymbolListModel::toggleExportedDataVars ( )
inline

◆ toggleExportedFunctions()

void SymbolListModel::toggleExportedFunctions ( )
inline

◆ toggleImports()

void SymbolListModel::toggleImports ( )
inline

◆ toggleLocalDataVars()

void SymbolListModel::toggleLocalDataVars ( )
inline

◆ toggleLocalFunctions()

void SymbolListModel::toggleLocalFunctions ( )
inline

◆ updateFonts()

void SymbolListModel::updateFonts ( )

◆ updateFunctions()

void SymbolListModel::updateFunctions ( )

The documentation for this class was generated from the following file: